minesweeper
An MCP server for playing Minesweeper
claude mcp add --transport stdio tonypan2-minesweeper-mcp-server node C:\path\to\repo\minesweeper-mcp-server\build\index.js \ --env DEBUG="*"
How to use
This Minesweeper MCP Server provides a Model Context Protocol interface that lets an MCP client agent play Minesweeper against a hosted game server. Once running, clients can invoke the MCP tool to start new games, reveal cells, and place flags via the MCP API exposed by the Node server. The server bridges the MCP protocol with the Minesweeper game logic, enabling conversational agents to control gameplay, request board status, and respond to game events. Typical usage involves configuring an MCP client (for example Claude Desktop or another MCP-enabled agent) to load the tool by pointing at the built index.js entry point, and then issuing commands to start games and perform moves through the MCP tool’s capabilities. The server is designed to work alongside the Minesweeper game server described by the project, so ensure that the Minesweeper game server is running locally as documented by its repository before starting the MCP server.
To use the tool from an MCP client, you would typically load the tool configuration (as shown in the README example) and then issue prompts that translate into game actions (e.g., creating a new game, revealing a cell, or placing a flag). The MCP agent can also query the current board state and respond to game events in natural language, providing a seamless interaction loop for playing Minesweeper through conversation.
How to install
Prerequisites:
- Node.js (and npm) installed on your machine
- Access to the Minesweeper game server (as described in the Minesweeper game server README)
Installation steps:
- Clone the repository for the Minesweeper MCP Server and navigate into it.
- Install dependencies and build the project:
npm install
npm run build
- Start the Minesweeper game server according to its documentation, so the MCP server can connect to it.
- Run the MCP server (or integrate it into your environment as needed). For example, using Node to run the built entry point:
node build/index.js
- Verify the MCP server is reachable by the configured client (e.g., Claude Desktop) using the example configuration provided in the README.
Note: If you need to customize the environment, you can set the DEBUG environment variable or modify other supported environment variables as described by the project.
Additional notes
Tips and notes:
- Ensure the Minesweeper game server is running and accessible before starting the MCP server.
- The example configuration uses DEBUG=* to enable verbose logging; adjust as needed for production.
- When configuring clients (e.g., Claude Desktop), use the path to the built index.js and ensure quotes/escaping are correct for your OS (Windows example shown in README).
- If you update the server code, rebuild with npm run build to refresh the build artifacts.
- If you encounter port or connection issues, verify network access between the MCP server and the Minesweeper game server and check firewall settings.
- The tool is intended to be used with MCP-enabled clients; consult the MCP client’s documentation for how to add and invoke the Minesweeper tool.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.