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 集成