Skip to main content

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.

Metadata

Release files for stockfish-mcp 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stockfish-mcp 1.0.2
File Size Uploaded
stockfish_mcp-1.0.2.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stockfish-mcp 1.0.2
File Interpreter ABI Platform
stockfish_mcp-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / stockfish_mcp-1.0.2.tar.gz

Download URL stockfish_mcp-1.0.2.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fc7a60b2edadc8c80c12081bf09097d6334cf8e8dca226bbdd50fcd628eb76c6
BLAKE2b-256 checksum
How to use checksums
f42d3743a15fe2cc717fcb182b4543f6d20bdd27a8fc62d66c5ba622bf46204f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2025.

Transparency log

Release files / stockfish_mcp-1.0.2-py3-none-any.whl

Download URL stockfish_mcp-1.0.2-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ad9db478a5bdb68fdc31797dd1490a43b0bbb2b435af499c20c945819411246
BLAKE2b-256 checksum
How to use checksums
ef6a6aaf087400879776781bf32c884987e65239487a6433b8078b12da1c2e13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

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