MCP Chess Server
This MCP let's you play chess against any LLM.
Installation
To use this chess server, add the following configuration to your MCP config:
{
"mcpServers": {
"chess": {
"command": "uvx",
"args": [
"mcp-chess"
]
}
}
}
Usage
Play a game:
Find a position in a PGN for game analysis:
Available Tools
The server provides the following tools:
get_board_visualization(): Provides the current state of the chessboard as an image. The board orientation automatically flips based on the user's assigned color.get_turn(): Indicates whose turn it is ('white' or 'black').get_valid_moves(): Lists all legal moves for the current player in UCI notation (e.g., 'e2e4', 'g1f3'). Returns an empty list if the game is over.make_move(move_san: str): Makes a move on the board using Standard Algebraic Notation (SAN) (e.g., 'e4', 'Nf3', 'Bxe5'). Returns the move in SAN and UCI, the new board FEN, and game status.new_game(user_plays_white: bool = True): Starts a new game, resetting the board. By default, the user plays white. Sets the user's color for board orientation. Returns a confirmation message.find_position_in_pgn(pgn_string: str, condition: str): Finds the first board position in a PGN string matching a condition (e.g., "bishop on a3") and returns an image of that board state. The condition format is "piece_type on square_name". Valid piece types are "pawn", "knight", "bishop", "rook", "queen", "king".
Metadata
Release files for mcp-chess 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_chess-0.1.9.tar.gz | 9.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_chess-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.4 kB
Release files / mcp_chess-0.1.9.tar.gz
| Download URL | mcp_chess-0.1.9.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe2b027edb8f6307c86d6b83fc2b448ea2ab0873f4c8d1b3481d6a0bc2094519
|
|
BLAKE2b-256 checksum How to use checksums |
630c336f9f0154cdee53ee73118f531b1e6b22bd6e51cf745e7f469f978b4dcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / mcp_chess-0.1.9-py3-none-any.whl
| Download URL | mcp_chess-0.1.9-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd4b348aded78de5818938b2cc0a9fe0bab12784e0e33d6fb09a91562051a900
|
|
BLAKE2b-256 checksum How to use checksums |
9551bd22b76a9e5f9b9325048f6f893dcd7747c4f3c6b1cfe91e04b0a0cffe6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Security for mcp-chess 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.