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.
-
Download Stockfish: Get the appropriate version for your system from the official Stockfish website.
-
Install the MCP Server: We recommend using
uvto install the package. First, installuv. Then, run the following command to installstockfish-mcpas 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
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 stockfish_mcp-1.0.2.tar.gz.
File metadata
- Download URL: stockfish_mcp-1.0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc7a60b2edadc8c80c12081bf09097d6334cf8e8dca226bbdd50fcd628eb76c6
|
|
| MD5 |
7111a01c3db5224052990e9be108cb9e
|
|
| BLAKE2b-256 |
f42d3743a15fe2cc717fcb182b4543f6d20bdd27a8fc62d66c5ba622bf46204f
|
Provenance
The following attestation bundles were made for stockfish_mcp-1.0.2.tar.gz:
Publisher:
publish-mcp.yml on stepbot/StockfishMcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stockfish_mcp-1.0.2.tar.gz -
Subject digest:
fc7a60b2edadc8c80c12081bf09097d6334cf8e8dca226bbdd50fcd628eb76c6 - Sigstore transparency entry: 685976279
- Sigstore integration time:
-
Permalink:
stepbot/StockfishMcp@bbd0f0c54778f4f96f84135dd7c1fae1e183ef8e -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/stepbot
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-mcp.yml@bbd0f0c54778f4f96f84135dd7c1fae1e183ef8e -
Trigger Event:
push
-
Statement type:
File details
Details for the file stockfish_mcp-1.0.2-py3-none-any.whl.
File metadata
- Download URL: stockfish_mcp-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ad9db478a5bdb68fdc31797dd1490a43b0bbb2b435af499c20c945819411246
|
|
| MD5 |
6911303cda5f281673a295a8c55f36c2
|
|
| BLAKE2b-256 |
ef6a6aaf087400879776781bf32c884987e65239487a6433b8078b12da1c2e13
|
Provenance
The following attestation bundles were made for stockfish_mcp-1.0.2-py3-none-any.whl:
Publisher:
publish-mcp.yml on stepbot/StockfishMcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stockfish_mcp-1.0.2-py3-none-any.whl -
Subject digest:
3ad9db478a5bdb68fdc31797dd1490a43b0bbb2b435af499c20c945819411246 - Sigstore transparency entry: 685976281
- Sigstore integration time:
-
Permalink:
stepbot/StockfishMcp@bbd0f0c54778f4f96f84135dd7c1fae1e183ef8e -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/stepbot
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-mcp.yml@bbd0f0c54778f4f96f84135dd7c1fae1e183ef8e -
Trigger Event:
push
-
Statement type: