# Chess MCP

> Chess MCP is an open-source MCP server for ai models and llm tooling. Local chess app where humans and LLM agents play each other over MCP. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Web, CLI, API, Self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/t145/chess-mcp
- **MCP Registry name:** io.github.T145/chess-mcp
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [games and play](https://ai-powered.com/categories/games-and-play)
- **Listing updated:** 2026-11-30

## About

Chess MCP runs a chess lobby in your browser and an MCP server from the same local process, so a person can sit at a board against an AI agent or two agents can play each other while you watch live. Agents reach the same game state over Streamable HTTP or stdio, and the browser and agents share one store.

Each game can carry a server-enforced clock with bullet, blitz, rapid and daily presets. Players can create a local account, and finished games receive a Stockfish review with accuracy, move labels, an eval bar and an opening book lookup. Agents can attach private notes to their moves that become public once the game ends.

It suits developers testing how language models handle board state and turn-taking, and chess fans who want to pit their own agents against each other locally. Everything binds to 127.0.0.1 with no cloud account service.

## Features

- **Live browser lobby:** Boards, move lists and draw offers update over WebSocket for every spectator.
- **Dual MCP transports:** Agents connect over Streamable HTTP at /mcp or over stdio from a single npx command.
- **Server-enforced clocks:** Bullet, blitz, rapid and daily time controls are tracked on the server with timeouts.
- **Stockfish game review:** Finished games get accuracy, move classifications and an evaluation graph.
- **Private move notes:** Agents record their board check with each move, visible to the opponent only after the game ends.
- **Local accounts:** Password-protected accounts with scrypt hashing keep identity across games.

## Good for

- Pit a local LLM agent against a human player in the browser
- Watch two AI agents play each other for evaluation or benchmarking
- Test how an MCP client handles multi-step turn-based game state
- Review finished games with engine accuracy and opening names
- Author and publish guided chess lessons with an agent over the course endpoint

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add chess-mcp -- npx -y @t145/chess-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "chess-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@t145/chess-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "chess-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@t145/chess-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "chess-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@t145/chess-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "chess-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@t145/chess-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add chess-mcp -- npx -y @t145/chess-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.chess-mcp]
command = "npx"
args = ["-y", "@t145/chess-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "chess-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@t145/chess-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user chess-mcp npx -- -y @t145/chess-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "chess-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@t145/chess-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "chess-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@t145/chess-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "chess-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@t145/chess-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "chess-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@t145/chess-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "chess-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@t145/chess-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "chess-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@t145/chess-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "chess-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@t145/chess-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "chess-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@t145/chess-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 13 tools change data; 7 names don't say. From the server's own tool labels and tool names; not verified by us.

- `signup`: Create an account and return a session token.
- `signin`: Sign in and return a session token.
- `signout`: End a session token.
- `get_profile` (name suggests: reads): Read a profile and its games.
- `create_game` (name suggests: changes): Create a game and claim a seat.
- `join_game`: Claim an open seat in a game.
- `list_games` (name suggests: reads): List active games.
- `get_game` (name suggests: reads): Return full game state including board, FEN and PGN.
- `make_move` (name suggests: changes): Play a move in SAN or UCI with an optional note.
- `wait_for_move` (name suggests: changes): Wait until it is your turn or the game changes.
- `draw`: Offer, accept or decline a draw.
- `resign`: Resign a game.
- `review_game`: Analyze a finished game with Stockfish.

## FAQ

### How do I start Chess MCP without cloning the repository?

Run npx -y @t145/chess-mcp --stdio. This starts the web app and MCP server together and opens the lobby in your browser. Node.js 22 or newer is required.

### Does anything leave my machine?

The server binds to 127.0.0.1 and has no remote account service. The only external downloads are the Stockfish engine, piece themes and opening dataset, which can be disabled with CHESS_MCP_NO_ENGINE_DOWNLOAD=1.

### Can an agent see my opponent's notes during a game?

No. Notes are private to each seat while the game runs and become public when the game ends.

### Which MCP transport should I use for a client that uses URLs?

Use a streamableHttp entry pointing at http://127.0.0.1:6464/mcp with an explicit type field. URL-only entries are treated as the legacy SSE transport and will fail.

### Is Chess MCP free?

Yes. Chess MCP is open source, so you can use and self-host it for free.

### How do I add Chess MCP to Claude Code?

Run this command in your terminal: claude mcp add chess-mcp -- npx -y @t145/chess-mcp

### What are the best alternatives to Chess MCP?

The closest alternatives to Chess MCP are Chesswithclaw, Llmpvp, Chess.com MCP by UnClick, Agent Arcade MCP and Slg MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Chesswithclaw](https://ai-powered.com/mcp/chesswithclaw): Chesswithclaw is a free MCP server for games and play.
- [Llmpvp](https://ai-powered.com/mcp/llmpvp): Llmpvp is an open-source MCP server for games and play.
- [Chess.com MCP by UnClick](https://ai-powered.com/mcp/chess-com-mcp-by-unclick): Chess.com MCP by UnClick is an open-source MCP server for games and play.
- [Agent Arcade MCP](https://ai-powered.com/mcp/agent-arcade-mcp): Agent Arcade MCP is an open-source MCP server for games and play.
- [Slg MCP](https://ai-powered.com/mcp/slg-mcp): Slg MCP is a freemium MCP server for games and play.
- [AI Chess Arena](https://ai-powered.com/mcp/ai-chess-arena): AI Chess Arena is an open-source MCP server for games and play.
- [Lichess MCP by UnClick](https://ai-powered.com/mcp/lichess-mcp-by-unclick): Lichess MCP by UnClick is an open-source MCP server for games and play.
- [Bot Arena](https://ai-powered.com/mcp/bot-arena): Bot Arena is an open-source MCP server for games and play.

---
Source: https://ai-powered.com/mcp/chess-mcp-2
