drio
Open app

Minesweeper MCP Server

Source

An MCP server for playing Minesweeper

Catalog onlyCatalog onlySTDIO

Overview

Minesweeper MCP Server is a Model Context Protocol server that allows MCP client agents to play the classic game of Minesweeper.

To use the server, follow the instructions to start the Minesweeper game server locally, build the MCP server, and configure your MCP client to add the tool.

  • Enables MCP clients to interact with the Minesweeper game. - Supports real-time gameplay through the Model Context Protocol. - Easy integration with existing MCP clients like Claude Desktop.
  1. Playing Minesweeper through an AI interface.
  2. Integrating Minesweeper gameplay into other applications.
  3. Enhancing user experience with interactive game features.

Add to your AI client

Use these steps to connect Minesweeper MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

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

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

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

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

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

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "minesweeper-mcp-server-tonypan2": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-minesweeper-mcp-server-tonypan2"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

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

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

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

FAQ

Can I play Minesweeper with any MCP client?

Yes! The server is designed to work with any compatible MCP client.

Is there a graphical interface for the game?

The server operates through text-based commands, but you can integrate it with graphical clients.

How do I troubleshoot connection issues?

Ensure that the game server is running and that your MCP client is correctly configured.