Maven Tools MCP Setup
Configuration for the Maven Tools MCP server, providing Maven Central dependency intelligence.
For the design rationale, see ADR-0007: Maven Central Search.
Overview
The maven-tools-mcp server provides AI assistants with Maven Central dependency intelligence.
It reads maven-metadata.xml files directly from Maven Central, which is faster and more reliable than using search APIs.
Key Features
-
Get latest or stable versions of dependencies
-
Check if specific versions exist
-
Bulk version checking for multiple dependencies
-
Compare versions with upgrade recommendations
-
Dependency age analysis (fresh/current/aging/stale)
-
Release pattern analysis and predictions
-
Project health scoring
Limitations
- Class name search
-
This MCP does not support finding which artifacts contain a specific class. For class search, use the alternative methods below.
Quick Start (Claude Code)
Add the MCP server using the Claude CLI:
claude mcp add maven-tools -- docker run -i --rm arvindand/maven-tools-mcp:latest
To verify the server was added:
claude mcp list
Manual Configuration
Claude Code (Project-Level)
Add to .mcp.json in your project root:
{
"mcpServers": {
"maven-tools": {
"command": "docker",
"args": ["run", "-i", "--rm", "arvindand/maven-tools-mcp:latest"]
}
}
}
Claude Desktop
Add to your Claude Desktop configuration file:
-
macOS:
~/Library/Application Support/Claude/claude_desktop_config.json -
Windows:
%APPDATA%\Claude\claude_desktop_config.json -
Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"maven-tools": {
"command": "docker",
"args": ["run", "-i", "--rm", "arvindand/maven-tools-mcp:latest"]
}
}
}
Restart Claude Desktop after adding the configuration.
Available Tools
| Tool | Description |
|---|---|
|
Get newest version of a dependency with stability preferences |
|
Verify if a specific version exists |
|
Check latest versions for multiple dependencies (bulk operation) |
|
Compare current vs latest with upgrade recommendations |
|
Classify dependencies as fresh/current/aging/stale |
|
Analyze maintenance activity and predict releases |
|
Version timeline with temporal analysis |
|
Comprehensive health analysis for multiple dependencies |
Example Queries
Image Variants
| Image Tag | Description |
|---|---|
|
Default with Context7 documentation integration |
|
Without Context7 (for restricted networks) |
Use the -noc7 variant if your network blocks access to mcp.context7.com.
Class Name Search Alternative
The maven-tools-mcp does not support class name search. For finding which artifacts contain a specific class, use one of these alternatives: