# minesweeper-mcp-server

> 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

## Overview

- **Category:** AI
- **Language:** JavaScript
- **Stars:** 106
- **Forks:** 4
- **Owner:** tonypan2
- **GitHub:** https://github.com/tonypan2/minesweeper-mcp-server
- **Created:** 2025-03-20T07:16:50+00:00
- **Updated:** 2025-03-28T11:11:02+00:00
- **Source:** https://model-context-protocol.com/servers/minesweeper-mcp-server-for-ai-agents

## Setup

## Setup
- Follow the [instructions](https://github.com/tonypan2/minesweeper-server) of the game server to start it locally.
- Build the MCP server:

```bash
npm install
npm run build
```
- Configure your MCP client to add the tool; for example, here is how to add the tool to Claude Desktop on Windows's `claude_desktop_config.json` ([locating the file](https://gist.github.com/feveromo/7a340d7795fca1ccd535a5802b976e1f#3-configure-claude-desktop)), assuming you cloned the repo at `C:\path\to\repo\minesweeper-mcp-server`:

```JSON
{
  "mcpServers": {
    "mcp-server": {
      "command": "node",
      "args": ["C:\\path\\to\\repo\\minesweeper-mcp-server\\build\\index.js"],
      "env": {
        "DEBUG": "*"
      }
    }
  }
}

```
- Claude Desktop : Restart Claude Desktop to let it pick up the tools, quitting from the tray menu icon; if you click the Tools icon, it should show the new tools.

## Tools

## Available Tools

1.  Minesweeper MCP Server (Allows an MCP client agents to play a game of Minesweeper).

