maven-decoder-mcp
by salitaba·★ 18·Score 45
An MCP server for analyzing Maven jar files, extracting source code, and resolving dependencies in Java projects.
Overview
The maven-decoder-mcp server provides comprehensive tools for Java AI coding agents to inspect, search, and decompile Maven .m2 JARs. It offers deep inspection capabilities including metadata extraction, dependency tree analysis, source code extraction, and class information retrieval. The server supports multiple Java decompilers and provides intelligent pagination and summarization for large responses.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this MCP server when working with Java projects and need AI agents to understand, search, and analyze Maven dependencies and their source code.
When NOT to choose this
Not suitable for non-Java projects or when you need to analyze dependencies in remote repositories (only works with local ~/.m2 repository).
Tools this server exposes
12 tools extracted from the READMElist_artifactsList artifacts in Maven repository with filtering
analyze_jarAnalyze jar file structure and contents
extract_class_infoGet detailed information about Java classes
get_dependenciesRetrieve Maven dependencies from POM files
search_classesSearch for classes across all jars
extract_source_codeDecompile and extract Java source code
extract_jar_resourceExtract text resources such as .proto files, services, and metadata
compare_versionsCompare different versions of artifacts
get_dependency_treeGet complete dependency tree
find_dependentsFind artifacts that depend on a specific artifact
get_version_infoGet all available versions of an artifact
extract_method_infoExtract specific method information from Java classes
Comparable tools
Installation
Installation
One-Line Install (Recommended)
curl -fsSL https://raw.githubusercontent.com/salitaba/maven-decoder-mcp/main/install.sh | bashUsing uvx
# Install uv (if not installed)
curl -Ls https://astral.sh/uv/install.sh | sh
# Ensure your shell PATH is updated
# Run the server via uvx
uvx maven-decoder-mcpUsing npm
npm install -g maven-decoder-mcp
maven-decoder-mcpDocker
docker run --rm -it \
-v ~/.m2:/home/mcpuser/.m2 \
-v $(pwd):/workspace \
ali79taba/maven-decoder-mcp:latestClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"maven-decoder": {
"command": "uvx",
"args": ["maven-decoder-mcp"]
}
}
}FAQ
- What decompilers are supported?
- The server supports CFR, Fernflower, Procyon, and javap for analyzing bytecode when source jars are unavailable.
- How do I handle large responses?
- The server automatically implements pagination for responses exceeding 50KB and provides summarization for large text content.
Compare maven-decoder-mcp with
Last updated · Auto-generated from public README + GitHub signals.