MixinMCP
Extends IntelliJ's built-in MCP Server with tools for
Minecraft mod development, with the goal of improving mixin writing and inter-mod compatibility.
GitHub:
https://github.com/muon-rw/MixinMCP
For all features, you will also need the Gradle plugin - see https://github.com/muon-rw/MixinMCP#setup
Key features:
1. Broad-scoped search:
- Full type hierarchy: supertypes, subtypes, and all implementations of an interface or abstract class
- Find all overrides of a method, plus its original super-method declaration
- Call hierarchy: callers and callees of any method
- All references to a class, method, or field
- All
@Mixin classes targeting a given class method. Helps identify cross-mod conflicts
- Symbol search by name pattern, plus regex grep across all dependency sources
Regex search across your entire classpath including dependencies:
- Alternative tools have a central problem: You can not perform broad, text-based search like regex on files that aren't in your project's own source.
This is exactly the use case that Minecraft development (and mixin writing) needs so desperately - 100 other projects might be interacting with what you are, and you need to know what and how.
While other tools might be able to read individual files in Minecraft sources, loader or mod APIs, libraries, or other mods you've added for integration or compatibility, they don't have a good way to search through them.
- With this plugin, agents can easily scan the whole project dependency network on their own, including dependencies without published sources.
- Circumvents the need to manually copy and paste snippets into context, or for agents to find jars in your gradle cache and unzip/analyze them manually one by one.
2. Class/Method Bytecode lookup:
- Get the actual compiled bytecode for a given class or method
- Useful to find a precise target when writing mixins, especially for ordinals or synthetic lambdas
3. Reference-aware refactoring:
- Rename, safe-delete, move, inline, extract, change signatures, and move members, with every reference updated project-wide in one atomic operation
- Update non-compiled references: mixin config JSON entries,
mods.toml, ServiceLoader files, and javadoc links
- Conflicts are reported per file instead of just discarded. Most tools support a dry-run preview
4. Agent Skills for enhanced Mixin Writing (companion Claude Code & Antigravity plugins):
- Install once in Claude Code (
/plugin marketplace add muon-rw/MixinMCP, then /plugin install mixinmcp@mixinmcp) or Google Antigravity (agy plugin install https://github.com/muon-rw/MixinMCP/tree/2026.2+/antigravity-plugin)
- Improve compatibility of written mixins by favoring MixinExtras injectors which LLMs often hallucinate or fail to use in the first place
- Favor precise modification for the exact target for the task without workarounds, slices, or shift by's, thanks to MixinExtras' robust
@Expression annotation
5. Automatic Mappings lookup:
- Easily convert any class, method, or field name between SRG, Intermediary, Yarn, Mojmap, and obf
- Mappings are downloaded on demand (Mojang launcher meta, Fabric Maven, Forge/NeoForge Maven) and cached under
~/.cache/mixinmcp/mappings/
- This allows you to retrieve mapping data for (almost) any version or loader, even those not present in the current project
Setup
MixinMCP has two parts. You need both for full-classpath search to work:
- IntelliJ plugin: registers the
mixin_* tools on IntelliJ's built-in MCP Server.
- Gradle plugin: decompiles dependencies that don't publish sources so the search tools cover every JAR on your classpath.
Prerequisites: IntelliJ IDEA 2026.2+
1. Install the IntelliJ plugin
From IntelliJ: Settings → Plugins → Marketplace → search "MixinMCP" → Install
2. Enable IntelliJ's MCP Server
- Settings → Plugins → search "MCP Server" and confirm it's enabled. (Bundled by default on recent IntelliJ versions.)
- Settings → Tools → MCP Server → check Enable MCP Server.
3. Connect your MCP client
Use IntelliJ's Auto-Configure option for your client (or configure manually using the ip address), then restart the client. The auto-configured server name is usually user-jetbrains.
For Google Antigravity (agy CLI, Antigravity IDE, or Antigravity 2.0), run:
agy mcp add jetbrains http://127.0.0.1:64342/stream
(Or add "jetbrains": { "url": "http://127.0.0.1:64342/stream" } under "mcpServers" in ~/.gemini/config/mcp_config.json, using the port shown in Settings → Tools → MCP Server.)