Skip to main content
Glama
@adhisang/minecraft-modding-mcp

@adhisang/minecraft-modding-mcp

by adhi-jp

@adhisang/minecraft-modding-mcp

npm MIT License Node.js >=22.13.0 CI

English | 日本語

Note: This project is entirely vibe-coded — built with AI-assisted development without formal specs.


@adhisang/minecraft-modding-mcp is an MCP server for AI-assisted Minecraft modding workflows, built on the Model Context Protocol. Use it when an agent needs to inspect Minecraft source, resolve mappings, compare versions, analyze mod JARs, validate Mixin, Access Widener, or Access Transformer files, or work with NBT and registry data from an MCP client.

It runs over stdio and works with Claude Desktop, Claude Code, VS Code, Codex CLI, Gemini CLI, and other MCP-capable clients.

29 catalog tools + 41 deprecated 8.x tools | 9 resources | 4 namespace mappings | SQLite-backed cache

Features

  • Source exploration: browse, list, and search decompiled Minecraft source with line-level context

  • Mapping-aware symbol work: convert class, field, and method names between obfuscated, mojang, intermediary, and yarn

  • Version comparison: compare class signatures, registry entries, and migration-oriented summaries across Minecraft versions

  • Mod JAR analysis: read Fabric, Forge, and NeoForge metadata, entrypoints, Mixin configs, dependencies, source, and remap previews

  • Project validation: validate Mixin source, .accesswidener files, and Forge/NeoForge Access Transformer files against the target version

  • NBT, registry, cache, and diagnostics: patch NBT payloads, inspect generated registry data, and manage cache/runtime state

  • MCP resources: expose versions, class source, artifact metadata, and mappings through URI-based resources

Related MCP server: Synapse

Protocol Support

