
mcp stockfish
MCP Server for stockfish tested on Apple Silicon.
Repository Info
About This Server
MCP Server for stockfish tested on Apple Silicon.
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
MCP Server for Stockfish
This project provides a Model Control Protocol (MCP) server for Stockfish, a powerful open-source chess engine. It allows you to interact with Stockfish through HTTP requests.
Prerequisites
- Java 21 or later (required for building the application)
- Docker (required for running the containerized application)
Building the Application
The project includes a multi-stage Dockerfile that builds Stockfish as part of the container build process.
To build the application and create the Docker image:
./mvnw verify -Dquarkus.container-image.build=true
This command will:
- Compile the Java application
- Build the Docker image with Stockfish compiled for the appropriate architecture
- Tag the image as
shelajev/mcp-stockfish:0.0.1
Running the Container
Once the image is built, you can run it with:
docker run -p8080:8080 shelajev/mcp-stockfish:0.0.1
or you can use the pre-built version:
docker run -p8080:8080 olegselajev241/mcp-chess:latest
This will start the MCP server and expose it on port 8080.
Connecting to the Server
You can connect to the MCP server via HTTP at:
http://localhost:8080/mcp
Available Tools
The MCP server provides several tools for chess analysis and interaction with chess platforms:
Stockfish Tools
-
findBestMove
- Description: Analyzes a chess position using the Stockfish engine to find the best move.
- Parameters:
fen: FEN notation of the chess position to analyze.
-
analyzeGame
- Description: Analyzes a sequence of chess moves and returns evaluations for each position.
- Parameters:
moves: List of chess moves in SAN (Standard Algebraic Notation).
Lichess Tools
-
lastGames
- Description: Fetches the last games from lichess.org by a given username.
- Parameters:
username: The username to fetch the games for.n: How many games to fetch.
-
randomGame
- Description: Fetches a random game from lichess.org by a given username.
- Parameters:
username: The username to fetch the games for.days: How many days back to look for games.
-
boardFromFen
- Description: Returns a text visualization of a chess board from a position given in FEN notation.
- Parameters:
fen: FEN notation of the chess position to display.
Maia Tools
- whatMoveWouldHumanPlay
- Description: Uses the Maia chess engine to predict what move a human player would make in a given position.
- Parameters:
fen: FEN notation of the chess position to analyze.rating: Rating of the Maia engine to use (from 1100 to 1900).
Quick Start
Clone the repository
git clone https://github.com/shelajev/mcp-stockfishInstall dependencies
cd mcp-stockfish
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.