Nouchess
Allows playing chess against Google AI Studio models via a Gemini API key, with model selection and per-game token usage.
Allows playing chess against NVIDIA NIM models via an NVIDIA API key.
Allows using local Ollama models as chess opponents, with automatic plain-text move protocol for models that do not support tool calling.
Allows playing chess against OpenAI models and other OpenAI-compatible API providers via API key, including move generation and chat.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
♞ Nouchess
English · Português (Brasil)
Play chess against LLMs. Fully open source (GPL-3.0).
The name comes from nous (νοῦς), Greek for "mind" or "intellect".
There are two ways to play:
MCP (available): an agent such as Claude Code, Codex or Antigravity connects to Nouchess over MCP. You move on a web board and talk to the agent in its own chat. No API key needed: the agent runs on the subscription you already have.
API (available): you add an API key (Anthropic, OpenAI, Google AI Studio, NVIDIA NIM, OpenRouter, or any OpenAI-compatible provider) or point Nouchess at a local model (Ollama, LM Studio). You pick a model and play it on the board, with a built-in chat next to it.
Installation
Linux (Flatpak): test builds are available; see packaging/flatpak. Android: Nouchess Lite (API mode only) is in testing; see apps/shell.
From source, Nouchess requires Node 22.13+ and pnpm.
git clone https://github.com/denkalli/Nouchess.git && cd Nouchess
pnpm install
pnpm build # builds the web boardRelated MCP server: Chess MCP Server
Connecting an agent
Recommended: stdio
The agent starts Nouchess on its own, so you don't need to keep anything running.
Claude Code
claude mcp add --scope user nouchess -- node /path/to/Nouchess/packages/server/bin/nouchess.js mcpCodex: in ~/.codex/config.toml
[mcp_servers.nouchess]
command = "node"
args = ["/path/to/Nouchess/packages/server/bin/nouchess.js", "mcp"]Then ask: "let's play chess on nouchess". In Claude Code you can also run the play prompt as a slash command: type /mcp__nouchess__play alone in the message box (no backticks, no other text). The Claude desktop app refuses messages that mix a slash command with other text, links or formatting.
How it works:
Opening an agent session starts nothing: the tool list is answered locally by the stdio bridge.
On the first tool call, the bridge checks whether the server is running. If it isn't, the bridge starts it in the background, detached from the agent, and the board opens in your browser.
The server keeps running after the agent session ends. It shuts itself down after 30 minutes with no board open and no agent activity (
NOUCHESS_IDLE_EXIT_MIN).Multiple sessions and agents share the same server and the same game.
Alternative: HTTP
For clients that only speak Streamable HTTP. In this mode the server must be running before the agent session starts.
pnpm start # starts the server and opens http://localhost:3737claude mcp add --scope user --transport http nouchess http://localhost:3737/mcpDevelopment
pnpm dev # server in watch mode + UI with hot reload at http://localhost:5173Playing against a model (API mode)
Start Nouchess (
pnpm start, or let an agent start it) and open Settings.Add an API key for a provider, or check that your local Ollama / LM Studio server is running. Test lists the models the key can use.
In Play → New game → Model (API), pick the provider and model, optionally a reasoning effort, a name and a personality, then start.
Notes:
Every move (and every chat reply) is a request to the provider and uses your API credits. Token usage is shown per game.
Keys can also come from environment variables (
ANTHROPIC_API_KEY,OPENAI_API_KEY,GEMINI_API_KEY,NVIDIA_API_KEY,OPENROUTER_API_KEY). Without a key, the Anthropic provider also accepts anant auth loginprofile.Models that don't support tool calling (common with small local models) switch automatically to a plain-text protocol (
MOVE: e4).If the provider fails (network, rate limit, invalid key), the game pauses and shows a Try again button.
Post-game analysis
Open a finished game (from History, or Analyze game at the end of a game) and click Analyze with Stockfish. The engine runs in your browser: Stockfish 19 lite, compiled to WebAssembly. You get:
an evaluation bar and a graph of White's winning chances (click it to jump to a move);
each move classified as best, inaccuracy (
?!), mistake (?) or blunder (??), with the better move and an arrow for the engine's choice;accuracy, average centipawn loss and error counts for both sides.
The result is saved with the game. Hallucination games can't be analyzed.
Ratings
The Ratings tab ranks every opponent you've played with Glicko-2, per configuration (the same model at a different effort is a different player). API models and MCP agents are kept in separate pools, since agents have tools. Ratings measure opponents against you; enter your rating from another site (e.g. Lichess) to anchor the scale. Untick Counts toward ratings on any game you don't want to count.
Calibration (in the Ratings tab) puts a model on a universal scale. It plays automated games against Stockfish anchors of known strength, on the server, moving up a level after each win and down after each loss. The token cost is estimated before it starts. The first run also measures the weaker Stockfish levels, which takes about 2 minutes and no tokens.
Hallucination mode 🍄
Tick Hallucination mode when starting a game, or ask an MCP agent for it (new_game with hallucination: true). The rules of chess stop existing:
On its turn the opponent narrates what happens and changes the board however it likes: pieces fly anywhere, new queens appear, kings go on holiday. It can also declare the game over, with whatever reason it finds funny.
You can drag any of your pieces to any square.
It's meant for laughs, not for rating. Hallucination games have no PGN (use Copy FEN).
How a game works (MCP mode)
Agent: make_move("e4") ──► server ──► board updates (WebSocket)
Agent: wait_for_opponent() … blocks …
You: move a piece on the board ──► wait_for_opponent returns your move
Agent: make_move(...) → wait_for_opponent() → …wait_for_opponentreturns "still waiting" every ~45s (NOUCHESS_WAIT_MS), because MCP clients abort long-running calls. The agent is told to simply call it again.If the agent stops anyway, send anything in its chat ("your move"). It resumes with
get_state.Illegal moves by the agent count: after 3 in the same turn, it forfeits.
The agent is told not to use chess engines. Agents have shell access, so this is an honor rule, not a guarantee.
MCP tools
Tool | Description |
| Start a game: the agent's color and its |
| Set the agent's name when the game was started from the board |
| ASCII board, FEN, recent moves, whose turn it is, legal moves |
| Play a move (SAN or UCI), with an optional comment |
| Hallucination mode: narration + arbitrary board changes, optionally declaring the result |
| Wait for the human's move |
| Message shown next to the board |
| Draws |
| Resign |
MCP prompt: play.
Project structure
packages/core Game rules and state (chess.js), serialization, LLM rendering, tests
packages/app Platform-neutral app: game service, API opponent, calibration, settings,
provider adapters (Anthropic, OpenAI-compatible) and the API route table
packages/server Node adapter: HTTP + WebSocket + MCP (HTTP and stdio bridge), SQLite store,
config file, Stockfish process
apps/web React + Vite + chessground (the Lichess board); English and Portuguese UI
apps/shell Tauri v2 shell: the desktop app and Nouchess Lite for Android (in progress)Dev helper to act as an agent without an MCP client:
pnpm --filter @nouchess/server mcp-call make_move '{"move":"e4"}'Configuration
Variable | Default | |
|
| Server port |
|
| Bind address. Keep it local: the MCP endpoint has no authentication |
|
| Maximum duration of each |
|
| Idle minutes before a server auto-started by the stdio bridge shuts down |
|
| Set to |
| (per-OS default) | Put the database and settings in this directory instead |
| Extra hostnames (comma-separated) the server accepts besides |
Data and privacy
Games are saved in a SQLite database:
~/.local/share/nouchess/nouchess.dbon Linux,~/Library/Application Support/nouchess/on macOS,%LOCALAPPDATA%\nouchess\on Windows. An unfinished game resumes after a restart.Settings and API keys live in
config.jsonin~/.config/nouchess/(Linux),~/Library/Application Support/nouchess/(macOS) or%APPDATA%\nouchess\(Windows), with file mode0600. Keys are never sent to the browser.The server listens on
127.0.0.1only. It rejects requests whoseHostisn't local (DNS rebinding) and state-changing requests from other websites' origins.Nouchess sends nothing anywhere except to the providers you configure.
Versioning
Nouchess uses CalVer in the form YY.MM.PATCH. For example, 26.11.0 is the first release of November 2026. See the CHANGELOG and the ROADMAP.
License
GPL-3.0-or-later. The board uses chessground (GPL-3.0). The analysis engine is Stockfish.js 19 (GPL-3.0), vendored in apps/web/public/engine/.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Chess MCP for Claude: engine analysis, attack maps, game review. One URL, no install.
Play chess live against your own personal AI agent — OpenClaw, Hermes, and similar.
Interactive Stockfish 19 chess review & boards for MCP Apps hosts (Claude, ChatGPT).
Play real-time massively multiplayer chess on one endless board, as an AI agent.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides 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.5Apache 2.0
- FlicenseAqualityDmaintenanceEnables chess gameplay and interaction through MCP protocol. Allows users to play chess games, make moves, and manage chess sessions through natural language commands.2-
- AlicenseAqualityCmaintenanceEnables AI agents to play and analyze chess, validate moves, and view a live synchronized visual board in the browser through MCP tools.6MIT
- AlicenseNot gradedqualityCmaintenanceEnables users to play interactive chess against the model inside ChatGPT, with the user taking white and the model black on a rendered board. Provides tools to start and end games, validate and apply both user and model moves, and retrieve the authoritative FEN, PGN, legal moves, and game history.MIT