Skip to main content

A Stockfish MCP server

Project description

Stockfish MCP Server

A Stockfish server for the Model Context Protocol. This package allows a Large Language Model to play chess against the Stockfish engine.

Installation

This package is a pure Python wrapper and requires you to provide your own Stockfish binary.

  1. Download Stockfish: Get the appropriate version for your system from the official Stockfish website.

  2. Install the MCP Server: We recommend using uv to install the package. First, install uv. Then, run the following command to install stockfish-mcp as a globally available command-line tool in its own isolated environment:

    uv tool install stockfish-mcp
    

Usage

There are two ways to run the server:

1. Command Line

You can run the server directly, providing the path to your downloaded Stockfish executable.

uv tool run stockfish-mcp --stockfish-path C:\path\to\your\stockfish.exe

2. MCP Configuration

Alternatively, you can add it to your MCP settings.json file. This is useful for integrating with clients like the MCP VS Code extension.

{
    "mcpServers": {
        "stockfish": {
            "command": "uv",
            "args": ["tool", "run", "stockfish-mcp", "--stockfish-path", "C:\\path\\to\\your\\stockfish.exe"]
        }
    }
}

Example

An example of a game played against the Stockfish engine can be found in exampleGame.md.

Available Tools

  • get_board_state(): Get the current board state.
  • make_move(move_uci: str): Make a move (e.g., "e2e4").
  • is_game_over(): Check if the game has ended.
  • get_game_result(): Get the result if the game is over.
  • reset_game(skill_level: int = 10): Start a new game.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stockfish_mcp-1.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stockfish_mcp-1.0.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file stockfish_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: stockfish_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stockfish_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 937f3d6bed713f5e3740d4e0e47e35acd6c4ddff08d2b89077f4add8d91a4527
MD5 7c1daa279fb789f1e8f94d3adebdba43
BLAKE2b-256 6142732dbfd26b5980897951a7349f4b90ad22c2f6285d2469c5c45f5a3049cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for stockfish_mcp-1.0.0.tar.gz:

Publisher: publish-mcp.yml on stepbot/StockfishMcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stockfish_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: stockfish_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for stockfish_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45eb00c2ffa738a25261a49d61011954f6d899e64355ea57449b6f185ba67416
MD5 f6e2613e66d01618044dda548c81c200
BLAKE2b-256 274eb8b5ae53b4466874cd9f52f561217656c67e65b1b889c43535857c400178

See more details on using hashes here.

Provenance

The following attestation bundles were made for stockfish_mcp-1.0.0-py3-none-any.whl:

Publisher: publish-mcp.yml on stepbot/StockfishMcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page