This repository provides a Model Context Protocol (MCP) server enabling MCP client agents to play Minesweeper, interacting with a separate Minesweeper game server. It allows agents like Claude to play
This repository hosts a Model Context Protocol (MCP) server designed to enable MCP client agents to play Minesweeper. It's intended to work alongside the Minesweeper game server.
npm install
and npm run build
.claude_desktop_config.json
file to include the server, specifying the path to the built index.js
file and setting the DEBUG
environment variable.Use a prompt like: "Start a new game of Minesweeper. Try your best to keep playing until you have flagged all mines. Remember that the coordinates are 0-indexed."
The interaction involves the agent starting a game, potentially making mistakes like placing flags incorrectly, and possibly giving up after multiple attempts.
tonypan2/minesweeper-mcp-server
March 20, 2025
March 28, 2025
JavaScript