jarp-mcp
About
Java Archive Reader Protocol MCP server - Give AI agents X-ray vision into compiled Java code by decompiling JAR/WAR/EAR files and Maven/Gradle dependencies
Details
- Author
- terseprompts
- Categories
- Developer Tools, Other
Jump to
Setup
Install jarp-mcp in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/terseprompts/jarp-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
Java Archive Reader Protocol— Give AI agents X-ray vision into compiled Java code
Add this to your AI editor's MCP configuration:
{ "mcpServers": { "jarp-mcp": { "command": "npx", "args": ["-y", "jarp-mcp"] } } }
That's it.No installation. No configuration. CFR decompiler bundled.
What this enables:Your AI agent (Claude, Cursor, Windsurf, Cline, etc.) can now:
- Decompile any Java class from your dependencies
- Analyze class structure, methods, and fields
- Read actual source code instead of guessing
Restart your AI editor and try:"Show me the source code for JpaRepository"
AI agents like Claude, GPT-4, and Cursorcannot read compiled Java code. When working with Spring Boot, Maven, or any Java project:
"Show me how JpaRepository.saveAll() works"→ Agenthallucinatesthe method signature
"What parameters does this internal library function take?"→ Agentguesseswrong
"Why does this dependency throw this exception?"→ Agentcannot seethe source
Developers spend 5-10 minutes per classmanually decompiling with JD-GUI, copying source, and pasting into chat.
JARP-MCPgives AI agents instant access to decompiled Java source code from your Maven & Gradle dependencies.
┌─────────────┐ ┌──────────────────┐ ┌─────────────────┐ │ LLM Agent │ ───▶ │ JARP-MCP │ ───▶ │ Maven/Gradle │ │ (Claude/ │ │ (MCP Server) │ │ + .m2 Repo │ │ Cursor) │ │ │ │ │ └─────────────┘ └──────────────────┘ └─────────────────┘ │ ▼ ┌──────────────┐ │ CFR 0.152 │ │ Decompiler │ └──────────────┘
// In your AI assistant chat: "Scan my Spring Boot project and decompile JpaRepository"
- Scan all dependencies inpom.xml
- Find the JAR containingJpaRepository
- Decompile it using CFR
- Return the actual source code
Result:Accurate answers based on real code, not guesses.
JARP-MCP ├── Language: TypeScript 5.7 ├── Runtime: Node.js 16+ ├── Protocol: Model Context Protocol (MCP) ├── Decompiler: CFR 0.152 (bundled) ├── Build: tsc ├── Package: npm (zero-setup with npx) └── License: Apache-2.0
- Zero external dependencies— CFR decompiler bundled (2.2MB JAR)
- Smart path resolution— Works withnpx,npm install -g, local dev
- Maven & Gradle support— Parsespom.xmlandbuild.gradle
- Intelligent caching— First decompile ~2s, subsequent <100ms
- Auto-indexing— Builds class index on-demand if missing
No installation required. Everything is bundled.
git clone https://github.com/tersePrompts/jarp-mcp.git cd jarp-mcp npm install npm run build
Quick Setup— Works with any MCP-compatible AI editor:
{ "mcpServers": { "jarp-mcp": { "command": "npx", "args": ["-y", "jarp-mcp"] } } }
Create.claude/mcp-config.jsonin your Java project root:
{ "mcpServers": { "jarp-mcp": { "command": "npx", "args": ["-y", "jarp-mcp"] } } }
macOS:~/Library/Application Support/Claude/claude_desktop_config.json
Windows:%APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "jarp-mcp": { "command": "npx", "args": ["-y", "jarp-mcp"] } } }
{ "mcpServers": { "jarp-mcp": { "command": "npx", "args": ["-y", "jarp-mcp"] } } }
{ "mcpServers": { "jarp-mcp": { "command": "npx", "args": ["-y", "jarp-mcp"] } } }
- Open Postman → Settings → MCP Servers
- Add new server:
{ "name": "jarp-mcp", "command": "npx", "args": ["-y", "jarp-mcp"] }
{ "mcpServers": { "jarp-mcp": { "command": "npx", "args": ["-y", "jarp-mcp"] } } }
{ "mcpServers": { "jarp-mcp": { "command": "npx", "args": ["-y", "jarp-mcp"] } } }
Real-world:Spring Boot project with 156 dependencies, 12,458 classes
- Initial scan: 45 seconds
- Each class: ~1.5s first time, instant thereafter
- npm:https://www.npmjs.com/package/jarp-mcp
- GitHub:https://github.com/tersePrompts/jarp-mcp
- MCP Protocol:https://modelcontextprotocol.io
Works with any MCP client over STDIO— Claude, Cursor, Windsurf, Cline, Postman, and more.
- handsomestWei— Originaljava-class-analyzer-mcp-server
- Lee Benfield— CFR Decompiler
- Anthropic— Claude & MCP ecosystem
Built with ❤️ for the AI-powered development community
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Fast lightweight Java MCP server framework - Build Model Context Protocol servers with minimal boilerplate and full TypeScript SDK compatibility
A Java plugin that exposes the Jadx decompiler API over HTTP for interaction with MCP clients.
Specialized tools for analyzing and migrating Java applications from Java EE 8 (javax.) to Jakarta EE 9+ (jakarta.).
A Model Context Protocol (MCP) server for searching Java documentation. This server enables AI assistants to search and retrieve Java API documentation from JSON files.
Allows AI assistants to remotely drive the JetBrains debugger via MCP, including breakpoints, stepping, and variable inspection.
Resolves your Gradle project’s real classpath and returns Java source, method signatures, and class structure for any dependency class—using the version your build actually uses, not random files from ~/.gradle/caches.
Legacy Java to Microservices Refactoring
A community gateway to migrate legacy Jakarta EE monoliths into Spring Boot using AST parsing.
Search for and retrieve detailed information, including READMEs and metadata, for Maven packages from Maven Central.
Access real-time Maven Central intelligence for fast and accurate dependency information.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





