Maven Decoder

v1.0.0Developer Toolsstable

MCP server for inspecting, searching, and decompiling Maven .m2 JARs for Java AI coding agents.

agentic-codingai-agentsbytecodecursor-idedecompiler
Share:
18
Stars
0
Downloads
0
Weekly
0/5

What is Maven Decoder?

Maven Decoder is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for inspecting, searching, and decompiling maven .m2 jars for java ai coding agents.

MCP server for inspecting, searching, and decompiling Maven .m2 JARs for Java AI coding agents.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP server for inspecting, searching, and decompiling Maven

Use Cases

Maven JAR inspection and decompiling
Java dependency analysis
salitaba

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 10, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx maven-decoder

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Maven Decoder

Maven Decoder MCP Server is a developer tool that lets AI coding agents inspect, search, and decompile JAR files from your local Maven .m2 repository. It exposes 14 tools covering dependency trees, class extraction, source code decompilation (via CFR, Fernflower, or Procyon), method-level introspection, version comparisons, and conflict detection. Java developers use it to give AI assistants like Claude deep knowledge of their third-party dependencies without manually extracting and sharing JAR contents.

Prerequisites

  • A populated Maven local repository at ~/.m2/repository (generated by running Maven builds)
  • Python 3.9+ with pip or uvx available, OR Docker installed for the container-based setup
  • Java Runtime Environment (JRE) 11+ for decompiler support
  • An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
1

Install Maven Decoder via the install script

The quickest way to install is using the provided shell script, which handles Python dependencies and sets up the server automatically.

curl -fsSL https://raw.githubusercontent.com/salitaba/maven-decoder-mcp/main/install.sh | bash
2

Alternative: run via uvx or Docker

If you prefer uvx for isolated Python execution, use the uvx command directly. For Docker, mount your local .m2 repository into the container.

# Via uvx:
uvx maven-decoder-mcp

# Via Docker:
docker run --rm -it -v ~/.m2:/home/mcpuser/.m2 ali79taba/maven-decoder-mcp:latest
3

Configure environment variables (optional)

Set optional environment variables to customize the server behavior such as the Maven home directory, log verbosity, response size limits, and pagination settings.

export MAVEN_HOME=~/.m2/repository
export MCP_LOG_LEVEL=INFO
export MCP_MAX_RESPONSE_SIZE=50000
export MCP_MAX_ITEMS_PER_PAGE=20
export MCP_MAX_TEXT_LENGTH=10000
export MCP_MAX_LINES=500
4

Add the server to your MCP client configuration

Register Maven Decoder in your MCP client config file. Point the command to uvx or the installed binary so your AI client launches it automatically.

{
  "mcpServers": {
    "maven-decoder": {
      "command": "uvx",
      "args": ["maven-decoder-mcp"],
      "env": {
        "MAVEN_HOME": "/Users/yourname/.m2/repository",
        "MCP_LOG_LEVEL": "INFO"
      }
    }
  }
}
5

Restart your MCP client and test the connection

Restart your AI client and confirm the 14 Maven Decoder tools are listed. Try a simple query like listing artifacts in a known group to verify the .m2 path is correct.

Maven Decoder Examples

Client configuration

Example claude_desktop_config.json entry for Maven Decoder using uvx with a custom Maven repository path.

{
  "mcpServers": {
    "maven-decoder": {
      "command": "uvx",
      "args": ["maven-decoder-mcp"],
      "env": {
        "MAVEN_HOME": "/Users/yourname/.m2/repository",
        "MCP_MAX_RESPONSE_SIZE": "50000",
        "MCP_MAX_ITEMS_PER_PAGE": "20"
      }
    }
  }
}

Prompts to try

Example prompts for Java developers using Maven Decoder with an AI assistant.

- "Show me all dependencies of org.springframework:spring-core:5.3.21"
- "Decompile the class com.example.MyService from my Maven repository"
- "Find all version conflicts in my Maven dependency tree"
- "List all artifacts in the com.fasterxml.jackson.core group"
- "Extract the method signatures from JsonParser in jackson-core 2.15.0"

Troubleshooting Maven Decoder

Server cannot find JARs in the .m2 repository

Set the MAVEN_HOME environment variable explicitly to your actual repository path (e.g. /Users/yourname/.m2/repository). The default assumes the standard location; non-standard Maven installs may have a different path.

Decompilation fails or returns garbled output

Ensure a JRE 11 or higher is installed and accessible in your PATH. The decompilers (CFR, Fernflower, Procyon) require a working Java runtime. Run 'java -version' to confirm.

Responses are truncated for large classes

Increase MCP_MAX_TEXT_LENGTH and MCP_MAX_LINES environment variables in your MCP config. Alternatively, use the extract_method_info tool to retrieve specific methods rather than the entire decompiled class.

Frequently Asked Questions about Maven Decoder

What is Maven Decoder?

Maven Decoder is a Model Context Protocol (MCP) server that mcp server for inspecting, searching, and decompiling maven .m2 jars for java ai coding agents. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Maven Decoder?

Follow the installation instructions on the Maven Decoder GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Maven Decoder?

Maven Decoder works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Maven Decoder free to use?

Yes, Maven Decoder is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "maven-decoder": { "command": "npx", "args": ["-y", "maven-decoder"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Maven Decoder?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides