MCP Fabric (Minecraft)

io.github.denfry由 GitHub 帳號 denfry 發布v0.9.0更新於 Nov 7, 2026

通過mcpfabric模組(Fabric和NeoForge)檢視並遊玩Minecraft: Java Edition。

AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。

原文描述

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

發布方自己的服務:Fabric

已驗證STDIO僅桌面

概覽

MCP Fabric (Minecraft) 的本機 MCP 服務;無需登入;STDIO。

暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 MCP Fabric (Minecraft),將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

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

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

In an MCP client config:

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

Build from source

bash
npm installnpm run build       # -> dist/index.jsnpm 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:

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

Environment

VariableDefaultMeaning
MCPFABRIC_URLhttp://127.0.0.1:25599In-game bridge base URL.
MCPFABRIC_TOKEN—Bearer token from config/mcpfabric.config.json.
MCPFABRIC_TIMEOUT_MS15000Per-call timeout.
MCPFABRIC_TRANSPORTstdiostdio (default) or http.
MCPFABRIC_HTTP_PORT25600Port for the streamable-HTTP transport (/mcp).
MCPFABRIC_AGENTon0/false/off disables the agent runtime tools.
MCPFABRIC_DATA_DIR~/.mcpfabricDirectory of the agent database (agent.db).
MCPFABRIC_WORLDreported by the gameForce the world id that keys agent memory.
MCPFABRIC_SCRIPTSon0/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.*).

來源:mcp-server/README.md,提交 9f22c73

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

1
  1. v0.9.0最新Nov 7, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Fabric 整合