Maven Indexer MCP Server

MCP server for indexing local Maven repository

Local serverstdioGo

What is the Maven Indexer MCP Server?

MCP server for indexing local Maven repository

What it actually does

A Model Context Protocol (MCP) server that indexes your local Maven repository (~/.m2/repository) and Gradle cache ( ~/.gradle/caches/modules-2/files-2.1) to provide AI agents with tools to search for Java classes, method signatures, and source code.

  • Semantic Class Search — Search for classes by name or purpose
  • Inheritance Search — Find all implementations of an interface or subclasses of a class
  • On-Demand Analysis — Extracts method signatures and Javadocs directly from JARs
  • Source Code Retrieval — Provides full source code if available
  • Real-time Monitoring — Automatically updates the index when repositories change

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Maven Indexer MCP Server

{
  "mcpServers": {
    "maven-indexer": {
      "command": "npx",
      "args": [
        "-y",
        "maven-indexer-mcp@latest"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
MAVEN_REPOConfiguration value read at startup.Optional
GRADLE_REPO_PATHFilesystem location the server is allowed to use.Optional
INCLUDED_PACKAGESConfiguration value read at startup.Optional
MAVEN_INDEXER_CFR_PATHFilesystem location the server is allowed to use.Optional
VERSION_RESOLUTION_STRATEGYConfiguration value read at startup.Optional

Example prompts to try

  • “Use Maven Indexer MCP to Note.”
  • “Use Maven Indexer MCP to Examples.”
  • “Use Maven Indexer MCP to Input.”

Frequently asked questions

MCP server for indexing local Maven repository Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.