ChessPal Chess Engine MCP Server

A chess engine MCP server powered by Stockfish

Local serverstdioPython

What is the ChessPal Chess Engine MCP Server?

A chess engine MCP server powered by Stockfish

The short version

A Stockfish-powered chess engine exposed as an MCP server using FastMCP. Calculates best moves via MCP tools accessible over SSE (default) or stdio transports using an MCP client library. Part of the ChessPal project.

  • Robust Stockfish engine integration with proper process management
  • Exposes engine functionality via the Model Context Protocol (MCP) using FastMCP
  • Supports both SSE and stdio MCP transports for client interaction
  • UCI protocol implementation for chess move generation
  • Comprehensive test suite with TDD approach
  • Error handling and recovery mechanisms

What it needs from you

  • Python 3.10 or higher - Poetry for dependency management (install from Poetry's documentation) - Stockfish chess engine binary (version 17.1 recommended)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_best_move_toolGet the best move for a given chess position
validate_move_toolValidate if a move is legal in a given position
get_legal_moves_toolGet all legal moves in a given position
get_game_status_toolGet the current game status (in progress, checkmate, etc.)

How to install the ChessPal Chess Engine MCP Server

{
  "mcpServers": {
    "dylangames-mcp-chess-engine": {
      "command": "uvx",
      "args": ["chesspal-mcp-engine"],
      "env": {
        "CHESSPAL_ENGINE_NAME": "your-value",
        "CHESSPAL_ENGINE_VERSION": "your-value",
        "CHESSPAL_ENGINE_OS": "your-value",
        "CHESSPAL_ENGINE_BINARY": "your-value",
        "CHESSPAL_ENGINE_PATH": "your-value",
        "PYPI_TOKEN": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.10 or higher - Poetry for dependency management (install from Poetry's documentation) - Stockfish chess engine binary (version 17.1 recommended)
VariableDescriptionRequired
CHESSPAL_ENGINE_NAMEConfiguration value read at startup.Optional
CHESSPAL_ENGINE_VERSIONConfiguration value read at startup.Optional
CHESSPAL_ENGINE_OSConfiguration value read at startup.Optional
CHESSPAL_ENGINE_BINARYConfiguration value read at startup.Optional
CHESSPAL_ENGINE_PATHFilesystem location the server is allowed to use.Optional
PYPI_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • “Use ChessPal Chess Engine to get best move tool.”
  • “Use ChessPal Chess Engine to validate move tool.”
  • “Use ChessPal Chess Engine to get legal moves tool.”

Frequently asked questions

Python 3.10 or higher, Poetry for dependency management, and a Stockfish chess engine binary (version 17.1 recommended).