MCP server that indexes local Maven and Gradle caches so AI agents can search classes, implementations, method signatures, and source code from internal/private Java dependencies.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add maven-indexer -- npx -y maven-indexer-mcp@latest~/.codex/config.toml
[mcp_servers.maven-indexer]
command = "npx"
args = ["-y", "maven-indexer-mcp@latest"]
# codex mcp add maven-indexer -- npx -y maven-indexer-mcp@latest~/.cursor/mcp.json
{
"mcpServers": {
"maven-indexer": {
"command": "npx",
"args": [
"-y",
"maven-indexer-mcp@latest"
]
}
}
}.vscode/mcp.json
{
"servers": {
"maven-indexer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"maven-indexer-mcp@latest"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"maven-indexer": {
"command": "npx",
"args": [
"-y",
"maven-indexer-mcp@latest"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"maven-indexer": {
"command": "npx",
"args": [
"-y",
"maven-indexer-mcp@latest"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"maven-indexer": {
"command": "npx",
"args": [
"-y",
"maven-indexer-mcp@latest"
]
}
}
}