Skip to main content

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: Chess starting position with black pieces

A few moves later

Find a position in a PGN for game analysis:

Find a position in a PGN

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 iflow-mcp_jiayao-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)

Source distribution for iflow-mcp_jiayao-mcp-chess 0.1.9
File Size Uploaded
iflow_mcp_jiayao_mcp_chess-0.1.9.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_jiayao-mcp-chess 0.1.9
File Interpreter ABI Platform
iflow_mcp_jiayao_mcp_chess-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 kB

Release files / iflow_mcp_jiayao_mcp_chess-0.1.9.tar.gz

Download URL iflow_mcp_jiayao_mcp_chess-0.1.9.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f4a910107710ffa9c39a5f616e49afddc8e67b6362611c60df158c963d410bba
BLAKE2b-256 checksum
How to use checksums
012263764e452bf98e5cb5948ec314a5eb6bbaa5588d57e159d6c604d2f3863c
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / iflow_mcp_jiayao_mcp_chess-0.1.9-py3-none-any.whl

Download URL iflow_mcp_jiayao_mcp_chess-0.1.9-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4900b254902716e260f5cc2ab0597ca810ba16dea0ce82a62323cc0c44f44bb
BLAKE2b-256 checksum
How to use checksums
00197b4f88c10d793387a9a21d8be101fbd91afb70a08ea86a74431cc74ed3f7
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page