Repository avatar
AI Tools
v5.0.0
active

minecraft-mcp

com.mairwunnx/minecraft-mcp

Ask an AI about your Minecraft server and let it run it: players, worlds, configs, logs.

Documentation

minecraft-mcp

minecraft-mcp: let an AI agent run your server

npm MCP Registry Glama Release

🤖 minecraft-mcp lets an AI agent see and run your Minecraft server. Ask Claude “who’s online and where are they?”, “why is the server lagging?”, or “give everyone bread and set the time to morning”, and it answers with real data from your world.

It runs next to your AI client: Claude Desktop, Claude Code, Cursor, VS Code, or anything else that speaks MCP. From there it talks to WorldAPI on a Paper, Fabric, or NeoForge server, or in the world you play alone. The token you give it decides what the agent may do.

Русская версия

What you get

  • 🧰 50 tools for the server, worlds, blocks, chests, entities, players, commands, leaderboards, recipes, configs, logs, Java scripts, and other plugins’ data and actions. Most take several targets at once, so the agent makes fewer calls.
  • 🎒 Inventories in depth: every item’s enchantments, durability, and potion effects, and what’s inside shulker boxes and bundles.
  • 📜 Configs and logs: the agent reads the console and any config, and with the right token changes a value and keeps its comments.
  • 🔑 Only what your token allows: a viewer token shows 19 tools that only look, and read-only mode hides every write. Change the token’s permissions, and the tools follow without a restart.
  • 🎮 Singleplayer, no setup: with the WorldAPI mod in your game, minecraft-mcp finds the open world by itself and follows you from world to world. Ask “what am I looking at?” while you play.
  • 🙋 “Me” means you: set your player name, and “where am I?” just works.
  • ⏳ Live events: “tell me when Steve joins”.
  • 📣 Discord and Telegram in one sentence: “send deaths to my Discord” or “post joins to Telegram in Russian”, and the agent connects them through WorldAPI’s webhooks. Slack, Teams, and Google Chat too.
  • ↩️ Undo: the agent reads a build before it changes it, and takes back what it placed if you don’t like it.
  • 🧭 Never stuck on setup: when the address, the token, or WorldAPI itself is missing, the agent says what’s wrong and how to fix it, in game or in the admin panel.
  • 🛡️ Safe by design: game text is fenced as data, tools say when they destroy something, and the token never leaks.
  • 🔌 Every client: Claude Desktop in one click, or any MCP client over stdio or HTTP.

See it work

Claude Code over a Minecraft window, asked who’s online and whether the server lags: it calls minecraft-mcp twice and answers with TPS and tick time
Who’s online and whether the server lags, from the server’s own numbers

Asked where Lena is and what she’s doing: her coordinates and her AFK reason from Mo’Afks
Where a player is and what they’re doing, the AFK reason included

Asked to give everyone bread and set the time to morning: one command and one change to the world
Commands and changes to the world in one sentence

Asked to spawn an Epic zombie boss next to Lena: it finds her, then calls Mo’Bosses through WorldAPI
Other plugins’ actions too: a Mo’Bosses boss next to a player

Get started

  1. Install WorldAPI 4.6.0 or newer on your Paper, Fabric, or NeoForge server, and make a token with /worldapi token create agent. Playing alone? Put the WorldAPI mod in your game and skip the address and the token: claude mcp add minecraft -- npx -y @mairwunnx/minecraft-mcp. The Singleplayer page has the rest.

  2. Add minecraft-mcp to your client. In Claude Desktop, open minecraft-mcp.mcpb. In Claude Code:

    claude mcp add minecraft -e WORLDAPI_URL=http://localhost:8110/api/v1 -e WORLDAPI_TOKEN=your-token -- npx -y @mairwunnx/minecraft-mcp
    
  3. Ask “what’s the server status?”. The Installation page covers Cursor, VS Code, and HTTP.

Try it live

Moonlands, my hard survival server with friends, runs WorldAPI and lets anyone read it. Point the agent there without a token:

claude mcp add moonlands -e WORLDAPI_URL=https://minecraft.mairwunnx.com/worldapi/api/v1 -- npx -y @mairwunnx/minecraft-mcp

Then ask “who played the most on Moonlands this week?”.

Play on Moonlands: pure vanilla, hard mobs, AI, claims. minecraft.mairwunnx.com

Documentation

Everything else lives in the wiki.

For players and server owners

For developers

Related projects

  • Moonlands – the hard-survival server where all of these run.
  • WorldAPI – REST and WebSocket API to the world, players, and stats of a Paper, Fabric, or NeoForge server.
  • Allay – an AI helper in the game: ask with /ask, right in the chat.
  • Allay Server – the backend behind Allay.
  • Mo’Joins – join and quit messages in each player’s language.
  • Mo’Afks – a safe AFK mode that doesn’t block the night.
  • Mo’Bosses – monsters that spawn as bosses with classes, abilities, and loot.
  • minecraft-exporter – Prometheus metrics from WorldAPI.
  • minecraft-grafana – the Grafana dashboard for WorldAPI.

Content disclosures

  • 🤖 AI-generated code. AI agents wrote much of the code.
  • 🔌 For AI clients. It runs inside your AI client and talks only to the WorldAPI you point it at. It runs no model itself.
  • No telemetry, paid features, or ads.

🫡 Made by Pavel Erokhin (Павел Ерохин), aka mairwunnx.

NPM
@mairwunnx/minecraft-mcp
Install Command
npm install @mairwunnx/minecraft-mcp