Labsco
AnglerfishChess logo

PSECSAPI

from AnglerfishChess

Headless Space MMO where you are the CEO and your agent is your staff

๐Ÿ”ฅFreeQuick setup

chess-uci-mcp

An MCP bridge that provides an interface to UCI chess engines (such as Stockfish).

Dependencies

You need to have Python 3.10 or newer, and also uv/uvx installed.

Command-line Options

The application accepts the following command-line options:

  • ENGINE_PATH: (Required) The path to the UCI-compatible chess engine executable.
  • --uci-option or -o: Set a UCI option. This option can be used multiple times. It takes two arguments: the option name and its value (e.g., -o Threads 4).
  • --think-time: The default thinking time for the engine in milliseconds. Defaults to 1000.
  • --debug: Enable debug logging.

Available MCP Commands

The bridge provides the following MCP commands:

  1. analyze - Analyze a chess position specified by FEN string
  2. get_best_move - Get the best move for a chess position
  3. set_position - Set the current chess position
  4. engine_info - Get information about the chess engine

Development

# Clone the repository
git clone https://github.com/AnglerfishChess/chess-uci-mcp.git
# ... or
#    git clone git@github.com:AnglerfishChess/chess-uci-mcp.git

cd chess-uci-mcp

# Create a virtual environment
uv venv --python python3.10

# Activate the virtual environment
source .venv/bin/activate  # On Unix/macOS
# or
.venv\Scripts\activate     # On Windows

# Install the package in development mode
#    uv pip install -e .
# or, with development dependencies
uv pip install -e ".[dev]"

# Resync the packages:
uv sync --extra=dev

# Run tests
pytest

# Check code style
ruff check

Release process

  1. Bump version in pyproject.toml, chess_uci_mcp/__init__.py and uv.lock.
  2. Build and publish:
uv build
uv-publish

We use uv-publish (install via uvx uv-publish or as dev dependency) because it automatically reads PyPI credentials from ~/.pypirc.

  1. Tag and push:
git tag v0.x.x
git push && git push --tags

Certified by MCP Review