WU

wilson-urdaneta/chesspal-mcp-engine

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

5 stars 3 forks 품질 58 트렌드 13GPL-3.0

A chess engine MCP server powered by Stockfish

개요

A Stockfish-powered chess engine exposed as an MCP server using FastMCP. Calculates best moves via MCP tools accessible over SSE (default) or stdio transports using an MCP client library. Part of the ChessPal project. - Robust Stockfish engine integration with proper process management - Exposes engine functionality via the Model Context Protocol (MCP) using FastMCP. - Supports both SSE and stdio MCP transports for client interaction. - UCI protocol implementation for chess move generation - Comprehensive test suite with TDD approach - Error handling and recovery mechanisms - Support for FEN positions and move history - Flexible engine binary configuration - Python 3.10 or higher - Poetry for dependency management (install from Poetry's documentation) - Stockfish chess engine binary (version 17.1 recommended) Install the published package from PyPI using pip: 2. Install dependencies and create virtual environment using Poetry: 3.

README

원문 README의 일부입니다. 원문 보기.

ChessPal Chess Engine - A Stockfish-powered chess engine exposed as an MCP server using FastMCP

A Stockfish-powered chess engine exposed as an MCP server using FastMCP. Calculates best moves via MCP tools accessible over SSE (default) or stdio transports using an MCP client library. Part of the ChessPal project.

Features

  • Robust Stockfish engine integration with proper process management
  • Exposes engine functionality via the Model Context Protocol (MCP) using FastMCP.
  • Supports both SSE and stdio MCP transports for client interaction.
  • UCI protocol implementation for chess move generation
  • Comprehensive test suite with TDD approach
  • Error handling and recovery mechanisms
  • Support for FEN positions and move history
  • Flexible engine binary configuration

Prerequisites

  • Python 3.10 or higher
  • Poetry for dependency management (install from Poetry’s documentation)
  • Stockfish chess engine binary (version 17.1 recommended)

Installation

Install the published package from PyPI using pip:

pip install chesspal-mcp-engine

Installation for development

  1. Clone the repository:
git clone https://github.com/wilson-urdaneta/dylangames-mcp-chess-engine.git
cd dylangames-mcp-chess-engine
  1. Install dependencies and create virtual environment using Poetry:
poetry install
  1. Configure the engine binary:
    • Option 1: Set CHESSPAL_ENGINE_PATH environment variable to point to your Stockfish binary
    • Option 2: Use the fallback configuration with these environment variables:
      # All variables have defaults, override as needed
      export CHESSPAL_ENGINE_NAME=stockfish     # Default: stockfish
      export CHESSPAL_ENGINE_VERSION=17.1       # Default: 17.1
      export CHESSPAL_ENGINE_OS=macos           # Default: automatically detected based on platform
      export CHESSPAL_ENGINE_BINARY=stockfish   # Default: stockfish (include .exe for Windows)
      

Stockfish Binary Setup

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →