Play chess against an LLM through MCP. (Nothing serious, it's quite bad at it. Proof of Concept.)
- Node.js (install via NVM if not available)
# Start frontend
cd frontend
npm install
npm run start
# Start backend (in another terminal)
cd backend
npm install
npm run start
- Open Claude Desktop
- Go to Settings → Developer → Edit Config
- Add the following (replace
/path/to/project
with your actual project path):
{
"mcpServers": {
"chess": {
"command": "npx",
"args": ["tsx", "/path/to/project/mcp-chess-poc/backend/mcp.ts"]
}
}
}
- Restart Claude
(Any MCP compatible client should work)
- Make a move in browser
- Ask the LLM to play:
- Once the LLM is limited in the amount of moves it can make, it starts tripping up.
- Refreshing the browser resets the game