Skip to main content
Glama

mc-mod-mcp

Minecraft 모드를 작성할 때 Claude에게 근거 있는 답변을 제공하는 MCP 서버입니다.

이 서버는 현재 실제로 활발히 사용되는 두 가지 모딩 시대인 1.8.9(Forge/MCP, Java 8, Hypixel 스타일 클라이언트 모드)와 1.21.10+(NeoForge 또는 Fabric, Java 21, Mojang 매핑, 데이터 컴포넌트)를 대상으로 합니다. 1.21.x 버전의 경우, linkie를 통한 실시간 매핑 조회는 물론, linkie에 최신 릴리스가 반영되지 않았을 때 piston-meta에서 직접 매핑을 가져올 수도 있습니다.

이 도구가 없으면 Claude는 두 시대를 혼동하여 new ResourceLocation(...)(1.20.5부터 삭제됨)을 환각으로 생성하거나, 아이템이 NBT 대신 데이터 컴포넌트를 사용한다는 사실을 잊거나, 새로운 sequence/yaw/pitch 필드 없이 ServerboundUseItemPacket을 작성하곤 합니다. 이 도구를 사용하면 모델이 추측하는 대신 참조할 수 있는 사실 정보를 얻게 됩니다.

설치

git clone https://github.com/ratph6/mc-mod-mcp
cd mc-mod-mcp
npm install
npm run build

그런 다음 Claude Code가 빌드된 바이너리를 가리키도록 설정하세요:

claude mcp add mc-mod node "$PWD/dist/index.js"

(또는 원한다면 ~/.claude/config.json을 직접 편집하세요).

사용법

평범한 영어로 질문하세요. Claude가 도구를 선택합니다. 실제로 이 도구를 활용하는 몇 가지 예시입니다:

How do I send a useItem packet in 1.21.10 Fabric?

Translate this 1.8.9 snippet to 1.21+: Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("hi"))

Scaffold a NeoForge 1.21.10 mod main class for examplemod

Show me a @ModifyVariable mixin example

What's the Yarn name for LocalPlayer in 1.21.10?

도구

이름

기능

mc_version_info

특정 시대의 로더, Java, 매핑, 빌드 시스템, 문서 링크 로드

mc_lookup_class

개념(Block, Level, BlockEntity 등)에 대한 1.8.9 vs 1.21+의 정규화된 클래스 이름

mc_lookup_api

작업(채팅 전송, GUI 열기, 블록 등록 등)을 위한 표준 코드 스니펫

mc_translate

한 시대의 심볼을 다른 시대의 대응하는 심볼로 제안

mc_event

"X가 발생할 때 어떤 이벤트가 실행되는가?" — 1.8.9 + NeoForge + Fabric 정보 제공

mc_mixin

믹스인 패턴 카탈로그(@Inject, @ModifyArg, @WrapOperation, @Accessor 등) 및 믹스인 설정 JSON

mc_gotchas

시대별 주의사항 — 데이터 컴포넌트, ResourceLocation 팩토리, 모드 버스 vs 게임 버스 등. 필터링 가능.

mc_gradle

시대 + 로더별 build.gradle / settings.gradle / gradle.properties

mc_mappings_translate

Yarn ↔ Mojang 클래스 이름 변환 (큐레이팅됨)

mc_list_scaffolds

스캐폴드 템플릿 나열

mc_scaffold

보일러플레이트 코드 생성 (모드 메인, 아이템/블록, 명령어, 키 바인딩, 믹스인, 네트워크 페이로드 등)

mc_docs

시대별 문서 링크

mc_list_versions

실시간: linkie가 알고 있는 모든 버전 (네임스페이스별)

mc_mappings_search

실시간: linkie의 매핑 API에 대한 전체 텍스트 검색

mc_lookup_field

실시간: linkie를 통한 필드 이름 조회 (큐레이팅된 테이블은 필드를 추적하지 않음)

mc_mojang_mappings

