# Minecraft

> Minecraft is a free MCP server for games and play. Let an AI see and run a Minecraft server: players, worlds, chests, configs and logs. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/mairwunnx/minecraft-mcp
- **MCP Registry name:** com.mairwunnx/minecraft-mcp
- **Categories:** [games and play](https://ai-powered.com/categories/games-and-play)
- **Listing updated:** 2026-11-23

## About

The server is a front end for WorldAPI, a REST and WebSocket API available as a mod or plugin on Paper, Fabric and NeoForge. It also works in singleplayer when the WorldAPI mod is installed, where it finds the open world by itself and follows you between worlds.

It offers 51 tools covering the server, worlds, blocks, chests, entities, players, commands, leaderboards, recipes, configs, logs and Java scripts. Inventory reads include enchantments, durability, potion effects and the contents of shulker boxes and bundles. Access follows the WorldAPI token: a viewer token exposes 19 read-only tools, and `WORLDAPI_READ_ONLY=1` hides every write. The agent can undo builds it placed, notify Discord, Telegram, Slack, Teams or Google Chat through webhooks, and wait for events such as a player joining.

The README discloses that AI agents wrote much of the code, that no model runs inside the server, and that there is no telemetry, paid features or ads. A public demo server can be queried without a token.

## Features

- **51 server tools:** Server, worlds, blocks, chests, entities, players, commands and more.
- **Deep inventory reads:** Enchantments, durability, potions and container contents.
- **Config and log access:** Reads console output and configs, and edits values with the right token.
- **Token-based permissions:** Viewer tokens show 19 read-only tools.
- **Singleplayer mode:** Detects the open world with the WorldAPI mod.
- **Undo and notifications:** Reverts placed builds and posts events to chat apps.

## Good for

- Ask who is online and where
- Diagnose why a server is lagging
- Give every player an item or change the time
- Send death or join events to Discord
- Review a build and undo a bad edit

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add minecraft-mcp --env WORLDAPI_TOKEN='<WORLDAPI_TOKEN>' -- npx -y @mairwunnx/minecraft-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "minecraft-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add minecraft-mcp --env WORLDAPI_TOKEN='<WORLDAPI_TOKEN>' -- npx -y @mairwunnx/minecraft-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.minecraft-mcp]
command = "npx"
args = ["-y", "@mairwunnx/minecraft-mcp"]
env = { WORLDAPI_TOKEN = "<WORLDAPI_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e WORLDAPI_TOKEN='<WORLDAPI_TOKEN>' minecraft-mcp npx -- -y @mairwunnx/minecraft-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
```

## FAQ

### What does Minecraft connect to?

A WorldAPI instance on a Paper, Fabric or NeoForge server, or the WorldAPI mod in singleplayer.

### Can I make Minecraft read-only?

Yes. Set WORLDAPI_READ_ONLY to 1, or use a viewer token.

### Does Minecraft cost anything?

The README says there are no paid features, telemetry or ads.

### Which clients work?

Claude Desktop, Claude Code, Cursor, VS Code and any MCP client.

### How do I add Minecraft to Claude Code?

Run this command in your terminal: claude mcp add minecraft-mcp --env WORLDAPI_TOKEN='<WORLDAPI_TOKEN>' -- npx -y @mairwunnx/minecraft-mcp

### What are the best alternatives to Minecraft?

The closest alternatives to Minecraft are Space-core, Agent Arena, Minecraft MCP, B.O.M Founding Bots (beta) and Wizard101 Wiki.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Space-core](https://ai-powered.com/mcp/space-core-2): Space-core is a free MCP server for games and play.
- [Agent Arena](https://ai-powered.com/mcp/agent-arena-3): Agent Arena is a freemium MCP server for games and play.
- [Minecraft MCP](https://ai-powered.com/mcp/minecraft-mcp-2): Minecraft MCP is an open-source MCP server for games and play.
- [B.O.M Founding Bots (beta)](https://ai-powered.com/mcp/b-o-m-founding-bots-beta): B.O.M Founding Bots (beta) is a free MCP server for games and play.
- [Wizard101 Wiki](https://ai-powered.com/mcp/wizard101-wiki): Wizard101 Wiki is a free MCP server for knowledge and memory.
- [Bot Poker Arena](https://ai-powered.com/mcp/bot-poker-arena): Bot Poker Arena is a paid MCP server for games and play.
- [RV Chess](https://ai-powered.com/mcp/rv-chess): RV Chess is a free MCP server for games and play.
- [Assetto Corsa Config](https://ai-powered.com/mcp/assetto-corsa-config): Assetto Corsa Config is an open-source MCP server for games and play.

---
Source: https://ai-powered.com/mcp/minecraft
