mc-ai-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mc-ai-mcp
MCP-first world-building bridge for Minecraft — AI agents (Claude, Codex, Qoder, any MCP host) build large structures through guarded MCP tools on Paper/Purpur, Fabric, NeoForge, and Bedrock (BDS).
Phase 1 MVP (v0.1.0) ships the full control plane + Paper data plane, validated end-to-end on a real Paper 1.21.1 server: a house was built through MCP tools, TPS held ~20.0 under load, and a kill -9 mid-build resumed from the server watermark.
Architecture
AI / Agent Host (LLM, API key, model, effort) <- keys never leave this layer
│ MCP protocol (Streamable HTTP, bearer)
▼
MCP Server (Node 22 + SQLite) <- control plane: 14 tools,
│ WebSocket (adapters dial out) sessions, op queue, guardrails
▼
World Adapter (data plane) <- writes blocks, dual budget,
Paper/Purpur │ Fabric* │ NeoForge* │ Bedrock* snapshot/undo, watermark resumeMCP Server never calls an LLM.
base_url/api_key/model/effortlive on the agent host; the game only ever sees throwaway per-server tokens.Two-layer guardrails: every tool call is validated server-side (schema, session, extent, quotas, rate) and re-validated adapter-side (bounds, budget, physics-off writes).
Bulk rule: agents build with
fill_box/clone_region/paste_template.set_blockis a quota-capped fine-edit tool.
Related MCP server: Minecraft MCP Server Pro
MCP tools (14)
Group | Tools |
Session & QA |
|
Building |
|
Safety & vision |
|
Quickstart (Paper)
Run the broker (any Node 22 host):
npm ci (cd mcp-server && npx tsc -p tsconfig.json) MCP_PORT=8876 MCP_AUTH_TOKENS=<agent-token> \ ADAPTER_TOKENS='{"paper-1":"<adapter-token>"}' \ node mcp-server/dist/server.jsor
docker compose up(seedocker-compose.yml,.env.example).Install the plugin — download
mc-ai-mcp-paper-0.1.0.jarfrom the v0.1.0 release intoplugins/, start Paper 1.21.x with:MC_AI_CONNECTOR_URL=ws://127.0.0.1:8876/adapter \ MC_AI_ADAPTER_TOKEN=<adapter-token> MC_AI_ADAPTER_ID=paper-1 \ java -Xmx2G -jar paper.jar noguiExpect
[mc-ai-mcp] mc-ai-mcp adapter connected as paper-1.Connect your agent host to
http://<broker>:8876/mcpwithAuthorization: Bearer <agent-token>(Streamable HTTP MCP). Then callsession_start→fill_box→get_heightmap→session_end.
Config precedence: env > config file (plugins/mc-ai-mcp/config.properties); the adapter token is env-only and is never read from files. In-game /aibuild panel is admin-only (mc-ai-mcp.admin).
Build & test
npm test # 42 JS tests (schemas, sessions, queue, guardrails, hub, e2e)
bash ./gradlew build --no-daemon # java core + paper adapter (+ shadow fat jar)
bash ./gradlew :java:platform-paper:shadowJar # plugins/mc-ai-mcp jarPhase 1 exit-gate evidence (real runtime)
Gate | Result |
House via MCP |
|
TPS soak (10 min, 3 builds) | 60 samples, TPS ≈ 20.0, MSPT ≈ 0.13 |
| reconnect in 24 s → queue drained → 98 replayed stone blocks at far pad |
Guardrails |
|
Secret audit | gitleaks full history (65 commits): no leaks; GitHub push protection enabled |
Release | v0.1.0, repo public |
Runbook: docs/runbooks/phase1-gate.md · Design: docs/specs/2026-12-05-mc-ai-mcp-design.md
Roadmap
Phase 2 — large builds: module templates, bigger extents, soak/stress matrix.
Phase 3 — Fabric + NeoForge adapters (
*.jar, same core journal/queue) — assets will be attached to their own releases; not yet built.Phase 4 — Bedrock BDS adapter (
.mcaddonbehavior pack + WS bridge) and Java-onlytopdown_pngvision — not yet built;.mcaddonwill be attached when Phase 4 ships.
Release assets in v0.1.0: Paper plugin jar only. Fabric/NeoForge jars and the Bedrock
.mcaddonare Phase 3/4 deliverables and are intentionally not attached yet — no placeholder binaries.
Security
AI provider keys live only on the agent host (env/keychain). Never in-game, never in this repo.
Game adapters hold a scoped, rotatable broker token (env-only); Bedrock will use BDS server-admin variables.
Repo hygiene: gitleaks pre-commit + CI, GitHub Secret Scanning + Push Protection, Apache-2.0 SPDX files, and
.agent/(AHP) journaling with hash-chained, secret-free handoffs.
Contributing
Contributions are welcome under DCO (git commit -s). See CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md.
License & disclaimer
Apache-2.0 — see LICENSE / NOTICE.
Not affiliated with, endorsed by, or sponsored by Mojang Studios or Microsoft. “Minecraft” is a trademark of Mojang Studios. No Minecraft game assets are distributed in this repository.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate and edit images, video, voice and music from any MCP client. 50 tools, 46 models.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
All 20 YourAITools agent APIs in one MCP server. Most tools free; pay with credits or x402.
Build your own tools from chat: design, test and host them on a shareable MCP server URL.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control a Minecraft bot for movement, building, crafting, and instant schematic-based structure spawning via MCP tools.2Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control Minecraft via MCP with configurable versions, creative building commands, survival helpers, and an autonomous agent loop.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control Minecraft characters and build structures from blueprint files via MCP, with tools for listing, parsing, building, and verifying schematics.Apache 2.0
- AlicenseBqualityCmaintenanceEnables AI assistants to build and manage Minecraft structures on a live server via RCON, with preview, read-back, and undo capabilities.16MIT