piston-meta를 통해 Mojang의 client_mappings.txt를 직접 가져옴. 26.1.x 및 linkie가 처리하지 못하는 모든 버전에 사용.

처음 12개는 큐레이팅된 도구로, 빠르고 결정론적이며 네트워크를 사용하지 않습니다. 마지막 4개는 필요에 따라 네트워크를 사용합니다.

확장

지식은 src/knowledge.ts에 평면 데이터로 저장되어 있습니다. CLASSES / METHODS / EVENTS / MIXIN_PATTERNS / GOTCHAS / YARN_TO_MOJANG / GRADLE_TEMPLATES에 항목을 추가하고 npm test를 실행하면 완료됩니다. 스캐폴드는 같은 파일 내의 템플릿 함수이며 SCAFFOLD_KINDS를 통해 나열됩니다.

src/
  index.ts          MCP server, tool definitions, stdio transport
  knowledge.ts      Curated data + scaffold templates
  linkie.ts         Live calls to linkie's mappings API
  mojang.ts         Live piston-meta + proguard parser
  smoke.test.ts     node:test smoke tests

주의사항

이 도구는 Mojang/Yarn/Parchment 매핑 파일(수 MB 크기)을 포함하지 않습니다. 원시 난독화 이름을 사용하려면 실시간 도구 또는 linkie를 사용하세요. 이 도구는 작성한 코드가 컴파일되는지 여부는 알려주지 않으며, 해당 시대에 맞는 API 형태인지 여부만 알려줍니다. 번역은 1.8.9와 1.21.10을 대상으로 하며, 중간 버전도 일반적으로 적용되지만 근사치로 간주하세요.

Available Tools

16 tools
mc_docsDocumentation links for an eraC

Returns the most relevant doc/wiki links to consult for a given era.

Inputs: era (required).

mc_eventFind the event for a triggerA

Given a plain-English description of a trigger ('player joins', 'tick', 'right click block'), returns the event class name in 1.8.9, NeoForge 1.21+, and Fabric 1.21+. Also tells you whether the event lives on the mod bus or game bus (NeoForge distinction).

Inputs: trigger (required).

mc_gotchasEra-specific pitfalls and gotchasA

Returns a list of common mistakes, breaking changes, and surprising behaviors per era. Filter by topic ('mixin', 'nbt', 'packets', 'fabric', 'mappings', etc.). Use proactively when the user starts a non-trivial task in a specific area.

Inputs: era, topic.

mc_gradleGradle build files for a loaderB

Returns build.gradle, settings.gradle, and gradle.properties templates for a chosen era + loader combo. Pinned to current versions (NeoForge 21.10, Loom 1.10, Fabric API 0.131, Yarn 1.21.10+build.1, ForgeGradle 2.x for 1.8.9). Tell the user to bump to latest after copying.

Inputs: era (required), loader (required).

mc_list_scaffoldsList available scaffoldsA

Enumerate every scaffold template id and its description.

Inputs: no named parameters.

mc_list_versionsList every Minecraft version + namespace linkie carriesA

Live call to https://linkieapi.shedaniel.me/api/namespaces. Returns every mappings namespace (yarn, mojang, mojang_raw, quilt-mappings, mcp, legacy-yarn, feather, ...) and which Minecraft versions each one currently has. Use to confirm a version exists before searching it. By default filters to stable releases — pass includeUnstable=true to see snapshots, pre-releases, RCs.

Inputs: namespace, versionPrefix, includeUnstable, limit.

mc_lookup_apiLook up a common modding operationA

Given a task description like 'send chat message', 'open gui', 'register block', 'render hud', 'send useitem packet', returns the canonical snippet for both 1.8.9 and modern 1.21+. Searches BOTH the method/API table and the class-name table so partial class queries still surface useful info. Use when the user asks 'how do I X in ?'.

Inputs: task (required), loader.

mc_lookup_classLook up a Minecraft class across erasA

