Skip to content
MCP server

Minecraft

Let an AI see and run a Minecraft server: players, worlds, chests, configs and logs

Runs locally

Minecraft is a free MCP server for games and play. It runs locally on your machine and is started by your AI client.

Pricing
Free
Platforms
CLI, Self-hosted
Runs
Locally
Version
5.1.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "minecraft-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mairwunnx/minecraft-mcp"
      ],
      "env": {
        "WORLDAPI_TOKEN": "<WORLDAPI_TOKEN>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • WORLDAPI_URLWorldAPI base URL including /api/v1, such as http://localhost:8110/api/v1. Leave it out for the singleplayer world open on this machine with the WorldAPI mod.
  • WORLDAPI_TOKENA WorldAPI token. Its permissions decide which tools the agent gets. Leave it empty for what anonymous clients may read. A singleplayer world brings its own token and never gets this one.
  • WORLDAPI_PLAYERYour player name. “I”, “me”, and “my” mean this player, and tools that take a player use it when the agent leaves one out.
  • WORLDAPI_LOCAL_DIRWhere singleplayer worlds announce themselves, ~/.worldapi/local by default.
  • WORLDAPI_READ_ONLY1 hides every tool that changes the server

About Minecraft

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.

What it does

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

Pricing

Free

No paid features, telemetry or ads, per the README.

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

How AIPoweredBot checks servers