File size: 2,527 Bytes
f574541 3360519 8ee115e 7860c23 f574541 7860c23 f574541 3297f47 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
---
tags: [mcp-server, mcp-server-track, chess, chessboard, games]
title: Chess Agent MCP Server
emoji: ♟️
colorFrom: yellow
colorTo: green
sdk: docker
pinned: false
license: apache-2.0
short_description: MCP server providing useful tools for chess agents
---
# Chess MCP Server
This is a specialized MCP server tailored for chess, designed to enhance interactions with Large Language Models (LLMs) by providing structured chess-related information and analysis.
---
## Overview
The Chess MCP Server offers chess-specific functionalities leveraging powerful chess engines, heuristic evaluations, and opening databases. It is used primarily by chess-related agents such as the [Chess Agent](https://huggingface.co/spaces/Agents-MCP-Hackathon/chess-agent).
## Available API Functions
### 1. **`get_position`**
* **Description:** Analyzes and describes the current chess position, classifies the opening if possible, or provides a piece map and legal moves.
* **Input:** `{ fen: string }`
### 2. **`get_square_info`**
* **Description:** Retrieves details about a specific square, including the piece occupying it, and identifies attackers and defenders.
* **Input:** `{ fen: string, square_name: string }`
### 3. **`get_top_moves`** *(Uses Stockfish chess engine)*
* **Description:** Provides top N recommended moves with evaluation scores.
* **Input:** `{ fen: string, top_n: number }`
### 4. **`analyze_pawn_structure`**
* **Description:** Evaluates pawn structure for both sides from the given position.
* **Input:** `{ fen: string }`
### 5. **`analyze_tactical_patterns`**
* **Description:** Detects tactical patterns such as forks, pins, skewers, discovered attacks, and x-ray attacks.
* **Input:** `{ fen: string }`
### 6. **`evaluate_king_safety`**
* **Description:** Assesses the king safety for both sides.
* **Input:** `{ fen: string }`
### 7. **`classify_opening`**
* **Description:** Classifies chess openings from a FEN string using the Lichess openings database.
* **Input:** `{ fen: string }`
### 8. **`find_opening_by_name`**
* **Description:** Searches for openings by name in the Lichess openings database.
* **Input:** `{ name: string }`
---
## Use Cases
* Enhance chess reasoning capabilities of LLM-powered agents.
* Provide structured chess insights for educational tools and interactive chess applications.
* Improve accuracy of chess-related interactions by providing engine-backed evaluations.
---
Enjoy building smarter, chess-aware applications with the Chess MCP Server!
|