Purujit Vij
← all work

case study ·

Why an LLM shouldn't move the pieces: Claude vs a 3200 bot, and three fixes to chess-mcp

I had Claude Fable 5.1, one of the best models on the market at the time, play Chess.com's 3200-rated bot through browser automation. It played 28 moves the review rated great, best or excellent, then lost its queen to one line-opening blunder and tried two illegal moves. That's why a model needs an engine in the loop, and why I sent three fixes to an open-source chess MCP server.

  • TypeScript
  • MCP
  • Docker
  • Stockfish
Role
Test, review and three upstream pull requests
Published
20 Nov 2026
Read
7 min

the results

  • 28moves rated great, best or excellent by Chess.com's review
  • 1line-opening blunder that lost the queen (37.Bb1??)
  • 2illegal moves attempted (44.Rh1, 46.Rf1)
  • 3fixes sent upstream as pull requests

The test

On 21 October 2026 I let Claude Fable 5.1, one of the best models on the market at the time, play White on my Chess.com account against Maximum, a bot rated 3200. It moved the pieces itself through Chrome DevTools MCP, with no engine to help: the model read the board and chose every move.

The opening was textbook. A quiet Giuoco Piano, both sides castled, the classic knight route from b1 to d2, f1 and g3, and a roughly level position after 15 moves. Chess.com’s review later rated 1 move great, 12 best and 15 excellent. Then it lost by checkmate on move 52.

Chess.com result card: Maximum won by checkmate. The coach says 'Ah, a few positional errors and suddenly your opponent has the upper hand... tricky middlegame!' Move ratings: 1 great, 12 best, 15 excellent.
28 good moves, and still lost by checkmate.

Where it went wrong

Losing material slowly

After 23.Nf5 Bxf5 24.exf5 Nd4, the knight forked the queen, the bishop and the f5 pawn, and the pawn fell on move 25. On move 35, Black’s rook took a2 and settled on White’s second rank. A move later Black’s b-pawn reached b3 and attacked the bishop on c2.

The blunder: 37.Bb1??

  2  r . B Q . P R .     White's second rank before move 37: black rook on a2,
     a b c d e f g h     white bishop on c2 and queen on d2

The bishop on c2 was attacked by the pawn on b3, so Claude moved it to a safe square: 37.Bb1. But on c2 the bishop was doing a second job. It was the only piece between the black rook on a2 and the white queen on d2. The moment it left, 37…Rxd2 took the queen for free, and the rest of the game was a slow mate.

This is the step people skip most, and it’s in the checklist I use for my own games: when a piece moves, was it defending something, or blocking a line? The model checked that b1 was safe for the bishop. It never asked what the bishop was doing on c2.

Two illegal moves

Late in the game the model tried to play 44.Rh1 to stop the h-pawn, with its own king on g1 in the way of the rook on d1. Two moves later it tried 46.Rf1 to defend d1 twice, with its own pawn on f2 between the rook on f3 and f1. Chess.com rejected both, and it played 44.Kh2 and 46.Bc2 instead.

Claude's running commentary in Hinglish while playing: it plans 44.Rh1, then notes 'Rh1 illegal tha (king g1 pe raasta rokta hai)' and plays 44.Kh2; later it plans 46.Rf1 and notes 'Rf1 bhi illegal (f2 pawn beech me)' before playing 46.Bc2.
Claude's own commentary during the game: "Rh1 illegal tha (king g1 pe raasta rokta hai)" and "Rf1 bhi illegal (f2 pawn beech me)".
The board after 44.Kh2, the move Claude played after its illegal 44.Rh1 was rejected. White's king is on h2 next to the rook on f3; Black's queen sits on b4 and a pawn on b3. The move list on the right runs to 52...Nxf3#, 0-1.
After 44.Kh2, the fallback for the illegal Rh1. The move list runs to the end: 52...Nxf3#.

What that means

