New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@mcdxai/minecraft-dev-mcp

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mcdxai/minecraft-dev-mcp

MCP server for Minecraft mod development - decompile, remap, and explore Minecraft source code

Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
66
15.79%
Maintainers
1
Weekly downloads
 
Created
Source

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 TypeScript MCP SDK Java Vitest Biome WSL

20 tools spanning decompilation, mapping translation, mod analysis, mixin validation, version comparison, and full-text search — with full WSL and Windows path support.

Capabilities

FeatureDescription
Automatic DecompilationDownload, remap, and decompile any Minecraft version (1.14+) on-demand with persistent smart caching
Multiple Mapping SystemsFull support for Yarn, Mojmap (official), Intermediary, and obfuscated (official) namespaces
Source Code AccessRetrieve decompiled Java source for any Minecraft class with optional line-range filtering
Registry DataExtract block, item, entity, and other game registry data from any supported version
Mod JAR AnalysisAnalyze Fabric, Quilt, Forge, and NeoForge mods — metadata, mixins, dependencies, entry points, class statistics
Mod DecompilationDecompile third-party mod JARs to readable Java source with full regex and FTS5 search support
Mixin ValidationParse and validate Mixin annotations against Minecraft source — validates targets, injection points, and suggests fixes
Access Widener ValidationValidate .accesswidener files against decompiled source with error reporting and similarity suggestions
Version ComparisonClass-level and AST-level diff analysis between Minecraft versions — method signatures, field changes, breaking changes
Full-Text SearchSQLite FTS5 indexes for fast searching across Minecraft and mod source with BM25 ranking
Mapping TranslationTranslate any symbol between official, intermediary, Yarn, and Mojmap namespaces
Unobfuscated Version SupportNative support for Minecraft 26.1+ which ships with deobfuscated class names
WSL CompatibilityAccepts both WSL (/mnt/c/...) and Windows (C:\...) paths throughout all tools

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

Quick Start

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:

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

NPX (no installation required):

