Minecraft

السجل الرسمي الذكاء الاصطناعي والوكلاء

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

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package @mairwunnx/minecraft-mcp
Claude Code
claude mcp add minecraft -e 'WORLDAPI_URL=<WORLDAPI_URL>' -e 'WORLDAPI_TOKEN=<your worldapi_token>' -e 'WORLDAPI_READ_ONLY=<WORLDAPI_READ_ONLY>' -- npx -y @mairwunnx/minecraft-mcp@4.1.1
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "minecraft": {
            "command": "npx",
            "args": [
                "-y",
                "@mairwunnx/minecraft-mcp@4.1.1"
            ],
            "env": {
                "WORLDAPI_URL": "<WORLDAPI_URL>",
                "WORLDAPI_TOKEN": "<your worldapi_token>",
                "WORLDAPI_READ_ONLY": "<WORLDAPI_READ_ONLY>"
            }
        }
    }
}

متغيرات البيئة

  • WORLDAPI_URL WorldAPI 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_TOKEN سري A WorldAPI token; its permissions decide which tools the agent gets. Leave empty for what anonymous clients may read.
  • WORLDAPI_READ_ONLY 1 hides every tool that changes the server

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. minecraft-mcp
  2. What you get
  3. Get started
  4. Try it live
  5. Documentation
  6. Related projects

minecraft-mcp

🤖 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—and talks to WorldAPI on any Paper server. The token you give it decides what the agent may do.

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

What you get

  • 🧰 46 tools for the server, worlds, blocks, chests, entities, players, commands, leaderboards, recipes, configs, logs, and Java scripts. 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 17 tools that only look, and read-only mode hides every write.
  • 🙋 “Me” means you: set your player name, and “where am I?” just works.
  • ⏳ Live events: “tell me when Steve joins”.
  • 🛡️ 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.

Get started

  1. Install WorldAPI 3.0.0 or newer on your Paper server, and make a token with /worldapi token create agent.
  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?”.

Documentation

Everything else lives in the wiki.

For players and server owners

For developers

  • Moonlands—the hard-survival server where all of these run.
  • WorldAPI—REST and WebSocket API to a Paper server's world, players, and stats.
  • 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.

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

الأسئلة الشائعة

ما هو Minecraft؟

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

كيف أثبّت Minecraft؟

يعمل على جهازك. في Claude Code: claude mcp add minecraft -e 'WORLDAPI_URL=<WORLDAPI_URL>' -e 'WORLDAPI_TOKEN=<your worldapi_token>' -e 'WORLDAPI_READ_ONLY=<WORLDAPI_READ_ONLY>' -- npx -y @mairwunnx/minecraft-mcp@4.1.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Minecraft إلى مفتاح API؟

نعم. يتطلب WORLDAPI_TOKEN، وتضبطها في إعداداته.

هل Minecraft مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون Minecraft؟

ينشره MairwunNx. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.