A language model predicts moves as text. It knows “Rh1” is a common move in positions like this; it doesn’t hold a board where its own king stands on g1. Twenty-eight good moves show it understands chess talk. One unmasked rank and two illegal moves show it doesn’t track chess geometry.

And this was one of the best models available at the time. A bigger model won’t fix it, because the problem isn’t how much the model knows about chess; it’s that nothing checks its moves against a real board.

So the rule I took away: a model should never submit a move straight to the board. Every candidate move should pass through code that knows the rules, a real engine like Stockfish, and, for coaching, a check for the blunder pattern itself.

Looking for an engine to plug in

I reviewed three open-source chess MCP servers, to give a model an engine as a tool:

turlockmike/chess-mcp sonirico/mcp-stockfish chesspal-mcp-engine
Language TypeScript Go Python
Board image in chat Yes No No
Masters games database Yes (Lichess) No No
Finds Stockfish Hardcoded path Config Searches

turlockmike/chess-mcp had the most useful features for a coach: it renders the board as an image in the chat and looks up master games. But it didn’t run out of the box:

  • Stockfish was hardcoded to /opt/homebrew/bin/stockfish, so on anything but an Apple Silicon Mac with Homebrew the engine never started and Claude Desktop only said “Server Disconnected”.
  • All 504 entries in package-lock.json pointed at a private AWS CodeArtifact registry, so npm install from a fresh clone failed.
  • The Docker image couldn’t build: the runtime stage ran npm ci without the lockfile, never installed Stockfish, and the image library behind the board renders had no build dependencies on Alpine. An issue about the missing Docker setup had been open since April 2025.

I also found three problems I haven’t fixed yet: PGN input is passed to a FEN validator and crashes, the masters search caps its year filter at 2024, and the Lichess masters API now needs a token.

Three fixes, sent upstream

  • PR #6: find Stockfish anywhere. The engine path now comes from STOCKFISH_PATH, then PATH (including stockfish.exe on Windows), then the common install folders, and startup fails with a clear install message if nothing is found. It’s likely the cause of the repo’s “Server Disconnected” issue.
  • PR #7: point the lockfile at the public npm registry. 504 one-line URL changes; every version and integrity hash stays identical, so npm installs the exact same packages.
  • PR #8: a Docker image that builds and runs. Both stages move to Debian (node:20-bookworm-slim), where Stockfish is a package and the image library compiles cleanly; the runtime stage carries only Stockfish and the libraries it links against. It closes the open Docker issue.

All three are open, with no response yet; the repository hasn’t had a push since February 2025. They’re still the fixes anyone running the server from source needs, and my fork has them.

What’s next: Blunder Guard

The plan, not built yet, is an MCP server that checks every move before it reaches the board, using the same four questions I ask in my own games:

  1. What does the opponent’s last move attack?
  2. Is the square I’m moving to safe: how many attackers, how many defenders?
  3. Was the piece I’m moving defending something, or blocking a line?
  4. Does the opponent get a check or a fork after my move?

Step 3 alone would have stopped 37.Bb1. Stockfish can also limit its own strength from 1320 to 3190 Elo, so the same server could coach a beginner and test a master.

Once the fixes are merged, I’ll run the rematch: the same model against the same 3200 bot, this time with the chess MCP server and the Blunder Guard checks in the loop. Then a smaller, cheaper model under the same setup. The question is whether an engine and a checklist make up for what the model can’t see on its own, or whether it still loses.

What I learned

  • Models are good at chess talk, not chess geometry. Twenty-eight good moves, then one unmasked rank and two illegal moves.
  • Validate before you act. The model proposes a move; code that knows the rules decides whether it’s played.
  • Run a tool before you build on it. The server with the best features didn’t install, build or start on most machines.
  • Fix it upstream. Three small, focused pull requests help everyone who hits the same wall, merged or not.

let's talk!

Hiring for AI or platform engineering?

I like ambiguous 0→1 problems: turning them into clear system designs, and shipping software that behaves safely in production.