MCP server for playing chess against AI
Project description
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".
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_jiayao_mcp_chess-0.1.9.tar.gz.
File metadata
- Download URL: iflow_mcp_jiayao_mcp_chess-0.1.9.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4a910107710ffa9c39a5f616e49afddc8e67b6362611c60df158c963d410bba
|
|
| MD5 |
fa17319f02cd334802fbf79b5c9e85c2
|
|
| BLAKE2b-256 |
012263764e452bf98e5cb5948ec314a5eb6bbaa5588d57e159d6c604d2f3863c
|
File details
Details for the file iflow_mcp_jiayao_mcp_chess-0.1.9-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_jiayao_mcp_chess-0.1.9-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4900b254902716e260f5cc2ab0597ca810ba16dea0ce82a62323cc0c44f44bb
|
|
| MD5 |
c635ec852cf0fc2341f2bbead02bdff4
|
|
| BLAKE2b-256 |
00197b4f88c10d793387a9a21d8be101fbd91afb70a08ea86a74431cc74ed3f7
|