Skip to main content
Glama
Adarsh4777

Chess Detective MCP Server

by Adarsh4777

Chess Detective Agent

An MCP powered chess investigation system that helps analyze chess positions, explore legal moves, compare decisions, and reconstruct games.

The Idea

Chess Detective treats chess analysis as an investigation. Instead of putting every capability into one function, specialized chess capabilities are exposed as independent MCP tools.

Related MCP server: Chess MCP Server

Architecture

User
  ↓
Chess Detective Agent
  ↓
MCP Client
  ↓
Chess Detective MCP Server
  ├── Inspect Position
  ├── Investigate Legal Moves
  ├── Compare Chess Moves
  └── Reconstruct Chess Game
  ↓
python-chess

MCP Tools

1. Inspect Chess Position

Analyzes a FEN position and returns:

  • Side to move

  • Check and checkmate status

  • Material distribution

  • Number of legal moves

  • Sample legal moves

Examines the legal moves available in a position and identifies:

  • SAN notation

  • UCI notation

  • Captures

  • Checks

3. Compare Chess Moves

Investigates a played move against an alternative move.

4. Reconstruct Chess Game

Parses a PGN game and reconstructs:

  • Game metadata

  • Result

  • Move sequence

  • FEN before every move

Tech Stack

  • Python

  • MCP (Model Context Protocol)

  • FastMCP

  • python-chess

Installation

git clone https://github.com/Adarsh4777/chess-detective-agent.git
cd chess-detective-agent
python -m pip install -r requirements.txt

Running the Agent

python agent.py

The agent starts a local MCP server and connects to it through an MCP client.

Example Workflow

Inspect Position
      ↓
Investigate Legal Moves
      ↓
Compare Candidate Moves
      ↓
Build Understanding of the Position

Project Structure

chess-detective-agent/
├── agent.py
├── server.py
├── chess_tools.py
├── requirements.txt
└── README.md

Current Status

Working prototype with:

  • Local MCP server

  • MCP client

  • Four specialized chess investigation tools

  • FEN analysis

  • Legal move investigation

  • Move comparison

  • PGN reconstruction

Future Work

  • Autonomous tool selection

  • Chess engine evaluation

  • Automatic critical moment detection

  • Full game post-mortem reports

Author

Adarsh Choudhary

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides an interactive chess game experience through MCP tools with a web-based chessboard interface. Enables users to play chess games, make moves using standard algebraic notation, and manage persistent game state across sessions.
    21
    5
    Apache 2.0
  • F
    license
    A
    quality
    D
    maintenance
    Enables chess gameplay and interaction through MCP protocol. Allows users to play chess games, make moves, and manage chess sessions through natural language commands.
    2
    -
  • F
    license
    A
    quality
    C
    maintenance
    Enables chess analysis and move generation using the Stockfish engine via MCP tools, allowing clients to evaluate positions, get best moves, apply moves, and visualize boards.
    7
    -
  • A
    license
    A
    quality
    C
    maintenance
    MCP server that exposes the Lichess public API through tools for querying player profiles, games, analysis, openings, puzzles, and tournaments, allowing natural-language chess questions without an API key.
    8
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Adarsh4777/chess-detective-agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server