AI Skill Hub 推荐使用:Minecraft 开发工具 是一款优质的MCP工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
MCP server for Minecraft Development,帮助开发者提高开发效率
Minecraft 开发工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
MCP server for Minecraft Development,帮助开发者提高开发效率
Minecraft 开发工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/use-ai-for-mc/mcdev-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"minecraft-----": {
"command": "npx",
"args": ["-y", "mcdev-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 Minecraft 开发工具 执行以下任务... Claude: [自动调用 Minecraft 开发工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"minecraft_____": {
"command": "npx",
"args": ["-y", "mcdev-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
An MCP (Model Context Protocol) server that empowers AI coding agents to work effectively with Minecraft mod development. Provides both static analysis of decompiled source code and runtime interaction with a running Minecraft instance.
mc_execute)mc_snapshot)mc_screenshot, mc_record_video, mc_screen_inspect)mc_nearby_entities, mc_entity_details, mc_nearby_blocks, mc_block_details, mc_looked_at_entity)mc_set_entity_glow, mc_set_block_glow, mc_clear_block_glow)mc_get_item_texture, mc_get_item_texture_by_id, mc_get_entity_item_texture)mc_chat_history)mc_run_command, opt-in dev tool)mc_execute runs and error patterns (mc_script_logs, opt-in via Claude Desktop user setting)| Tool | Requires init | Requires callgraph |
|---|---|---|
mc_version | - | - |
mc_search | ✓ | - |
mc_get_class | ✓ | - |
mc_get_method | ✓ | - |
mc_list_classes | ✓ | - |
mc_list_packages | ✓ | - |
mc_find_hierarchy | ✓ | - |
mc_find_refs | ✓ | ✓ |
| Dependency | Version | Purpose |
|---|---|---|
| Node.js | 18+ | Runtime |
| Java | 8+ | Decompilation (Vineflower) & callgraph |
| ~2GB | disk | Decompiled sources + cache |
Note: Java 17+ is recommended for the callgraph command due to Gradle compatibility.
npx mcdev-mcp init -v 1.21.11 ```
This command: 1. Downloads the Minecraft client JAR 2. Decompiles using Vineflower (pure Java, 8 threads) 3. Builds the symbol index (classes, methods, fields, inheritance) 4. Generates call graph for mc_find_refs
Data is stored in your OS cache directory (see Storage location below), so it persists across npx invocations. Expect roughly ~2 GB per Minecraft version — mostly decompiled .java sources and a SQLite callgraph database. All of it is regeneratable, so your OS is free to evict it under storage pressure and init will rebuild what it needs.
The static analysis tools (mc_search, mc_get_class, mc_find_refs, …) work as soon as init finishes. The runtime tools (mc_execute, mc_snapshot, screenshots, world introspection, item textures, glow markers, etc.) additionally require the DebugBridge mod installed in the Minecraft instance you want to drive. Without DebugBridge, those tools will just report a connection error — the static half keeps working unaffected.
npx mcdev-mcp status
Note:mc_version(withaction: "set") must be called before using any other static MCP tools. If the version isn't initialized, the AI will be instructed to ask you to runinit.
```bash git clone https://github.com/use-ai-for-mc/mcdev-mcp.git cd mcdev-mcp npm install npm run build
node dist/cli.js init -v 1.21.11 node dist/cli.js serve # stdio MCP server; MCP clients launch this ```
Upgrading from an older version? If you have a previous installation using DecompilerMC, run npx mcdev-mcp clean --all first to remove old cached data.
MCDEV_AST_PARSER=1 npx mcdev-mcp rebuild -v 1.21.11 --with-callgraph
The MCP server stamps `manifest.indexerVersion` so it can tell which parser produced the existing index. When you flip the flag but haven't rebuilt yet, the server prints a one-time hint per version on the next tool call:
[source-store/manifest:1.21.11] Index was built with the 'regex' parser, but the server is now running the 'ast' parser. This is fine — existing indices still work — but the new parser would produce a better index. Run mcdev-mcp rebuild -v 1.21.11 (or init -v 1.21.11 for a full re-fetch) to refresh. Set MCDEV_SUPPRESS_INDEXER_HINT=1 to silence this message. ```
Download the bundle from the Releases page and double-click the .mcpb file. Claude Desktop will validate the manifest and offer to install it. After install, run mcdev-mcp init -v <version> in a terminal once to populate the cache (the extension cannot trigger init itself — it's deliberately terminal-only, see Quick Start).
Security note —initis intentionally terminal-only. The MCP server only exposes read/query tools. Downloading and decompiling Minecraft sources must be triggered by you in the terminal; an AI agent connected to the server has no tool surface to triggerinit,rebuild,clean, orcallgraph.
Capture the game window as a JPEG file and return its path.
{
"downscale": 2,
"quality": 0.75
}
```bash
Invoke via npx mcdev-mcp <command> (or node dist/cli.js <command> from a source checkout).
| Command | Description |
|---|---|
serve | Start the MCP server over stdio (launched by MCP clients — not run by humans) |
init -v <version> | Download, decompile, index Minecraft sources, and generate callgraph |
init -v <version> --skip-callgraph | Same as above but skip callgraph generation |
callgraph -v <version> | Generate call graph for mc_find_refs |
status | Show all initialized versions and what stage each one is at |
rebuild -v <version> | Rebuild the symbol index from already-cached sources |
rebuild -v <version> --with-callgraph | Also regenerate the callgraph in the same run |
clean -v <version> --all | Remove cached data for one version |
clean --all | Remove all cached data across versions |
List all available packages. Optionally filter by namespace.
{
"namespace": "minecraft"
}
| Namespace | Description |
|---|---|
minecraft | Minecraft client classes |
fabric | Fabric API classes (if indexed) |
git commit -am "Sync manifest.json version" git tag -f "v$(node -p 'require(\"./package.json\").version')"
This project includes or uses third-party software under the following licenses:
src/decompiler/Additional runtime dependencies (downloaded/used): - Mojang — Official ProGuard mappings and Minecraft client JAR
See LICENSE for full license text and third-party attributions.
mcdev-mcp 是一个专为 Minecraft Mod 开发设计的 MCP (Model Context Protocol) 服务端。它通过为 AI Coding Agent 提供强大的上下文感知能力,让 AI 能够深度理解并参与到 Minecraft 的开发流程中,实现从代码分析到游戏内实时交互的智能化开发体验。
本项目提供两类核心功能:静态分析工具,支持通过 `mc_search`、`mc_get_class` 等工具检索 Minecraft 源码、类、方法及继承关系;运行时交互工具,通过集成 DebugBridge,支持在运行中的 Minecraft JVM 内执行 Lua 脚本 (`mc_execute`)、获取游戏状态快照 (`mc_snapshot`) 以及进行屏幕截图与视觉检查,实现真正的“感知型”开发。
使用静态分析工具(如 `mc_search`、`mc_get_class` 等)仅需完成初始化;若需使用运行时交互工具(如 `mc_execute`、截图、世界内省等),则必须在目标 Minecraft 实例中安装 [DebugBridge](https://github.com/use-ai-for-mc/debugbridge) Mod。此外,部分工具在调用前需确保已通过 `mc_version` 完成版本设置。
首先,在终端运行 `npx mcdev-mcp init -v <版本号>` 进行初始化。该命令会自动下载 Minecraft client JAR,使用 Vineflower 进行反编译(支持 8 线程加速),并构建符号索引与 Call Graph。处理过程约需 2-5 分钟,数据将持久化存储在操作系统的缓存目录中。完成初始化后,即可通过 `npx mcdev-mcp status` 验证安装状态。
快速上手指南:请注意,出于安全考虑,`init` 初始化操作被设计为仅限终端执行。MCP Server 本身仅暴露只读/查询类的工具集,AI Agent 无法直接触发 `init`、`rebuild` 或 `clean` 等破坏性操作。在开始使用任何静态 MCP 工具前,请务必确保已通过 `mc_version` 工具正确设置了目标版本。
配置说明:默认情况下,系统会构建完整的 Call Graph 以支持 `mc_find_refs` 等高级查询。如果希望优化性能或减少资源占用,可以通过配置跳过 Call Graph 的构建过程。所有索引数据均存储在 OS 缓存目录中,确保了在多次 `npx` 调用之间的数据持久性。
本项目提供 CLI 命令行接口,可通过 `npx mcdev-mcp <command>` 进行调用。主要命令包括:`serve` 用于通过 stdio 启动 MCP Server(供 MCP 客户端调用);`init -v <version>` 用于下载、反编译并索引指定版本的 Minecraft 源码。开发者也可以通过源码目录下的 `node dist/cli.js` 直接运行命令。
模块化查询工作流:本项目提供了细粒度的包管理查询功能。通过 `mc_list_packages` 工具,开发者可以列出所有可用的包(如 `minecraft` 客户端类或已索引的 `fabric` API 类),并支持通过 `namespace` 参数进行过滤,从而实现精准的代码上下文检索。
该项目是一个开源的MCP工具,使用TypeScript编写,提供了一个Minecraft开发的服务器端工具,帮助开发者提高开发效率,值得关注
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
总体来看,Minecraft 开发工具 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | mcdev-mcp |
| 原始描述 | 开源MCP工具:MCP server for Minecraft Development。⭐6 · TypeScript |
| Topics | mcptypescript |
| GitHub | https://github.com/use-ai-for-mc/mcdev-mcp |
| License | NOASSERTION |
| 语言 | TypeScript |
收录时间:2026-05-25 · 更新时间:2026-05-26 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端