Logo Minecraft Dev MCP Server

Minecraft Dev MCP Server

Tổ chức
MCDxAI

MCP server for Minecraft Development

Nhà phát hànhMCDxAI
Kho mãminecraft-dev-mcp
Ngôn ngữTypeScript
Bản fork
10
Sao
47
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Minecraft Dev MCP Server cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    47 sao và 10 bản fork từ kho mã được liên kết.

Minecraft Dev MCP

A Model Context Protocol server that gives AI assistants native access to Minecraft mod development tools — decompile, remap, search, and analyze Minecraft source code directly from your AI workflow.

License Node.js MCP SDK Java WSL


Quick Start

Prerequisites

RequirementDetails
Node.js 18+nodejs.org
Java 17+Required for decompilation and remapping • Verify with java -version • Adoptium or Oracle JDK

Installation

MethodCommand
NPM (Recommended)npm install -g @mcdxai/minecraft-dev-mcp
NPX (No Install)Use npx -y @mcdxai/minecraft-dev-mcp directly in config
From SourceSee the Development section

Claude Desktop

Add to your Claude Desktop configuration file:

PlatformConfig Path
Windows%APPDATA%\Claude\claude_desktop_config.json
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json

NPM installation:

json
{
  "mcpServers": {
    "minecraft-dev": {
      "command": "minecraft-dev-mcp"
    }
  }
}

NPX (no installation required):

json
{
  "mcpServers": {
    "minecraft-dev": {
      "command": "npx",
      "args": ["-y", "@mcdxai/minecraft-dev-mcp"]
    }
  }
}

Claude Code

Add to .claude/settings.local.json in your project, or to your global Claude Code settings:

json
{
  "mcpServers": {
    "minecraft-dev": {
      "command": "minecraft-dev-mcp"
    }
  }
}

HTTP Transport

For clients or editors that connect over HTTP instead of stdio, start the server in HTTP mode. It uses the MCP Streamable HTTP transport with per-session isolation.

FlagDescription
--httpStart with the Streamable HTTP transport instead of stdio
--port <number>Port to listen on (default: 3000) — also implies --http
--host <address>Host to bind to (default: 127.0.0.1)
bash
minecraft-dev-mcp --http --port 3000

The MCP endpoint is http://<host>:<port>/mcp (POST to call, GET for the SSE stream, DELETE to end a session). Each client gets its own session, so multiple clients can connect concurrently.

Security: the default host 127.0.0.1 enables the SDK's DNS-rebinding protection automatically. Binding to a non-loopback host (e.g. --host 0.0.0.0) disables that protection — only do so on a trusted network, ideally behind a reverse proxy or auth.


CLI

A standalone CLI (minecraft-dev-cli) invokes the same tools directly — no MCP client required — for scripts, skills, and automation. Arguments are flags-only (--key value or --key=value) to avoid the JSON-quoting issues positional JSON arguments cause in PowerShell and other shells.

bash
# List every tool with its parameters
minecraft-dev-cli list-tools

# Invoke a tool with flags
minecraft-dev-cli get_minecraft_source --version 1.21.10 --className net.minecraft.world.entity.Entity --mapping yarn

# Boolean / numeric / JSON values are coerced automatically
minecraft-dev-cli analyze_mod_jar --jarPath C:\mods\example.jar --includeAllClasses true

Output is always JSON: { "success": true, "tool": "...", "result": ... } on success, or { "success": false, "tool": "...", "error": "..." } with exit code 1 on failure. Run minecraft-dev-cli help for full usage.


Features

FeatureDescription
On-demand decompilationDownload, remap, and decompile any Minecraft version (1.14+) on first use — cached for instant access afterward
Multiple mapping namespacesYarn, Mojmap (official), Intermediary, and obfuscated — translate any symbol between them with find_mapping
Decompiled source accessRetrieve Java source for any Minecraft class with optional line-range filtering
Mod JAR analysisAnalyze Fabric, Quilt, Forge, and NeoForge mods — metadata, mixins, dependencies, entry points — and decompile them
Mixin, Access Widener & Access Transformer validationValidate Mixin annotations, Fabric .accesswidener files, and Forge/NeoForge access transformer .cfg files with error reporting and fix suggestions. Access widener/transformer checks run against the game's real bytecode, catching inherited members, record constructors, inner-class reachability, and conflicts across multiple AT files
Version diffClass-level and AST-level diff between any two Minecraft versions — method signatures, field changes, breaking changes
Forge/NeoForge patched sourceBuild and browse the Minecraft source as modified by Forge/NeoForge (loader sources included), diff it against vanilla — fetched automatically via NeoFormRuntime
Full-text searchSQLite FTS5 indexes for fast BM25-ranked search across Minecraft and mod source

26 tools across 5 categories — see docs/tools.md for the full reference.


Common Workflows

