loading…
Search for a command to run...
loading…
Exposes tic-tac-toe game tools (new_game, get_state, make_move) for Claude to play against a human via chat.
Exposes tic-tac-toe game tools (new_game, get_state, make_move) for Claude to play against a human via chat.
A minimal MCP server exposing a tic-tac-toe game as tools, intended to be played by Claude (via Claude Desktop) against a human via chat.
new_game — reset to empty board, X to moveget_state — return current board + statusmake_move(row, col) — place the current player's mark; server alternates turnscd ttt-mcp
npm install
npm run build
Edit your claude_desktop_config.json:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonAdd (or merge into) this:
{
"mcpServers": {
"tic-tac-toe": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/ttt-mcp/dist/index.js"]
}
}
}
Replace the path with your actual absolute path. Then fully quit and restart Claude Desktop.
In Claude Desktop, open a new chat and look for the MCP tools indicator (slider/plug icon near the input). You should see tic-tac-toe listed with three tools.
If it's missing, check Claude Desktop's MCP logs:
~/Library/Logs/Claude/mcp*.logYou can poke the server directly with the official inspector:
npm run inspect
This launches a web UI that lets you call the tools manually — handy for debugging.
In Claude Desktop chat, just say: "Let's play tic-tac-toe. You start."
I'll call new_game, make a move, and we go from there. When it's your turn, tell me your move ("row 1 column 2") and I'll call make_move on your behalf, then take my own turn.
Add this to claude_desktop_config.json and restart Claude Desktop.
{
"mcpServers": {
"ttt-mcp": {
"command": "npx",
"args": []
}
}
}