
# MCP Fabric — AI control for Minecraft
**Let Claude and other MCP clients see, understand, and play Minecraft through 50+ tools.**
[](https://github.com/denfry/mcpfabric/actions/workflows/build.yml)
[](https://modrinth.com/mod/mcpfabric)
[](https://github.com/denfry/mcpfabric/stargazers)
[](LICENSE)
[](https://discord.gg/mVZcNUAGZt)
[](https://m8ven.ai/mcp/denfry-mcpfabric-1vn4r1?s=readme)
[Download on Modrinth](https://modrinth.com/mod/mcpfabric) ·
[Installation](#quick-start) ·
[Tools](#tools-50) ·
[Security](SECURITY.md) ·
[Telemetry](docs/TELEMETRY.md) ·
[Contributing](CONTRIBUTING.md)
MCP Fabric is a local-first Minecraft mod and Model Context Protocol server that gives AI agents
structured observation and controlled access to Minecraft. It works on both the client and
dedicated servers across Minecraft 1.21.1–1.21.11 and 26.1–26.3, on Fabric and NeoForge.
- **Play through natural language:** move, look, navigate, mine, build, fight, and use inventory.
- **See the game:** inspect blocks, entities, players, status, chat, events, and screenshots.
- **Operate servers:** run commands, edit worlds, manage entities, and administer players.
- **Bring your own AI:** works with Claude Desktop, Claude Code, and other MCP-compatible hosts.
- **Stay local by default:** loopback-only HTTP bridge, bearer authentication, and capability gates.
- **No hidden telemetry:** the current Fabric release sends no usage analytics.
## Quick start
1. Install [Fabric Loader](https://fabricmc.net/use/installer/) and
[Fabric API](https://modrinth.com/mod/fabric-api), or [NeoForge](https://neoforged.net/).
2. Download the jar matching your Minecraft version and loader from
[Modrinth](https://modrinth.com/mod/mcpfabric/versions) and place it in `mods/`.
3. Launch Minecraft once, then copy `token` from `config/mcpfabric.config.json`.
4. Build the MCP server with `cd mcp-server && npm ci && npm run build`.
5. Add it to your MCP client using the [ready-to-copy examples](#3-connect-to-claude).
> [!CAUTION]
> MCP Fabric can grant an AI operator-level control. Keep the bridge on `127.0.0.1`, keep
> authentication enabled, and disable capability groups you do not need.
## How it works
`mcpfabric` has two parts: a Fabric / NeoForge mod that embeds a local HTTP bridge in Minecraft, and a small
TypeScript MCP server that exposes the bridge as discoverable tools.
```
Claude / any MCP client
│ MCP (stdio or streamable HTTP)
mcp-server (Node / TypeScript)
│ HTTP POST /rpc (JSON-RPC) + GET /events (SSE), bearer token, 127.0.0.1 only
mod "mcpfabric" on Fabric or NeoForge (HTTP server embedded in Minecraft)
│ all game access goes through the main-thread executor (server.execute / Minecraft.execute)
┌── common (env *) ─────────────┐ ┌── client (env client) ─────────────────┐
│ info world entities │ │ player control interact │
│ players command chat events │ │ inventory vision navigation chat │
└───────────────────────────────┘ └─────────────────────────────────────────┘
```
Reads use Minecraft's native API (structured data); writes (`setblock` / `summon` / `give` / `tp` /
effects / weather / time) go through the command dispatcher with output capture. Player control uses
`KeyMapping` (integrating with the vanilla input pipeline), screenshots use the vanilla
`Screenshot` / `NativeImage`, and navigation is a custom A\*.
---
## Supported Minecraft versions
A single source tree targets many Minecraft versions using
[Stonecutter](https://stonecutter.kikugie.dev/). Each version below ships its own jar:
| Line | Versions (one jar each) | Java |
|----------|-----------------------------------------------------------------|------|
| 1.21.x | 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11 | 21 |
| 26.x | 26.1.2 (installs on 26.1–26.1.2), 26.2, 26.3 | 25 |
14 Fabric jars are produced, each named `mcpfabric-