tersePrompts/jarp-mcp
FreeJava Archive Reader Protocol - 为 AI 代理提供对 Maven 依赖中反编译 Java 代码的即时访问,如同为 AI 装上"X 光透视眼"。
About tersePrompts/jarp-mcp
JARP-MCP (Java Archive Reader Protocol) is an MCP server that gives AI agents X-ray vision into compiled Java code. It decompiles any class from Maven or Gradle dependencies in seconds, eliminating the need for manual decompilation and guesswork. The tool bundles the CFR 0.152 decompiler, supports zero-setup execution via npx, and integrates with AI editors like Claude, Cursor, Windsurf, and Cline. It provides three MCP tools: scan_dependencies (scans project dependencies and builds a class-to-JAR index), decompile_class (returns full Java source for any class), and analyze_class (analyzes class structure, methods, fields, inheritance). Designed to solve the problem of AI agents hallucinating method signatures and parameters for compiled Java code, JARP-MCP improves answer accuracy from ~60% to 100% and reduces inspection time from 5-10 minutes to 2 seconds.
Key Features
Pros & Cons
- Instant decompilation (2 seconds) eliminates manual JD-GUI workflow
- 100% accurate source code vs ~60% guessing by AI agents
- Zero setup – runs directly via npx with no configuration files
- Works with multiple AI editor ecosystems (Claude, Cursor, Windsurf, Cline)
- Completely free and open source under Apache-2.0 license
- Only supports Java projects using Maven or Gradle build systems
- Requires Node.js 16+ and network access to download the npx package on first run
- Cannot decompile obfuscated or proprietary JARs that CFR cannot handle
- Analysis limited to local dependency JARs; no support for remote repositories