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

@adhisang/minecraft-modding-mcp

by adhi-jp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_CACHE_DIRNoOverrides the default cache directory used by the server.
MCP_DEPRECATED_TOOLSNoSet to "on" to register the deprecated 8.x tools as aliases; without it they are not listed.
MCP_MAX_DOWNLOAD_BYTESNoOverrides the per-artifact download cap of 512 MiB, as an ASCII-decimal byte count. Values below 1 MiB are raised to 1 MiB; invalid values fall back to the default.
MCP_VINEFLOWER_JAR_PATHNoPath to the Vineflower JAR to use when automatic JAR downloads are blocked.
MCP_TINY_REMAPPER_JAR_PATHNoPath to the Tiny Remapper JAR to use when automatic JAR downloads are blocked.
MCP_MAPPING_SOURCE_PRIORITYNoOverrides the default mapping source priority (for example, "maven-first").
MCP_MAX_NESTED_JAR_ENTRY_BYTESNoOverrides the 64 MiB cap on uncompressed data for each nested jar-in-jar entry, as an ASCII-decimal byte count. Values below 1 MiB are raised to 1 MiB; invalid values fall back to the default.
MCP_VALIDATE_PROJECT_TIMEOUT_MSNoTimeout for project validation with discover enabled, as an ASCII-decimal value from 10000 through 600000 milliseconds.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

The catalog tools are listed first. Each rejects an unknown argument key with ERR_INVALID_INPUT naming it. target says where to look; a version before 26.1 without projectPath defaults to vanilla Minecraft in Mojang names. mapping names the namespace of a call's names; tools that would otherwise assume one require it. Replies are { result, meta } or { error, meta }. meta.nextActions holds ready follow-up calls; one with template: true has <placeholder> values to fill in first. meta.warnings says what you should know.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
resources
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
version-listB

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.

artifact-resolveA

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"}}

artifact-indexA

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.

file-listA

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.

file-readA

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"}

class-findA

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"}

source-readA

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"}

source-exportA

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"}

member-listA

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"]}

source-searchA

Search one artifact's indexed source: declarations by name (intent symbol, default), file text (text) or file paths (path). status: ok, not_found, partial (search incomplete) or unavailable (no hit and query not translated from mapping, or a Jar-in-Jar shell). Pages with cursor. Example: {"target":{"kind":"version","version":"1.21.10"},"query":"BlockPos"}

symbol-checkA

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"}]}

symbol-mapA

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"}]}

class-mappingsB

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"}

symbol-traceA

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"}

version-compareA

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"}

class-diffA

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"}

registry-readA

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}

mod-inspectA

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}

mod-searchA

Search a mod jar's Java source with a case-insensitive regular expression (else literal text): class names, method and field declaration lines, other lines. A sources jar is read directly; a binary jar is decompiled first (cached; needs Java). Hits: {type, name, file, line?, context?}. Example: {"jarPath":"/mods/example-1.0.0.jar","query":"onInitialize","searchType":"method"}

mod-remapA

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"}

project-validateA

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"}

mixin-validateA

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"}

access-validateA

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"}

mixin-verify-targetA

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"}

nbt-decodeA

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"}

nbt-encodeA

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"}

nbt-patchA

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}]}

cache-manageA

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"}}

server-metricsA

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

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
versions-listList all available Minecraft versions with their metadata.
runtime-metricsRuntime metrics and performance counters for the MCP server.

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