The server implements MCP protocol revision 2026-07-28 and keeps the legacy initialize-based protocol (2025-11-25 back through 2024-10-07) fully supported in the same binary — no configuration needed:

  • Legacy clients initialize as before and get the same tools and response envelopes as modern clients; the legacy wire stays byte-compatible with the SDK v1 server except for a short list of recorded deviations (see the legacy-exceptions list in docs/tool-reference.md → MCP Protocol Support).

  • Modern clients (2026-07-28) skip initialize, probe with server/discover, and send per-request io.modelcontextprotocol/* _meta. Modern results carry resultType and the server identity echo; the cacheable methods additionally carry cache metadata (ttlMs / cacheScope).

  • One stdio process serves one era, selected by the client's first signal; the selection persists across the server's internal worker restarts.

  • Both eras receive the same short primer for AI agents as MCP instructions (in the initialize and server/discover results): how the catalog tools, target, mapping and the { result, meta } replies work, and, when the 8.x tools are served (MCP_DEPRECATED_TOOLS=on), that they are deprecated aliases. See docs/tool-reference.md → Tool catalog.

Wire-level details — era selection, the rejection and version-negotiation tables, cache values, and framing — are in docs/tool-reference.md → MCP Protocol Support.

Quick Start

Package Users

Requirements:

  • Node.js 22.13.0+

  • Java 17+ on PATH for decompile and remap flows: reading Minecraft source for a version that has no Loom sources jar, decompiling mod JARs, and mod-remap (8.x: remap-mod-jar). The default Vineflower needs Java 17; the server checks only that java runs, not its version. registry-read and registry comparisons in version-compare (with the 8.x tools, get-registry-data and registry diffs in compare-versions and compare-minecraft) run the Minecraft server's data generator, so they need the Java version that Minecraft release requires (Java 21 for 1.21.x).

Start the server locally:

npx -y @adhisang/minecraft-modding-mcp

Use this same command in MCP client configs. Before running the default Vineflower and Tiny Remapper JARs, the server checks their SHA-256 digests. If a cached copy fails verification, the server tries to download a verified replacement. It refuses to run a JAR that fails the check.

If automatic JAR downloads are blocked, set MCP_VINEFLOWER_JAR_PATH and MCP_TINY_REMAPPER_JAR_PATH in your client config. Verify the JARs independently when you supply local paths or select different versions. See Decompilation and Remapping.

Client Setup

CLI clients can register the package command directly.

Claude Code:

claude mcp add minecraft-modding -- npx -y @adhisang/minecraft-modding-mcp

OpenAI Codex CLI:

codex mcp add minecraft-modding -- npx -y @adhisang/minecraft-modding-mcp

Run claude mcp list or codex mcp list after registration to verify the server is available.

The stdio transport auto-detects newline-delimited and Content-Length framing, so the same server command works across Codex and standard MCP clients.

Claude Desktop

Add the following to your claude_desktop_config.json:

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

VS Code

Add the following to .vscode/mcp.json in your workspace:

{
  "servers": {
    "minecraft-modding": {
      "command": "npx",
      "args": ["-y", "@adhisang/minecraft-modding-mcp"]
    }
  }
}

Gemini CLI

Add the following to ~/.gemini/settings.json:

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

Then run:

/mcp list

Custom Environment

Pass environment variables to override defaults:

{
  "mcpServers": {
    "minecraft-modding": {
      "command": "npx",
      "args": ["-y", "@adhisang/minecraft-modding-mcp"],
      "env": {
        "MCP_CACHE_DIR": "/path/to/custom/cache",
        "MCP_MAPPING_SOURCE_PRIORITY": "maven-first"
      }
    }
  }
}

When a build used a non-default Gradle User Home, pass gradleUserHome to artifact-resolve and reuse the returned artifactId (the deprecated 8.x tools take it on their cache-backed calls). The server treats it as a per-call Gradle User Home and searches <gradleUserHome>/loom-cache and <gradleUserHome>/caches/fabric-loom instead of the MCP process's Gradle User Home; project-local roots under projectPath still apply. It does not accept arbitrary Loom cache directories.

Start Here

Start with the catalog tools. Each answers one kind of question, all of them share one request vocabulary (target, mapping, detail), and every reply is { result, meta } or { error, meta }, with follow-up calls in meta.nextActions and warnings in meta.warnings. Pick the tool from the table, then use the examples and reference docs for exact payloads; Tool Surface lists every tool.

Tool

Start here for

artifact-resolve

resolving a version, JAR, coordinate, workspace, or dependency once and reusing its artifactId

source-read

the source of up to 50 classes from Minecraft, dependency, or mod JARs

member-list

constructors, fields, and methods from bytecode

source-search

declarations, text, or file paths in an artifact's source

symbol-check

whether classes, fields, or methods exist in a Minecraft version

symbol-map

names of classes, fields, and methods in another namespace

version-compare

the classes, registry entries, and libraries that changed between two versions

mod-inspect

a mod JAR's loader, metadata, entrypoints, and mixin configs

project-validate

a workspace's mixin configs and access wideners, file by file

cache-manage

cache inventory, verification, and preview/apply cleanup

Workflow Notes

These notes cover high-frequency decisions during onboarding. For the full pitfall list, exact contracts, migration notes, and environment variables, see docs/tool-reference.md.

  • Resolve once with artifact-resolve and pass result.artifact.artifactId as target: { kind: "artifact", artifactId } to the other tools. The resolution options (sourcePriority, gradleUserHome, preferProjectVersion, strictVersion) are inputs of artifact-resolve only. allowDecompile also belongs to source-read and source-export (default true): set it to false on each call to decline source decompilation during resolution and fallback, even when reusing an artifactId. Options are per call and are not stored on artifacts.

  • A version target without projectPath, such as { "kind": "version", "version": "1.21.10" }, means the vanilla game in Mojang names: on a release before 26.1 an omitted mapping is mojang and an omitted scope is vanilla, each on its own, so the call is resolved with scope: "vanilla" and mapping: "mojang" whether or not you write mapping: "mojang" (the first call remaps and decompiles the client jar, about 40 seconds, then it is cached). Give mapping or scope to choose otherwise. A version target with projectPath gets neither default, so an omitted mapping is obfuscated and the call resolves the obfuscated game jar; to read the sources from your project's Loom cache, give mapping: "mojang" with it, as in { "target": { "kind": "version", "version": "1.21.10", "projectPath": "/path/to/mod" }, "mapping": "mojang" }.

  • The symbol tools, class-diff, access-validate, and mixin-verify-target require mapping, the namespace your names are written in; the namespace is never assumed.

  • A meta.nextActions entry without template: true can be sent as is; a template: true entry has <placeholder> values to fill in first.

  • validate-project, project-validate, and mixin-validate with discover: true have a supervisor-owned end-to-end deadline of 120 seconds, including queue time, and each such call runs alone: later calls wait until it finishes, times out or is cancelled. mixin-validate with source, paths, or configPaths runs beside other calls with no deadline. Set MCP_VALIDATE_PROJECT_TIMEOUT_MS to an ASCII-decimal value from 10000 through 600000 to override it. A timeout returns ERR_TOOL_TIMEOUT; a running timeout restarts the isolated worker before queued calls resume, while a queue timeout leaves the current worker untouched.

  • Artifact downloads are capped at 512 MiB (536870912 bytes) each. Set MCP_MAX_DOWNLOAD_BYTES to an ASCII-decimal byte count to override it; values below 1 MiB are raised to 1 MiB, and anything else — non-numeric, malformed, or too large to be an exact integer — falls back to the default. The cap is checked twice: against Content-Length before any body is read (a header that is not a plain byte count is treated as absent rather than as a breach), and against the bytes actually received, so a chunked or mis-declared response is caught too. A download that exceeds it fails with ERR_LIMIT_EXCEEDED and is not retried; the partial file is deleted on a best-effort basis, so a file the server cannot remove may survive the refusal. A cached copy is never served in its place — a cap is a configuration verdict, not a passing outage, and standing a stale artifact in for it would hide the ceiling instead of reporting it. When every repository trips the cap, the terminal ERR_REPO_FETCH_FAILED reports it where a caller can actually read it: hints carries the sentence naming MCP_MAX_DOWNLOAD_BYTES and the byte count to clear, and context.repoFailureCode is ERR_LIMIT_EXCEEDED.

  • Nested (Jar-in-Jar) entries are capped at 64 MiB (67108864 bytes) of uncompressed data each. Set MCP_MAX_NESTED_JAR_ENTRY_BYTES to override it, on the same rules as the download cap: ASCII decimal digits, values below 1 MiB raised to 1 MiB, anything else falling back to the default. The size is checked against the entry's declared uncompressed size before the read starts and again against the bytes actually streamed. A breach fails that one inner jar with ERR_LIMIT_EXCEEDED; the shell jar's other inner jars still resolve.

  • Queued calls resume only after the replacement worker completes initialization replay. If replacement startup or replay fails, queued tool calls terminate with ERR_WORKER_RESTART instead of waiting indefinitely. If unresolved process-tree cleanup fills the supervisor's two live-generation slots, new requests fail with the existing restart envelope and unavailable notifications are warning-dropped until cleanup or reconnect. On POSIX, an already-gone process group counts as cleaned up rather than leaving a stale cleanup token.

  • If a workspace was built with GRADLE_USER_HOME=/tmp/... or another isolated Gradle home, pass that path as gradleUserHome to artifact-resolve and reuse the returned artifactId, so source and member lookups use the same Loom cache instead of stale caches under the MCP process home.

Read Minecraft source from a version

{
  "tool": "source-read",
  "arguments": {
    "target": { "kind": "version", "version": "1.21.10" },
    "classes": ["net.minecraft.server.Main"],
    "mode": "snippet"
  }
}

Map a symbol to another namespace

{
  "tool": "symbol-map",
  "arguments": {
    "target": { "kind": "version", "version": "1.21.10" },
    "mapping": "mojang",
    "toMapping": "intermediary",
    "symbols": [
      { "kind": "method", "className": "net.minecraft.server.MinecraftServer", "memberName": "tickServer" }
    ],
    "signatureMode": "name-only"
  }
}

Summarize a mod JAR

{
  "tool": "mod-inspect",
  "arguments": {
    "jarPath": "/path/to/mymod-1.0.0.jar"
  }
}

Validate a workspace

{
  "tool": "project-validate",
  "arguments": {
    "projectPath": "/workspace/modid",
    "discover": ["mixins", "access-wideners", "access-transformers"]
  }
}

project-validate discovers mixin configs and access wideners by default. Add "access-transformers" to discover when you want Access Transformer files validated too.

Documentation

Tool Surface

Catalog Tools

The catalog is a flat set of focused tools, listed ahead of the 8.x tools when those are served (see Deprecated 8.x Tools). Each catalog tool answers one kind of question, and all of them share one request vocabulary: a target object says where to look (artifact, version, jar, coordinate, workspace, or dependency), mapping names the namespace, and detail shortens a reply where it can. Replies keep the answer in result and put warnings, next actions, paging, and truncation in meta; a tool that resolves its target to an artifact returns result.artifact, whose artifactId you can reuse as target: { kind: "artifact", artifactId }. An unknown or misplaced key fails with ERR_INVALID_INPUT instead of being ignored. The source and member tools take 1–50 classes per call and report each class as its own result.items entry. They only read, except source-export, which writes .java files under outputDir. source-search searches one artifact's indexed source for declarations by name, text inside files, or file paths, page by page; its mapping is the namespace of the query, so a Mojang class name finds the class in an obfuscated artifact, and status: "unavailable" marks a search without hits whose query could not be translated. The symbol tools (symbol-check, symbol-map, class-mappings, symbol-trace) read a Minecraft version's mappings and require mapping, the namespace your names are written in: the namespace is never assumed, so a Mojang name is not looked up as an obfuscated one and reported missing; symbol-check and symbol-map take 1–50 symbols per call. The comparison tools work between versions or on one version's generated data: version-compare answers with counts unless detail asks for the names, class-diff requires mapping like the symbol tools, and registry-read returns registry names and entry counts unless withData is set. The mod tools take the mod jar as jarPath: mod-inspect returns its metadata, mod-search searches its source, and mod-remap remaps a Fabric or Quilt jar, writing the output only with apply: true; read a mod's classes with source-read and member-list through target: { kind: "jar", jarPath }. The validation tools check a Loom project against Minecraft bytecode: mixin-validate takes exactly one of source, paths, configPaths, or discover: true and reports each mixin class, and project-validate finds and validates a workspace's mixin configs and access wideners and reports each file. Both read an omitted version and mapping from the project only when projectPath is given, never assume the mixins' namespace, and return status: "blocked" with a template next action when one cannot be read. access-validate checks one access widener or access transformer, given as content or path, entry by entry, and mixin-verify-target checks one method or field a mixin targets and advises @Shadow, @Accessor or @Invoker; both require mapping, the namespace of the names they check, and mixin-verify-target translates those names into the jar's namespace unless autoRemap: false. The NBT tools convert Java Edition NBT: nbt-decode turns base64 NBT bytes into a typed JSON document, nbt-patch applies RFC 6902 operations to that document, and nbt-encode writes it back as base64 NBT. cache-manage reports, lists, verifies and deletes the server's cache entries; delete needs a selector and only previews unless apply: true is set, and every action returns its entries or counts at every call. server-metrics returns the server's runtime counters, including how often each tool was called. See docs/tool-reference.md → Tool catalog for inputs, results, and the mapping from the 8.x tools, which stay callable as deprecated aliases.

Tool

Purpose

Replaces (8.x)

version-list

List Minecraft versions from Mojang metadata and mark the locally cached ones

list-versions, inspect-minecraft (versions)

artifact-resolve

Resolve a version, JAR, coordinate, workspace, or dependency target to a reusable artifact

resolve-artifact, inspect-minecraft (artifact)

artifact-index

Rebuild the cached file and symbol index of an artifact

index-artifact

file-list

List file paths inside an artifact with cursor pagination

list-artifact-files, inspect-minecraft (list-files)

file-read

Read one file inside an artifact with a byte limit

get-artifact-file, inspect-minecraft (file)

class-find

Find fully qualified class names from a simple or qualified name, including nested JARs

find-class, inspect-minecraft (class-overview)

source-read

Read the source of 1-50 classes (outline, line window, or full file) from Minecraft, dependency, or mod JARs

batch-class-source, get-class-source, decompile-mod-jar, get-mod-class-source, inspect-minecraft (class-source), analyze-mod (class-source)

source-export

Write the source of 1-50 classes as .java files under an output directory

batch-class-source, get-class-source, get-mod-class-source

member-list

List the bytecode constructors, fields, and methods of 1-50 classes with paging

batch-class-members, get-class-members, inspect-minecraft (class-members), analyze-mod (members)

source-search

Search an artifact's indexed source for declarations by name, text inside files, or file paths, with paging

search-class-source, inspect-minecraft (search)

symbol-check

Check whether 1-50 classes, fields, or methods exist in a Minecraft version's mappings

batch-symbol-exists, check-symbol-exists, analyze-symbol (exists)

symbol-map

Map 1-50 class, field, or method names between namespaces, strictly by descriptor, or to a workspace's compile names

batch-mappings, find-mapping, resolve-method-mapping-exact, resolve-workspace-symbol, analyze-symbol (map, exact-map, workspace)

class-mappings

List one class and its members with their names in all four namespaces, with paging

get-class-api-matrix, analyze-symbol (api-overview)

symbol-trace

Find the Minecraft versions in which a method exists

trace-symbol-lifecycle, analyze-symbol (lifecycle)

version-compare

Count, and on request list, the classes, registry entries, and libraries added or removed between two Minecraft versions

compare-versions, compare-minecraft (versions, registry-diff, migration-overview)

class-diff

Diff one class's constructors, methods, and fields between two Minecraft versions

diff-class-signatures, compare-minecraft (class-diff)

registry-read

Read a version's generated registries: names and entry counts, and the entries on request

get-registry-data

mod-inspect

Read a mod JAR's loader, metadata, entrypoints, mixin configs, dependencies, and nested JARs, and on request its class names

analyze-mod-jar, decompile-mod-jar, analyze-mod (summary, decompile)

mod-search

Search a mod JAR's Java source for class names, method and field declarations, or text

search-mod-source, analyze-mod (search)

mod-remap

Remap a Fabric or Quilt mod JAR to Yarn or Mojang names (preview unless apply is set)

remap-mod-jar, analyze-mod (remap)

project-validate

Find and validate a Loom workspace's mixin configs, access wideners, and on request access transformers, with each file's status

validate-project (project-summary)

mixin-validate

Validate Mixin source, files, configs, or a project's discovered configs against a Minecraft version's bytecode

validate-mixin, validate-project (mixin)

access-validate

Validate one access widener or access transformer, given as text or a file, entry by entry against a Minecraft version's bytecode

validate-access-widener, validate-access-transformer, validate-project (access-widener, access-transformer)

mixin-verify-target

Check that a mixin's target method or field exists in a JAR and get @Shadow, @Accessor, or @Invoker advice

verify-mixin-target

nbt-decode

Decode Java Edition NBT bytes (base64, gzip or uncompressed) into a typed JSON document

nbt-to-json

nbt-encode

Encode a typed NBT JSON document into Java Edition NBT bytes as base64, optionally gzip-compressed

json-to-nbt

nbt-patch

Apply RFC 6902 add, remove, replace, and test operations to a typed NBT JSON document

nbt-apply-json-patch

cache-manage

Summarize, list, verify, and delete the server's cache entries (delete previews unless apply is set)

manage-cache

server-metrics

Read the server's runtime counters, including per-tool call counts and durations

get-runtime-metrics

Names on 26.1+ Versions

For unobfuscated releases such as 26.1+, the runtime jar's names as shipped, the obfuscated namespace, are already Mojang names. mapping accepts both obfuscated and mojang, and both read the same names: source-read, member-list and the other tools that resolve a target to an artifact report result.artifact.mappingApplied: "mojang" for either, and for an omitted mapping, and artifact-resolve with detail: "full" shows provenance.unobfuscatedRuntime: true. artifact-resolve does not relabel requestedMapping, so requestedMapping: "obfuscated" next to mappingApplied: "mojang" is an identity, not a fallback. mapping: "mojang" takes the runtime/decompile path directly and skips Loom source-jar discovery. A target resolved with intermediary or yarn falls back to the runtime names with a warning and reports mojang; symbol-trace keeps reporting the requested namespace. This applies to version targets, Minecraft runtime coordinates, and jar targets whose own contents (a top-level version.json with a 26.1+ id, net/minecraft/SharedConstants.class, and no .java sources) prove a 26.1+ Minecraft runtime jar; see docs/tool-reference.md → Lookup Rules. Dependency jars whose own version only looks like 26.x keep obfuscated. cache-manage shows the label each entry was stored with, without relabelling it, and access-validate reports the vanilla jar it checked against as obfuscated in its provenance; see docs/tool-reference.md → Namespace Definitions.

Deprecated 8.x Tools

The 8.x tools below are deprecated aliases that still accept their 8.x inputs and are removed in 10.0.0 at the earliest. The server registers them only when its environment sets MCP_DEPRECATED_TOOLS=on; without it they are not listed, and a call to one fails as an unknown tool. A client that still calls 8.x tools keeps working with MCP_DEPRECATED_TOOLS=on while it moves each call to the catalog tool named below. docs/tool-reference.md → Deprecated 8.x tools documents them.

8.x tool

Replaced by

list-versions

version-list

inspect-minecraft

versions → version-list, artifact → artifact-resolve, class-overview → class-find, class-source → source-read, class-members → member-list, search → source-search, file → file-read, list-files → file-list

analyze-symbol

exists → symbol-check, map → symbol-map, exact-map → symbol-map, lifecycle → symbol-trace, workspace → symbol-map, api-overview → class-mappings

compare-minecraft

versions → version-compare, class-diff → class-diff, registry-diff → version-compare, migration-overview → version-compare

analyze-mod

summary → mod-inspect, decompile → mod-inspect, search → mod-search, class-source → source-read, members → member-list, remap → mod-remap

validate-project

project-summary → project-validate, mixin → mixin-validate, access-widener → access-validate, access-transformer → access-validate

manage-cache

cache-manage

verify-mixin-target

mixin-verify-target

batch-class-source

source-read, source-export

batch-class-members

member-list

batch-symbol-exists

symbol-check

batch-mappings

symbol-map

resolve-artifact

artifact-resolve

find-class

class-find

get-class-source

source-read, source-export

get-class-members

member-list

search-class-source

source-search

get-artifact-file

file-read

list-artifact-files

file-list

trace-symbol-lifecycle

symbol-trace

diff-class-signatures

class-diff

find-mapping

symbol-map

resolve-method-mapping-exact

symbol-map

get-class-api-matrix

class-mappings

resolve-workspace-symbol

symbol-map

check-symbol-exists

symbol-check

nbt-to-json

nbt-decode

nbt-apply-json-patch

nbt-patch

json-to-nbt

nbt-encode

index-artifact

artifact-index

get-runtime-metrics

server-metrics

validate-mixin

mixin-validate

validate-access-widener

access-validate

validate-access-transformer

access-validate

analyze-mod-jar

mod-inspect

get-registry-data

registry-read

compare-versions

version-compare

decompile-mod-jar

mod-inspect, source-read

get-mod-class-source

source-read, source-export

search-mod-source

mod-search

remap-mod-jar

mod-remap

Detailed parameter constraints, migration notes, resource behavior, and the full environment-variable matrix live in docs/tool-reference.md.

Development

Repository requirements:

  • Node.js 22.13.0+

  • pnpm

  • Java 17+ when running remap or decompile flows locally

Setup and run the repository:

pnpm install
pnpm dev

Build the packaged shape:

pnpm build
pnpm start

Always run:

pnpm check
pnpm test

Run these when relevant:

  • pnpm test:file <path...> for focused ordinary suites

  • pnpm test:grep <name-pattern> for recursive ordinary suites filtered by test name

  • pnpm test:manual:stdio-smoke for MCP transport, registration, or manual workflow changes

  • pnpm test:manual:package-smoke when checking packaged install and distribution behavior

  • pnpm test:perf for search, index, or performance-sensitive changes

  • pnpm test:coverage or pnpm test:coverage:lcov for coverage checks (lines=80, branches=70, functions=80)

  • pnpm validate for the full local validation suite

Ordinary .test.ts files live in domain directories under tests/ (for example source-service/, entry-tools/, mapping/, mixin/, tools/, aliases/, contracts/, and utils/). Keep helper-only modules in tests/helpers; manual smoke, performance, and resource files remain in their existing special directories.

Acknowledgements

  • The enclosingSymbol field on content search hits was inspired by the design of zvec-grep. This project shares no code with zvec-grep and does not depend on it.

License

MIT

Available Tools

29 tools
access-validateA
Read-only

Check an access widener or access transformer against a Minecraft version's bytecode, entry by entry. Pass format, exactly one of content or path, version, and mapping (the file's namespace; required, it overrides a widener header). scope picks the jar; projectPath defaults it to loader. Example: {"format":"access-widener","path":"/p/m.accesswidener","version":"1.21.10","mapping":"intermediary"}

Inputs: format (required), mapping (required), version (required), path, +3 more.

artifact-indexA
Idempotent

Rebuild the cached file and symbol index of an artifact. A target that is not cached yet is resolved and indexed first; force: true rebuilds an index that is already current.

Inputs: target (required), force.

artifact-resolveA
Read-only

Resolve a version, jar, coordinate, workspace or dependency target to a source artifact. Reuse result.artifact.artifactId in other tools as target {"kind":"artifact","artifactId":"..."}. The resolution options live only on this tool. Example: {"target":{"kind":"version","version":"1.21.10"}}

Inputs: target (required), detail, mapping, strictVersion, +4 more.

cache-manageA
Destructive

Summarize, list, verify or delete the server's cache entries (index, downloads, mappings, registries, decompiled source, remapped and nested jars, workspaces); each action returns entries or counts. delete needs a selector and previews unless apply is true: a preview deletes nothing and, if it finds entries, offers the apply call. Example: {"action":"delete","selector":{"version":"1.21.1"}}

Inputs: action (required), apply, limit, cursor, +2 more.

class-diffA
Read-only

Diff one class between two Minecraft versions: added, removed and modified constructors, methods and fields. mapping (required) is the namespace of className and the returned names. status: ok, not_found (in neither version), unavailable (mapping data could not be loaded). Example: {"className":"net.minecraft.world.item.Item","fromVersion":"1.21.1","toVersion":"1.21.10","mapping":"mojang"}

Inputs: mapping (required), className (required), toVersion (required), fromVersion (required), +1 more.

class-findA
Read-only

Find fully qualified class names by simple or qualified name in an artifact, including classes in nested jars. A nested class comes back as its binary name (a.b.Outer$Inner), which the source and member tools accept. status: ok (one class), ambiguous (several) or not_found. Example: {"target":{"kind":"version","version":"1.21.10"},"className":"Blocks"}

Inputs: target (required), className (required), limit, mapping.

class-mappingsB
Read-only

List one class and its fields and methods with their names in all four namespaces (obfuscated, mojang, intermediary, yarn) for a Minecraft version. Pages with limit and cursor. Example: {"version":"1.21.10","className":"net.minecraft.world.item.Item","mapping":"mojang"}

Inputs: mapping (required), version (required), className (required), kinds, +2 more.

file-listA
Read-only

List the file paths inside an artifact, optionally under a path prefix. Pages with limit; pass meta.pagination.nextCursor as cursor for the next page.

Inputs: target (required), limit, cursor, prefix.

file-readA
Read-only

Read one file inside an artifact by its path: a source file, or a resource or data file of the backing jar. maxBytes caps the returned content; a cut is reported in meta.truncation. Example: {"target":{"kind":"version","version":"1.21.10"},"filePath":"net/minecraft/world/item/Item.java"}

Inputs: target (required), filePath (required), maxBytes.

member-listA
Read-only

List the constructors, fields and methods of 1-50 classes from an artifact's bytecode (Minecraft, dependency or mod jar). status: ok, partial (names from decompiled source only) or unavailable. Example: {"target":{"kind":"version","version":"1.21.10"},"classes":["net.minecraft.world.item.Item"]}

Inputs: target (required), classes (required), limit, access, +8 more.

mixin-validateA
Read-only

Validate Mixin classes against a Minecraft version's bytecode. Pass exactly one of source, paths, configPaths or discover:true (each *.mixins.json under projectPath). Without projectPath, version and mapping are required; with it, an omitted one is read from the project, else the call is blocked. Example: {"configPaths":["/p/src/main/resources/m.mixins.json"],"projectPath":"/p"}

Inputs: paths, scope, detail, source, +5 more.

mixin-verify-targetA
Read-only

Check that a mixin target method or field exists in the jar's bytecode, with @Shadow/@Accessor/@Invoker advice. Names are translated to the artifact's namespace (autoRemap). status: ok, ambiguous (overloads; add descriptor), not_found. Example: {"target":{"kind":"version","version":"1.21.10"},"className":"net.minecraft.world.entity.Entity","kind":"method","memberName":"tick","mapping":"mojang"}

Inputs: kind (required), target (required), mapping (required), className (required), +4 more.

mod-inspectA
Read-only

Read a mod jar's metadata: loader, id, name, version, entrypoints, mixins, access wideners and transformers, dependencies, nested jars, class count. withClasses adds each .class entry path with / as . (a class name except module-info, package-info, META-INF/versions/...) for source-read or member-list with target {"kind":"jar","jarPath":...}. Example: {"jarPath":"/mods/a.jar","withClasses":true}

Inputs: jarPath (required), withClasses.

mod-remapA
Destructive

Remap a Fabric or Quilt mod jar to yarn or mojang names. Previews unless apply is true: the preview writes nothing and reports outputJar and outputExists; apply writes outputJar, replacing an existing file (a remap needs Java and downloads mappings). An outputJar equal to jarPath is rejected. Example: {"jarPath":"/mods/example-1.0.0.jar","toMapping":"mojang"}

Inputs: jarPath (required), toMapping (required), apply, force, +2 more.

nbt-decodeA
Read-only

Decode Java Edition NBT bytes (base64, gzip or uncompressed) into a typed JSON document {rootName, root}, where every node is {type, value} and long values are decimal strings. Example: {"nbtBase64":"CgABUgMABmFuc3dlcgAAACoA"}

Inputs: nbtBase64 (required), compression.

nbt-encodeA
Read-only

Encode a typed NBT JSON document, as nbt-decode returns it, into Java Edition NBT bytes as base64, uncompressed or gzip. A malformed document fails with ERR_NBT_INVALID_TYPED_JSON naming the node. Example: {"typedJson":{"rootName":"R","root":{"type":"compound","value":{"answer":{"type":"int","value":42}}}},"compression":"gzip"}

Inputs: typedJson (required), compression.

nbt-patchA
Read-only

Apply RFC 6902 add, remove, replace and test operations in order to a typed NBT JSON document; returns the new document. value is the JSON put at path: a typed node {type, value} at a node's path. Every operation must leave valid typed NBT; a failed test fails with ERR_JSON_PATCH_CONFLICT. Example: {"typedJson":{...},"patch":[{"op":"replace","path":"/root/value/answer/value","value":7}]}

Inputs: patch (required), typedJson (required).

project-validateA
Read-only

Find and validate a Loom workspace's mixin configs and access wideners (access transformers on request) and report each file's status. version and mapping default to the project's (gradle.properties, build script); when one is needed and cannot be read, the call is blocked. Long-running. Example: {"projectPath":"/path/to/project"}

Inputs: projectPath (required), scope, detail, mapping, +2 more.

registry-readA
Read-only

Read a Minecraft version's generated registries (block, item, ...): names and entry counts, plus each registry's entries with withData. The first read of a version downloads its server jar and runs the game's data generator (needs Java). Example: {"version":"1.21.10","registry":"block","withData":true,"limit":50}

Inputs: version (required), limit, registry, withData.

server-metricsA
Read-only

Runtime counters of this server process since it started: per-tool call counts and durations, cache, search and index counters, and latency timings. Takes no input. Example: {}

Inputs: no named parameters.

source-exportA
DestructiveIdempotent

Write the Java source of 1-50 classes from one artifact to //.java, creating directories and overwriting existing files; a nested class writes its top-level class's file. Example: {"target":{"kind":"version","version":"1.21.10"},"classes":["net.minecraft.world.item.Item"],"outputDir":"/tmp/src"}

Inputs: target (required), classes (required), outputDir (required), mode, +2 more.

source-readA
Read-only

Read the Java source of 1-50 classes from one artifact (Minecraft, dependency or mod jar): a member outline (mode metadata), a line window (snippet) or the whole file (full). Read-only; source-export writes files. Example: {"target":{"kind":"version","version":"1.21.10"},"classes":["net.minecraft.world.item.Item"],"mode":"snippet"}

Inputs: target (required), classes (required), mode, endLine, +6 more.

symbol-checkA
Read-only

Check whether 1-50 classes, fields or methods exist in a Minecraft version's mappings. mapping (required) is the namespace the names are written in. Item status: ok, not_found, ambiguous, unavailable. Example: {"target":{"kind":"version","version":"1.21.10"},"mapping":"mojang","symbols":[{"kind":"class","className":"net.minecraft.world.item.Item"}]}

Inputs: target (required), mapping (required), symbols (required), nameMode, +2 more.

symbol-mapA
Read-only

Map 1-50 class, field or method names from mapping to toMapping for a Minecraft version. exact: true maps methods strictly by owner, name and descriptor. A workspace target without toMapping maps to the names the project compiles against. Example: {"target":{"kind":"version","version":"1.21.10"},"mapping":"obfuscated","toMapping":"mojang","symbols":[{"kind":"class","className":"dhl"}]}

Inputs: target (required), mapping (required), symbols (required), exact, +5 more.

symbol-traceA
Read-only

Scan Minecraft versions for one method: first and last versions with it, versions between that lack it, and whether the newest scanned has it. status: ok, not_found, unavailable (nothing could be checked). Example: {"symbol":{"kind":"method","className":"net.minecraft.server.MinecraftServer","memberName":"tickServer"},"mapping":"mojang","toVersion":"1.21.10"}

Inputs: symbol (required), mapping (required), toVersion, fromVersion, +3 more.

version-compareA
Read-only

Compare two Minecraft versions: added and removed classes, registry entries and, with withLibraries, libraries. Answers with counts unless detail asks for lists (standard: class and library names; full: also registry entries). status: ok, partial (a part failed), not_found (no such registry). Example: {"fromVersion":"1.21.1","toVersion":"1.21.10","packageFilter":"net.minecraft.world.item"}

Inputs: toVersion (required), fromVersion (required), limit, detail, +4 more.

version-listB
Read-only

List Minecraft versions from Mojang's version manifest: releases, then snapshots, each newest first, with the latest release and snapshot and the versions already cached locally.

Inputs: limit, includeSnapshots.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 29 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes scoped by resource and action, and the descriptions help separate similar pairs. Minor ambiguity remains between source-search and mod-search, and between symbol-check, symbol-map, and class-mappings, but these are unlikely to cause frequent misselection.

    Naming Consistency4/5

    The set follows a consistent kebab-case resource-action convention (e.g., file-list, source-read, mod-inspect) with predictable vocabulary. A few outliers lack a verb or use noun-noun/three-word forms (server-metrics, class-mappings, mixin-verify-target), but the overall pattern is readable and stable.

    Tool Count2/5

    At 29 tools, the surface is well above the 25+ threshold and is heavy for an agent to navigate, even though the domain is broad. Each tool covers a distinct capability, but the set would benefit from grouping or reducing the surface.

    Completeness4/5

    Coverage is broad across versions, artifacts, sources, mappings, NBT, mods, and validation workflows, with few obvious dead ends. Minor gaps exist around writing/general file output and build/run workflows, but the core modding-analysis lifecycle is well covered.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      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.
      149 npm
      49
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides structural code intelligence via 26 MCP tools, enabling AI assistants to query code symbols, dependencies, and call graphs accurately without file-pasting.
      -