{
  "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:

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

Tools Reference

20 tools organized by functionality.

Source Code (6 tools)

Decompile, browse, and search Minecraft source code.

ToolDescriptionParameters
list_minecraft_versionsList all versions available from Mojang and which are already cached locally.None
decompile_minecraft_versionDecompile an entire Minecraft version. Downloads the client JAR, remaps it, and decompiles all classes with VineFlower. Subsequent calls use cached results.version, mapping • Optional: force (re-decompile)
get_minecraft_sourceGet decompiled Java source for a specific Minecraft class. Downloads, remaps, and decompiles automatically on first use; subsequent requests are instant from cache.version, className, mapping (yarn|mojmap) • Optional: startLine, endLine, maxLines
search_minecraft_codeRegex search across decompiled Minecraft source by class name, method name, field name, or file content.version, query, searchType (class|method|field|content|all), mapping • Optional: limit
index_minecraft_versionBuild a SQLite FTS5 full-text search index for decompiled Minecraft source. Required before using search_indexed.version, mapping
search_indexedFast full-text search on a pre-built index using FTS5 syntax. Significantly faster than search_minecraft_code for broad queries. Supports AND, OR, NOT, phrase matching, and prefix wildcards.query, version, mapping • Optional: types (class|method|field), limit

Mappings & Registry (3 tools)

Translate names between namespaces and explore game data.

ToolDescriptionParameters
find_mappingTranslate a class, method, or field name between any two mapping namespaces (official, intermediary, yarn, mojmap).symbol, version, sourceMapping, targetMapping
remap_mod_jarRemap a Fabric mod JAR from intermediary to human-readable Yarn or Mojmap names. Accepts WSL and Windows paths. Minecraft version is auto-detected from mod metadata if not provided.inputJar, outputJar, toMapping • Optional: mcVersion
get_registry_dataExtract registry data (blocks, items, entities, etc.) for a version by running Minecraft's built-in data generator.version • Optional: registry (e.g., block, item, entity)

Analysis & Validation (6 tools)

Compare versions, validate mod code, and browse documentation.

ToolDescriptionParameters
compare_versionsCompare two Minecraft versions to identify added and removed classes and registry entries.fromVersion, toVersion, mapping • Optional: category (classes|registry|all)
compare_versions_detailedAST-level version comparison showing exact method signature changes, field type changes, and breaking API modifications. Can be scoped to specific packages.fromVersion, toVersion, mapping • Optional: packages, maxClasses
analyze_mixinParse and validate Mixin code against Minecraft source. Validates target classes, injection methods, and annotation syntax. Provides similarity suggestions on failures.source (Java code or file path), mcVersion • Optional: mapping
validate_access_widenerValidate a Fabric Access Widener file against Minecraft source. Checks all class, method, and field targets exist and flags invalid entries.content (file content or path), mcVersion • Optional: mapping
get_documentationGet documentation links and usage hints for a Minecraft or Fabric class. Links to Fabric Wiki and Minecraft Wiki.className
search_documentationSearch across all known Minecraft and Fabric documentation topics.query

Mod Analysis (5 tools)

Analyze and decompile third-party mod JARs.

ToolDescriptionParameters
analyze_mod_jarAnalyze a third-party mod JAR without decompiling. Extracts mod ID, version, dependencies, entry points, mixin configs, and class statistics. Supports Fabric, Quilt, Forge, and NeoForge.jarPath • Optional: includeAllClasses, includeRawMetadata
decompile_mod_jarDecompile a mod JAR to readable Java source. Accepts original (intermediary) or remapped JARs. Mod ID and version are auto-detected from metadata.jarPath, mapping • Optional: modId, modVersion
search_mod_codeRegex search in decompiled mod source by class, method, field, or content.modId, modVersion, query, searchType, mapping • Optional: limit
index_modBuild a SQLite FTS5 full-text search index for decompiled mod source. Required before using search_mod_indexed.modId, modVersion, mapping • Optional: force
search_mod_indexedFast FTS5 search on a pre-built mod index. Supports AND, OR, NOT, phrase matching, and prefix wildcards.query, modId, modVersion, mapping • Optional: types, limit

Common Workflows

WorkflowSteps
First-time source accessCall get_minecraft_source → server downloads client JAR (~50 MB), mappings (~5 MB), remaps (~2 min), decompiles with VineFlower (~3 min), returns source. Total: ~5 min first run. Subsequent requests for any class from the same version return in ~50ms from cache.
Analyze a third-party mod1. analyze_mod_jar (no decompilation needed, returns metadata instantly) → 2. remap_mod_jar to translate from intermediary → 3. decompile_mod_jar → 4. search_mod_code or index_mod + search_mod_indexed
Validate a Fabric mixinanalyze_mixin with your Java source or JAR path — validates target classes, method selectors, and injection types against the decompiled MC version. Returns errors and name suggestions.
Find breaking changes between versionscompare_versions for a high-level class and registry overview, then compare_versions_detailed scoped to specific packages for full AST-level method and field diffs.
Fast broad code searchindex_minecraft_version once per version/mapping combination, then search_indexed with FTS5 queries: entity AND damage, "onBlockBreak", tick*, BlockEntity NOT render.
Translate obfuscated namesfind_mapping with sourceMapping: "official" and your obfuscated symbol to look up the equivalent Yarn or Mojmap name. Supports class, method, and field lookups.

Architecture

Technology Stack

ComponentTechnology
MCP SDK@modelcontextprotocol/sdk 1.0.4
DecompilerVineFlower 1.11.2 — modern Java 17+ decompiler with generics support
Remappertiny-remapper 0.10.3 — FabricMC's multi-threaded bytecode remapper
Yarn MappingsFabricMC Yarn — community-maintained mappings
MojmapOfficial Mojang mappings (available 1.14.4+)
Databasebetter-sqlite3 11.7.0 — metadata caching and FTS5 full-text indexing
JAR Parsingadm-zip 0.5.16 — mod JAR analysis and bytecode scanning
Schema ValidationZod 3.24.1 — runtime validation for all tool inputs
LanguageTypeScript 5.7.2, ESM-only ("type": "module")
LinterBiome 1.9.4
TestsVitest 2.1.8 — 27 test files covering the full pipeline

Remapping Strategy

Yarn mappings require a two-step remapping process due to how FabricMC's mapping system is structured:

StepFromToMapping File
1Official (obfuscated)Intermediaryintermediary.tiny
2IntermediaryNamed (Yarn or Mojmap)yarn.tiny or mojmap.tiny

Intermediary provides stable, version-independent identifiers that bridge between obfuscated official names and human-readable Yarn/Mojmap names.

Cache Structure

PlatformCache Directory
Windows%APPDATA%\minecraft-dev-mcp\
macOS~/Library/Application Support/minecraft-dev-mcp/
Linux~/.config/minecraft-dev-mcp/
PathContents
jars/Downloaded Minecraft client and server JARs
mappings/Yarn, Mojmap, and Intermediary mapping files in Tiny v2 format
remapped/Remapped JARs (obfuscated → named)
decompiled/{version}/{mapping}/Decompiled Minecraft Java source files
decompiled-mods/{modId}/{modVersion}/{mapping}/Decompiled mod source files
registry/{version}/Registry data extracted by Minecraft's data generator
resources/VineFlower and tiny-remapper JARs (downloaded once)
search_index.dbSQLite FTS5 indexes for Minecraft and mod source
minecraft-dev-mcp.dbMetadata, job tracking, and cache state
minecraft-dev-mcp.logServer log file
ComponentApproximate Size
Per Minecraft version~400–500 MB (JAR + mappings + remapped JAR + decompiled source)
Per search index~50–100 MB (SQLite FTS5, created on-demand)
Decompiler tools~1 MB (VineFlower + tiny-remapper, one-time download)

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
{
  "mcpServers": {
    "minecraft-dev": {
      "command": "minecraft-dev-mcp",
      "env": {
        "CACHE_DIR": "/custom/cache/path",
        "LOG_LEVEL": "DEBUG"
      }
    }
  }
}

Development

TaskCommand
Install dependenciesnpm install
Buildnpm run build
Dev mode (hot reload)npm run dev
Type checknpm run typecheck
Lintnpm run lint
Lint with autofixnpm run lint:fix
Integration testsnpm test
Full pipeline — 1.21.10npm run test:manual:1.21.10
Full pipeline — 1.20.1npm run test:manual:1.20.1
MCP stdio testsnpm run test:manual:mcp
MCP Inspectornpm run inspect

Build from source:

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

Built for the Minecraft modding community

Keywords

minecraft

FAQs

Package last updated on 28 Mar 2026

Related posts