ClaudeCodeMod

All shelves / MCP servers

MCP Fabric (Minecraft)

io.github.denfry/mcpfabric · 21 stars · TypeScript · MIT

MCP server See and play Minecraft: Java Edition through the mcpfabric mod (Fabric and NeoForge).

Install

The repo has no one-line install. Follow its README.

Published as

  • npmmcpfabric-mcp-serverstdio

From the server's entry in the official MCP Registry.

Open the repo

Configuration

NameSet asWhat it is
MCPFABRIC_TOKENOptional · SecretEnv varBridge token; not needed while the game writes ~/.mcpfabric/bridge.json.
MCPFABRIC_TOOLSETSOptionalEnv varServe only some tools: profiles play, admin, build or tool groups.

Files

mcp-server/README.md

mcpfabric MCP server

Bridges an MCP client (Claude Desktop / Claude Code / any MCP host) to the in-game HTTP bridge exposed by the mcpfabric mod (Fabric / NeoForge), publishing ~50 tools to observe and control Minecraft, plus an agent runtime with persistent memory, goals, a world map and background jobs (see docs/AGENT.md). Requires Node.js ≥ 22.16.

Install from npm

npx -y mcpfabric-mcp-server          # or: npm install -g mcpfabric-mcp-server && mcpfabric

In an MCP client config:

{
  "mcpServers": {
    "mcpfabric": {
      "command": "npx",
      "args": ["-y", "mcpfabric-mcp-server"],
      "env": { "MCPFABRIC_TOKEN": "paste-the-token-from-the-mod-config" }
    }
  }
}

Build from source

npm install
npm run build       # -> dist/index.js
npm run typecheck   # tsc --noEmit (sources and tests)
npm test            # unit tests + agent jobs against a simulated world

Run

The MCP client normally launches this process. Manually:

MCPFABRIC_URL=http://127.0.0.1:25599 MCPFABRIC_TOKEN=<token> node dist/index.js

Environment

Variable Default Meaning
MCPFABRIC_URL http://127.0.0.1:25599 In-game bridge base URL.
MCPFABRIC_TOKEN — Bearer token from config/mcpfabric.config.json.
MCPFABRIC_TIMEOUT_MS 15000 Per-call timeout.
MCPFABRIC_TRANSPORT stdio stdio (default) or http.
MCPFABRIC_HTTP_PORT 25600 Port for the streamable-HTTP transport (/mcp).
MCPFABRIC_AGENT on 0/false/off disables the agent runtime tools.
MCPFABRIC_DATA_DIR ~/.mcpfabric Directory of the agent database (agent.db).
MCPFABRIC_WORLD reported by the game Force the world id that keys agent memory.
MCPFABRIC_SCRIPTS on 0/false/off removes the script tools (run_script, skills).

Architecture

src/tools.ts is the single source of truth for the tool catalogue: each entry maps an MCP tool to a bridge RPC method plus a zod input schema. src/index.ts registers every entry generically (forwarding args to POST /rpc) and renders results as JSON, except screenshot which returns an image content block. src/bridge.ts is the HTTP client; src/config.ts reads env config.

src/agent/ is the agent runtime: its tools (agent/tools.ts) run in this process, store state in SQLite (node:sqlite) and drive the game through the same bridge. test/fake-world.ts simulates the bridge contract so jobs are tested without a game.

src/script/ is code mode: run_script runs a model-written JavaScript program in QuickJS (WebAssembly, quickjs-emscripten), which reaches the game only through the catalogue methods of src/tools.ts; save_skill / run_skill keep programs per world in the agent database.

Keep tool names/methods in sync with the Java handler registry in the mod (dev.mcpfabric.handlers.* and dev.mcpfabric.client.handlers.*).

Facts

Kind
MCP server
Repo
denfry/mcpfabric
Group
Uncategorized
Stars
21
License
MIT
Language
TypeScript
Last push
2026-11-08
Forks
3
MCP Registry
io.github.denfry/mcpfabric
Homepage
modrinth.com/mod/mcpfabric
Topics
ai-agents, fabric, llm, mcp, minecraft, minecraft-mod, model-context-protocol, neoforge

Next on this shelf

  1. 4491KompasMCP - KOMPAS-3D v24io.github.SergeySklyarov/kompas3d-mcpDrive a licensed KOMPAS-3D v24 x64 via COM: parts, assemblies, drawings, BOM, STEP/DXF export.21
  2. 4492AI Guardio.github.ai-guard-dev/ai-guardGuardrails for AI-written JS/TS: scans, weakened-test checks, package checks, verify before done.21
  3. 4493ENCODE Toolkitammawla/encode-toolkit20
  4. 4494yfinance MCP Server9nate-drake/mcp-yfinanceMCP Server for fething yfinance financial data into Claude Desktop20
  5. 4495Code Context Provider MCPAB498/code-context-provider-mcpMCP server that provides code context and analysis for AI assistants. Extracts directory structure and code symbols using WebAssembly Tree-sitter parsers with Zero Native Dependencies.20
  6. 4496mariadb-mcp-serverabel9851/mcp-server-mariadbAn mcp server that provides read-only access to MariaDB.20