WorkflowSteps
First-time source accessCall get_minecraft_source — server downloads, remaps, and decompiles (~5 min first run). Subsequent requests for the same version return in ~50 ms from cache.
View Forge/NeoForge-modified Minecraft codelist_forge_versions (optional) → get_forge_source — the patched tree (loader sources included, mojmap-only) builds automatically on first use via NeoFormRuntime (Java 21; first build takes minutes). Then search_forge_code / compare_vanilla_vs_forge, or any vanilla tool with the version key 1.21.1-neoforge-21.1.72.
Analyze a third-party modanalyze_mod_jar → remap_mod_jar → decompile_mod_jar → search_mod_code or index_mod + search_mod_indexed
Validate a Fabric mixinanalyze_mixin with your Java source or file path — validates targets, injection points, and method selectors against the decompiled MC version.
Find breaking changes between versionscompare_versions for a high-level overview, then compare_versions_detailed scoped to specific packages for full AST-level diffs.
Fast broad searchindex_minecraft_version once, then search_indexed with FTS5 queries: entity AND damage, "onBlockBreak", tick*, BlockEntity NOT render.
Translate obfuscated namesfind_mapping with sourceMapping: "official" to look up the Yarn or Mojmap equivalent for any class, method, or field.

Version Support

Version RangeYarnMojmapNotes
1.14 – 1.21.11Full supportFull supportObfuscated — two-step remapping required (official → intermediary → named)
26.1+Not availableFull supportDeobfuscated by Mojang — no remapping needed, classes already human-readable

Yarn mappings are discontinued after 1.21.11, which is the last obfuscated Minecraft version. All 26.1+ releases ship with readable class and method names and only require Mojmap.

Tested versions: 1.19.4 · 1.20.1 · 1.21.10 · 1.21.11 · 26.1-snapshot-8 · 26.1-snapshot-9


Configuration

Environment VariableDescription
CACHE_DIROverride the default cache directory location
LOG_LEVELLogging verbosity: DEBUG, INFO, WARN, ERROR
json
{
  "mcpServers": {
    "minecraft-dev": {
      "command": "minecraft-dev-mcp",
      "env": {
        "CACHE_DIR": "/custom/cache/path",
        "LOG_LEVEL": "DEBUG"
      }
    }
  }
}

Cache Location

Downloaded JARs, mappings, decompiled source, and search databases live in a platform-specific cache directory shared across all workspaces (~400–500 MB per Minecraft version).

PlatformCache Path
Windows%APPDATA%\minecraft-dev-mcp
macOS~/Library/Application Support/minecraft-dev-mcp
Linux / WSL~/.config/minecraft-dev-mcp

Delete the directory to clear the cache — the server re-downloads anything missing on next use. To relocate the cache anywhere on disk, set the CACHE_DIR environment variable (see Configuration).

Cache Contents

PathContents
jars/Client and server JARs
mappings/Yarn, Mojmap, and Intermediary mapping files
remapped/Remapped JARs
decompiled/<version>/<mapping>/Decompiled Minecraft source
decompiled-mods/<modId>/<modVersion>/<mapping>/Decompiled third-party mod source
registry/<version>/Extracted registry data (blocks, items, entities)
resources/Java tool JARs (VineFlower, tiny-remapper)
cache.dbSQLite metadata database
search_index.dbSQLite FTS5 full-text search index
minecraft-dev-mcp.logServer log file

Development

TaskCommand
Install dependenciesnpm install
Buildnpm run build
Dev mode (hot reload)npm run dev
Testsnpm test

Build from source:

bash
git clone https://github.com/MCDxAI/minecraft-dev-mcp.git
cd minecraft-dev-mcp
npm install
npm run build

Troubleshooting

IssueSolution
Java not found — Java 17+ is required but not foundInstall Java 17+ from Adoptium • Verify with java -version • Ensure java is on your PATH
Decompilation failsCheck available disk space (~500 MB per version) • Review %APPDATA%\minecraft-dev-mcp\minecraft-dev-mcp.log • Force re-decompile by passing "force": true
Yarn not available — Yarn mappings not available for version XYarn is only supported for 1.14–1.21.11 • Use mojmap for 26.1+ versions
Class not foundUse the fully qualified class name (e.g., net.minecraft.world.entity.Entity) • Verify the version is decompiled
Registry returns no dataRegistry names use singular form: block, item, entity — not blocks, items, entities
WSL path errorBoth /mnt/c/path/to/file and C:\path\to\file are accepted for all JAR path parameters

Credits

ProjectDetails
VineFlowerModern Java decompiler by the Vineflower Team
tiny-remapperJAR remapping tool by FabricMC
Yarn MappingsCommunity-maintained mappings by FabricMC
MCP SDKProtocol implementation by Anthropic

Cài đặt

TypingMind
{
  "mcpServers": {
    "minecraft-dev-mcp": {
      "command": "minecraft-dev-mcp",
      "args": []
    }
  }
}

Dùng MCP Minecraft Dev MCP Server với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Minecraft Dev MCP Server, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Minecraft Dev MCP Server làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Minecraft Dev MCP Server.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "minecraft-dev-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@minecraft-dev/mcp-server"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Minecraft Dev MCP Server, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Minecraft Dev MCP Server.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Minecraft Dev MCP Server giúp tôi làm việc này không?
Minecraft Dev MCP Server
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Minecraft Dev MCP Server.

Câu hỏi thường gặp

Máy chủ MCP Minecraft Dev MCP Server dùng để làm gì?

Minecraft Dev MCP Server là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Minecraft Dev MCP Server với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Minecraft Dev MCP Server với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Minecraft Dev MCP Server với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Minecraft Dev MCP Server, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Minecraft Dev MCP Server với TypingMind?

Minecraft Dev MCP Server hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Minecraft Dev MCP Server cung cấp những công cụ nào trong TypingMind?

Minecraft Dev MCP Server cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Minecraft Dev MCP Server không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Minecraft Dev MCP Server yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