Sponsored by Deepsite.site

MCP Chess

Created By
alexandreromana year ago
A MCP server for playing chess
Content

MCP Chess

A Model Context Protocol (MCP) server that provides chess functionality for Claude AI Assistant.

https://github.com/user-attachments/assets/324ed381-35f3-45b7-b877-127ef27fd97d

Features

This server implements tools that extend Claude's capabilities to:

  • Generate chess board images from a Forsyth-Edwards Notation (FEN) string
  • Suggest the next move in a chess game
  • Check if a move is legal

Installation for Claude Desktop

  1. Download the latest binary from the Releases page:

    • For Windows: mcp-chess-windows.exe
    • For macOS: mcp-chess-darwin
    • For Linux: mcp-chess-linux
  2. Make the file executable (macOS/Linux only):

    chmod +x mcp-chess-darwin   # for macOS
    chmod +x mcp-chess-linux    # for Linux
    
  3. For macOS users - Bypassing Security Warnings:

    When you first try to run the application, macOS may display a security warning because the application is not signed by an identified developer. To bypass this:

    • Right-click (or Control-click) on the mcp-chess-darwin file
    • Select "Open" from the context menu
    • Click "Open" in the dialog box that appears

    Alternatively, you can use Terminal:

    xattr -d com.apple.quarantine /path/to/mcp-chess-darwin
    

    This only needs to be done once.

  4. Configure Claude Desktop:

    • Open Claude Desktop
    • Select "Settings", and click on the "Developer" tab
    • Click "Edit Config"
    • Add the MCP server configuration
    • Save the file
    • Restart Claude Desktop

Here's an example for the MCP server configuration:

{
  "mcpServers": {
    "mcp-chess": {
      "command": "/path/to/mcp-chess-binary"
    }
  }
}

Using with Claude

Once properly configured, you can ask Claude to perform various chess-related tasks:

Show me the starting position of a chess game.
Let's play a chess game. Check that each move is legal. Suggest the best move to play.
Is Nf3 a legal move from the starting position?
What's a good move for white in this position: "rnbqkbnr/pppp1ppp/8/4p3/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 2"?

Technical Details

Development

This project is built with:

  • Spring Boot
  • Spring AI (MCP server implementation)
  • Java 21
  • GraalVM native compilation

Building from Source

# Clone the repository
git clone https://github.com/alexandreroman/mcp-chess.git
cd mcp-chess

# Build with Maven
./mvnw clean package

# Build a native executable
./mvnw -Pnative native:compile

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Credits

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Serper MCP ServerA Serper MCP Server
Amap Maps高德地图官方 MCP Server
ChatWiseThe second fastest AI chatbot™
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Tavily Mcp
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
WindsurfThe new purpose-built IDE to harness magic
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright McpPlaywright MCP server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
DeepChatYour AI Partner on Desktop
CursorThe AI Code Editor
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.