minesweeper-mcp-server

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

108
4

Minesweeper MCP Server

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.

Getting started

  • First, set up the game server following the provided instructions.
  • Build the MCP server using npm install and npm run build.
  • Configure your MCP client to integrate the tool. For Claude Desktop on Windows, modify the claude_desktop_config.json file to include the server, specifying the path to the built index.js file and setting the DEBUG environment variable.
  • Restart Claude Desktop to recognize the new tool.

Example prompt

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."

Example interaction

The interaction involves the agent starting a game, potentially making mistakes like placing flags incorrectly, and possibly giving up after multiple attempts.

Repository

TO
tonypan2

tonypan2/minesweeper-mcp-server

Created

March 20, 2025

Updated

March 28, 2025

Language

JavaScript

Category

AI