Minesweeper

v1.0.0Developer Toolsstable

Enables MCP client agents to play the classic Minesweeper game by connecting to a separate Minesweeper game server. Provides tools for starting games, revealing cells, and placing flags through natural language interactions.

minesweeper-mcp-servermcpai-integration
Share:
107
Stars
0
Downloads
0
Weekly
0/5

What is Minesweeper?

Minesweeper is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables mcp client agents to play the classic minesweeper game by connecting to a separate minesweeper game server. provides tools for starting games, revealing cells, and placing flags through natura...

Enables MCP client agents to play the classic Minesweeper game by connecting to a separate Minesweeper game server. Provides tools for starting games, revealing cells, and placing flags through natural language interactions.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables MCP client agents to play the classic Minesweeper ga

Use Cases

Play Minesweeper via natural language
Game interaction through AI agents
tonypan2

Maintainer

LicenseMIT
Languagejavascript
Versionv1.0.0
UpdatedApr 14, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx minesweeper-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Minesweeper

The Minesweeper MCP Server lets AI agents play the classic Minesweeper game by bridging an MCP client (such as Claude Desktop) to a separate Minesweeper game server process. It exposes tools for starting new games, revealing individual cells, and placing or removing flags on suspected mines using 0-indexed coordinates. This server is ideal for demonstrating agent reasoning, game-playing strategies, and logical deduction through natural language instructions.

Prerequisites

  • Node.js 18 or later installed on your system
  • The companion Minesweeper game server running locally (https://github.com/tonypan2/minesweeper-server)
  • An MCP client such as Claude Desktop
  • Git to clone the repository
1

Start the Minesweeper game server

Clone and run the companion game server from https://github.com/tonypan2/minesweeper-server before starting the MCP server. The MCP server delegates all game state and logic to this process.

git clone https://github.com/tonypan2/minesweeper-server
cd minesweeper-server
# Follow the game server's own README to install and start it
2

Clone the MCP server repository

Clone the minesweeper-mcp-server repository to your local machine.

git clone https://github.com/tonypan2/minesweeper-mcp-server
cd minesweeper-mcp-server
3

Install dependencies and build

Install Node.js dependencies and compile the TypeScript source to the build directory.

npm install
npm run build
4

Configure your MCP client

Add the server to your Claude Desktop configuration file. Update the path to the absolute path of the built index.js file on your machine.

// claude_desktop_config.json
{
  "mcpServers": {
    "minesweeper": {
      "command": "node",
      "args": ["/absolute/path/to/minesweeper-mcp-server/build/index.js"],
      "env": { "DEBUG": "*" }
    }
  }
}
5

Restart Claude Desktop completely

Quit Claude Desktop from the system tray icon (not just closing the window) and reopen it so the new MCP server configuration is loaded.

6

Play Minesweeper via natural language

Once connected, ask Claude to start and play a game. The server handles revealing cells and placing flags based on the agent's logical reasoning.

Minesweeper Examples

Client configuration

Claude Desktop config referencing the locally built MCP server binary

{
  "mcpServers": {
    "minesweeper": {
      "command": "node",
      "args": ["/Users/yourname/minesweeper-mcp-server/build/index.js"],
      "env": {
        "DEBUG": "*"
      }
    }
  }
}

Prompts to try

Natural language prompts that work with the Minesweeper MCP server

- "Start a new game of Minesweeper and try your best to win. Remember that coordinates are 0-indexed."
- "Play Minesweeper until you have flagged all mines or hit a mine."
- "Reveal the cell at row 3, column 5, then flag any cells you suspect contain mines."
- "Show me the current state of the Minesweeper board."

Troubleshooting Minesweeper

Claude cannot connect to the MCP server after restarting

Make sure you quit Claude Desktop from the system tray icon rather than just closing the window. Also verify the absolute path to build/index.js is correct in your config.

The MCP server starts but the game server is unreachable

Ensure the companion minesweeper-server is running before starting Claude Desktop. The MCP server connects to the game server at startup and will fail silently if it is not available.

npm run build fails with TypeScript errors

Ensure you are using Node.js 18 or later. Run 'node --version' to check, and consider using nvm to switch versions if needed.

Frequently Asked Questions about Minesweeper

What is Minesweeper?

Minesweeper is a Model Context Protocol (MCP) server that enables mcp client agents to play the classic minesweeper game by connecting to a separate minesweeper game server. provides tools for starting games, revealing cells, and placing flags through natural language interactions. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Minesweeper?

Follow the installation instructions on the Minesweeper GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Minesweeper?

Minesweeper works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Minesweeper free to use?

Yes, Minesweeper is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "minesweeper-mcp-server": { "command": "npx", "args": ["-y", "minesweeper-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Minesweeper?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides