MCP Hub
Back to servers

minecraft-dev-mcp

Model Context Protocol server for Minecraft Development

GitHub
Stars
3
Forks
3
Updated
Jan 1, 2026
Validated
Feb 7, 2026

Minecraft Dev MCP Server

A comprehensive Model Context Protocol (MCP) server that enables AI agents and agentic CLIs (Claude Code, OpenAI Codex, etc.) to work seamlessly with Minecraft mod development. Provides decompilation, mapping translation (Yarn, Mojmap, Intermediary), mod analysis, mixin validation, version comparison, and deobfuscated source code access. Built with full WSL compatibility to support agentic tools running in WSL on Windows (like Codex) and native Windows environments (like Claude Code).

Core Capabilities

FeatureDescription
Automatic DecompilationDownload, remap, and decompile any Minecraft version (1.14+)
Multiple Mapping TypesSupport for Yarn, Mojmap (official), Intermediary, and obfuscated mappings
Smart CachingCentral cache system avoids re-downloading/re-decompiling
Source Code AccessGet decompiled Java source for any Minecraft class with full-text search
Registry DataExtract block, item, entity, and other registry information
Mod AnalysisRemap, validate mixins, analyze access wideners, and extract mod metadata
Version ComparisonCompare Minecraft versions with class-level and AST-level diff analysis
Documentation AccessSearch and access Minecraft/Fabric documentation and usage hints
Production-Grade ToolsUses Vineflower decompiler, tiny-remapper, and SQLite FTS5 indexing

Prerequisites

RequirementDetails
Node.js 18+Download Node.js
Java 17+Required for decompilation tools
Check: java -version
Install: Adoptium or Oracle JDK

Installation

MethodInstructions
NPM (Recommended)
npm install -g @mcdxai/minecraft-dev-mcp
From Source
git clone https://github.com/MCDxAI/minecraft-dev-mcp.git
cd minecraft-dev-mcp
npm install
npm run build

Quick Start

Claude Desktop Setup

Add to your Claude Desktop config 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)

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

Source Installation

{
  "mcpServers": {
    "minecraft-dev": {
      "command": "node",
      "args": ["/path/to/minecraft-dev-mcp/dist/index.js"]
    }
  }
}

Restart Claude Desktop to load the MCP server.


Claude Code Setup

Add to .claude/settings.local.json in your project:

Global Installation

npm install -g @mcdxai/minecraft-dev-mcp
{
  "mcpServers": {
    "minecraft-dev": {
      "command": "minecraft-dev-mcp"
    }
  }
}

NPX (No Installation)

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

The MCP server will be available immediately in Claude Code.


Start Using

In Claude Desktop, you can now ask questions like:

CategoryExample Query
Source Access"Show me the Entity class from Minecraft 1.21.10 using Yarn mappings"
Decompilation"Decompile Minecraft 1.21.10 with Mojmap"
Registry Data"What blocks are registered in Minecraft 1.21.10?"
Code Search"Search for all methods containing 'onBlockBreak' in 1.21.10"
Version Diff"Compare Minecraft 1.21.10 and 1.21.11 to find breaking changes"
Mod Analysis"Analyze the meteor-client.jar file and show me its dependencies"
Mixin Validation"Validate this mixin code against Minecraft 1.21.10"
Mapping Lookup"Convert the obfuscated class 'abc' to Yarn names for 1.21.10"

Available Tools

16 powerful tools organized into three capability tiers

PhaseToolsDescription
Phase 1: Core Decompilation4 toolsEssential decompilation, source access, version management, and registry data
Phase 2: Advanced Analysis11 toolsMod JAR remapping, mapping lookups, code search, version comparison, mixin/access widener validation, indexing, and documentation
Phase 3: Mod Analysis1 toolComprehensive third-party mod JAR analysis for Fabric, Quilt, Forge, and NeoForge

Phase 1: Core Decompilation Tools

get_minecraft_source

Get decompiled source code for a specific Minecraft class.

ParameterTypeDescription
versionstringMinecraft version (e.g., "1.21.10")
classNamestringFully qualified class name (e.g., "net.minecraft.world.entity.Entity")
mapping"yarn" | "mojmap"Mapping type to use

Example

{
  "version": "1.21.10",
  "className": "net.minecraft.world.entity.Entity",
  "mapping": "yarn"
}

decompile_minecraft_version

Decompile an entire Minecraft version (runs once, then cached).

ParameterTypeDescription
versionstringMinecraft version
mapping"yarn" | "mojmap"Mapping type
forceboolean (optional)Force re-decompilation

Example

{
  "version": "1.21.10",
  "mapping": "yarn"
}

list_minecraft_versions

List available and cached Minecraft versions.

Returns

{
  "cached": ["1.21.10"],
  "available": ["1.21.10", "1.21.9", "..."],
  "total_available": 800
}

get_registry_data

Get Minecraft registry data (blocks, items, entities, etc.).

ParameterTypeDescription
versionstringMinecraft version
registrystring (optional)Specific registry (e.g., "blocks", "items", "entities")

Example

{
  "version": "1.21.10",
  "registry": "blocks"
}

Phase 2: Advanced Analysis Tools

remap_mod_jar

Remap Fabric mod JARs from intermediary to human-readable mappings.

ParameterTypeDescription
inputJarstringPath to input mod JAR (WSL or Windows path)
outputJarstringPath for output remapped JAR (WSL or Windows path)
mcVersionstringMinecraft version the mod is for
toMapping"yarn" | "mojmap"Target mapping type

Example

{
  "inputJar": "/mnt/c/mods/mymod.jar",
  "outputJar": "/mnt/c/mods/mymod-remapped.jar",
  "mcVersion": "1.21.10",
  "toMapping": "yarn"
}

find_mapping

Look up symbol mappings between different mapping systems.

ParameterTypeDescription
symbolstringSymbol to look up (class, method, or field name)
versionstringMinecraft version
sourceMapping"official" | "intermediary" | "yarn" | "mojmap"Source mapping type
targetMapping"official" | "intermediary" | "yarn" | "mojmap"Target mapping type

Example

{
  "symbol": "Entity",
  "version": "1.21.10",
  "sourceMapping": "yarn",
  "targetMapping": "mojmap"
}

search_minecraft_code

Search decompiled Minecraft source code using regex patterns.

ParameterTypeDescription
versionstringMinecraft version
querystringSearch query (regex pattern or literal)
searchType"class" | "method" | "field" | "content" | "all"Type of search to perform
mapping"yarn" | "mojmap"Mapping type
limitnumber (optional)Maximum results (default: 50)

Example

{
  "version": "1.21.10",
  "query": "onBlockBreak",
  "searchType": "method",
  "mapping": "yarn",
  "limit": 20
}

compare_versions

Compare two Minecraft versions to find differences.

ParameterTypeDescription
fromVersionstringSource Minecraft version
toVersionstringTarget Minecraft version
mapping"yarn" | "mojmap"Mapping type to use
category"classes" | "registry" | "all" (optional)What to compare (default: all)

Example

{
  "fromVersion": "1.21.10",
  "toVersion": "1.21.11",
  "mapping": "yarn",
  "category": "all"
}

analyze_mixin

Analyze and validate Mixin code against Minecraft source.

ParameterTypeDescription
sourcestringMixin source code or path to JAR/directory (WSL or Windows)
mcVersionstringMinecraft version to validate against
mapping"yarn" | "mojmap" (optional)Mapping type (default: yarn)

Example

{
  "source": "/path/to/MyMixin.java",
  "mcVersion": "1.21.10",
  "mapping": "yarn"
}

validate_access_widener

Validate Fabric Access Widener files against Minecraft source.

ParameterTypeDescription
contentstringAccess widener content or path to .accesswidener file
mcVersionstringMinecraft version to validate against
mapping"yarn" | "mojmap" (optional)Mapping type (default: yarn)

Example

{
  "content": "/path/to/mymod.accesswidener",
  "mcVersion": "1.21.10"
}

compare_versions_detailed

Compare versions with detailed AST-level analysis.

ParameterTypeDescription
fromVersionstringSource Minecraft version
toVersionstringTarget Minecraft version
mapping"yarn" | "mojmap"Mapping type to use
packagesstring[] (optional)Specific packages to compare
maxClassesnumber (optional)Maximum classes (default: 1000)

Example

{
  "fromVersion": "1.21.10",
  "toVersion": "1.21.11",
  "mapping": "yarn",
  "packages": ["net.minecraft.entity"]
}

index_minecraft_version

Create a full-text search index for fast searching.

ParameterTypeDescription
versionstringMinecraft version to index
mapping"yarn" | "mojmap"Mapping type

Example

{
  "version": "1.21.10",
  "mapping": "yarn"
}

search_indexed

Fast full-text search using pre-built index (requires index_minecraft_version first).

ParameterTypeDescription
querystringSearch query (supports FTS5 syntax: AND, OR, NOT, "phrase", prefix*)
versionstringMinecraft version
mapping"yarn" | "mojmap"Mapping type
types("class" | "method" | "field")[] (optional)Entry types to search
limitnumber (optional)Maximum results (default: 100)

Example

{
  "query": "entity AND damage",
  "version": "1.21.10",
  "mapping": "yarn",
  "types": ["method"],
  "limit": 50
}

get_documentation

Get documentation for Minecraft classes and concepts.

ParameterTypeDescription
classNamestringClass name to get documentation for

Example

{
  "className": "Entity"
}

search_documentation

Search for documentation across all Minecraft/Fabric topics.

ParameterTypeDescription
querystringSearch query

Example

{
  "query": "block entity"
}

Phase 3: Mod Analysis Tools

analyze_mod_jar

Analyze third-party mod JARs to extract comprehensive metadata.

ParameterTypeDescription
jarPathstringLocal path to mod JAR file (WSL or Windows path)
includeAllClassesboolean (optional)Include full class list (default: false)
includeRawMetadataboolean (optional)Include raw metadata files (default: false)

Supports: Fabric, Quilt, Forge, and NeoForge mods

Returns: Mod ID, version, dependencies, entry points, mixin configurations, class statistics, and more

Example

{
  "jarPath": "C:\\mods\\meteor-client.jar",
  "includeAllClasses": false,
  "includeRawMetadata": true
}

Architecture

Cache Structure

All data is cached in a platform-specific directory:

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

Cache Layout

DirectoryContents
jars/Downloaded Minecraft client JARs
mappings/Yarn/Mojmap mapping files
remapped/Remapped JARs (intermediary → named)
decompiled/Decompiled source code
└── 1.21.10/
    ├── yarn/
    └── mojmap/
registry/Registry data (blocks, items, etc.)
search-index/SQLite FTS5 full-text search indexes
└── 1.21.10-yarn.db
resources/Downloaded tools (Vineflower, tiny-remapper)
cache.dbSQLite metadata database
minecraft-dev-mcp.logLog file

Cache Size

ComponentSize
Minecraft Version~400-500 MB per version (JAR + mappings + decompiled source)
Search Index~50-100 MB per index (optional, created on-demand with index_minecraft_version)
Decompiler Tools~1 MB for Vineflower + tiny-remapper (one-time download)

Technology Stack

ComponentTechnology
MCP SDK@modelcontextprotocol/sdk 1.0.4
DecompilerVineflower 1.11.2 (Java 17+ decompiler)
Remappertiny-remapper 0.10.3 (FabricMC's bytecode remapper)
Yarn MappingsFabricMC Yarn (community mappings)
MojmapOfficial Mojang Mappings
Databasebetter-sqlite3 (metadata caching & FTS5 indexing)
JAR Parsingadm-zip (mod JAR analysis & bytecode extraction)
Schema ValidationZod (tool input validation)

Version Support

Supported Minecraft Versions: 1.14+ (any version with available mappings)

Version RangeYarn MappingsMojmapNotes
1.14 - 1.21.11✅ Full Support✅ Full SupportObfuscated versions requiring remapping
26.1+❌ Not Available✅ Official NamesDeobfuscated by Mojang (no remapping needed)

Important Notes

TopicDetails
Last Obfuscated Version1.21.11 is the last obfuscated Minecraft version
Yarn Mapping StatusDiscontinued after 1.21.11 (obfuscation removal makes them unnecessary)
Future VersionsVersions 26.1+ ship with official deobfuscated code
Tested Versions1.19.4, 1.20.1, 1.21.10, 1.21.11 (latest)

Configuration

Environment Variables

VariableDescription
CACHE_DIROverride cache directory location
LOG_LEVELSet logging level (DEBUG, INFO, WARN, ERROR)

Example

{
  "mcpServers": {
    "minecraft-dev": {
      "command": "minecraft-dev-mcp",
      "env": {
        "CACHE_DIR": "/custom/cache/path",
        "LOG_LEVEL": "DEBUG"
      }
    }
  }
}

Workflow Examples

Example 1: First-Time Decompilation

When you request source code for the first time:

StepActionTime
1Download Minecraft 1.21.10 client JAR (~50 MB)~30s
2Download Yarn mappings (~5 MB)~5s
3Remap JAR from obfuscated to Yarn names~2 min
4Decompile all classes with Vineflower~3 min
5Return requested class source codeInstant
Total~5 minutes first time

Example 2: Subsequent Requests (Cached)

When you request another class from the same version:

StepActionTime
1Read from cached decompiled source~50ms
2Return class source codeInstant
Total~50ms (instant)

Troubleshooting

IssueSolution
Java Not Found
Java 17+ is required but not found
1. Install Java 17+ from Adoptium
2. Verify: java -version shows 17 or higher
3. Ensure Java is in your PATH
Decompilation Fails
Decompilation failed: ...
1. Check disk space (need ~500 MB per version)
2. Check logs: %APPDATA%\minecraft-dev-mcp\minecraft-dev-mcp.log
3. Try force re-decompile: { "force": true }
4. Clear cache and retry
Mappings Not Available
Yarn mappings not available for version X.X.X
Yarn mappings support 1.14-1.21.11 (discontinued after 1.21.11)
Mojmap supports 1.14.4+
For versions 26.1+, use Mojmap (Minecraft is now deobfuscated by default)

Development

TaskCommand
Build from Source
git clone https://github.com/MCDxAI/minecraft-dev-mcp.git
cd minecraft-dev-mcp
npm install
npm run build
Run Testsnpm test
Type Checknpm run typecheck
Lintnpm run lint
npm run lint:fix
Development Modenpm run dev

License

MIT License - see LICENSE file for details

Credits

ProjectLink
VineflowerModern Java decompiler by Vineflower Team
tiny-remapperJAR remapping tool by FabricMC
Yarn MappingsCommunity mappings by FabricMC
MCP SDKProtocol implementation by Anthropic

Support

ResourceLink
IssuesGitHub Issues
DiscussionsGitHub Discussions
DocumentationARCHITECTURE.md

Built with ❤️ for the Minecraft modding community

Reviews

No reviews yet

Sign in to write a review