Given a class concept or partial name (e.g. 'Block', 'TileEntity', 'EntityPlayerMP', 'Level', 'BlockPos'), returns the fully-qualified name in 1.8.9 (Forge/MCP) and modern 1.21+ (Mojang) along with notes on path or rename differences. Always returns top approximate matches even when the query doesn't hit exactly.

Inputs: query (required).

mc_lookup_fieldFind a field in Minecraft mappings (live)A

Convenience wrapper over mc_mappings_search filtered to fields. The curated knowledge tables don't track fields at all, so this is the only way to ask 'what's the field name for X in ?'.

Inputs: query (required), namespace (required), version (required), limit.

mc_mappings_translateYarn ↔ Mojang class name translationA

Given a class name from either Yarn (Fabric) or Mojang official (NeoForge / modern Fabric) mappings, returns the equivalent. Useful when porting between Fabric on Yarn and NeoForge on Mojang, or when reading a wiki snippet that uses the other naming.

Inputs: name (required).

mc_mixinMixin pattern lookupA

Returns code examples for Mixin (Sponge/Fabric Mixin) patterns: @Inject HEAD/TAIL, @ModifyArg, @ModifyVariable, @Redirect, @WrapOperation, @Accessor, @Invoker, plus mixin config JSON skeletons for Fabric and NeoForge. Use when the user is wiring up a mixin and you need to remember the exact annotation shape.

Inputs: query.

mc_mojang_mappingsLook up Mojang official names directly from piston-metaA

Bypasses linkie and fetches Mojang's client_mappings.txt straight from piston-meta.mojang.com, parses the proguard format, and searches it. Use this for any version linkie can't load — most importantly the 26.1 lineage (26.1, 26.1.1, 26.1.2) which linkie advertises but 500s on. Also useful when you want to verify a name against Mojang directly. First call for a version downloads the mapping (multi-MB) and caches it in-process; subsequent calls are instant.

Inputs: version (required), query (required), type, limit.

mc_scaffoldGenerate boilerplate for a modding scenarioA

Emits a code snippet (or config file body) for a given scenario, era, and loader. Run mc_list_scaffolds first to see valid kind values. Loader is forced to 'forge' for 1.8.9.

Inputs: kind (required), era (required), loader (required), modId (required), +1 more.

mc_translateTranslate a Minecraft API symbol between erasA

Given a method or class name from one era, suggests the equivalent in the other era. Looks across both classes and method tasks. Useful when porting code between 1.8.9 and 1.21+.

Inputs: symbol (required), from (required).

mc_version_infoMinecraft modding era infoA

Returns version metadata (Java version, mappings flavor, loader options, build system, metadata file, doc links) for the chosen era. Use this when the user mentions a Minecraft version so you ground the rest of the answer.

Inputs: era (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 16 tools

    Disambiguation5/5

    Each tool targets a distinct aspect of modding (docs, events, gotchas, build scripts, scaffolding, mappings, etc.). Although there are similar-looking tools like mc_translate and mc_mappings_translate, their descriptions clearly differentiate between era-based and namespace-based translation. Overlaps are minimal and well-justified.

    Naming Consistency4/5

    All tools use the 'mc_' prefix consistently. Most names follow a descriptive noun or verb pattern (e.g., mc_list_scaffolds, mc_lookup_api). However, the pattern is not perfectly uniform, mixing noun_verb (mc_mappings_search) with verb_noun (mc_list_versions), and some are just nouns (mc_mixin). Still, the naming is clear and predictable overall.

    Tool Count5/5

    With 16 tools, the server's scope is well-scoped for a modding knowledge assistant. Each tool covers a distinct functional area without unnecessary bloat. The count feels appropriate for the domain, allowing both depth and breadth without overwhelming the user.

    Completeness4/5

    The tool set covers major modding tasks: version info, documentation, event handling, build scripts, scaffolding, mappings, mixins, and common pitfalls. Minor gaps exist (e.g., no dedicated tool for registry names or mod metadata), but these are often accessible via lookup or scaffold tools. Overall, the surface is quite complete for the server's purpose.

    Related MCP Connectors