Maven Indexer Mcp
@tangcent
关于 Maven Indexer Mcp
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.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"maven-indexer": {
"command": "npx",
"args": [
"-y",
"maven-indexer-mcp@latest"
]
}
}
}工具
5Search for Java classes in the local Maven repository and Gradle caches.
Decompile and read the source code of external libraries/dependencies. **Use this instead
Search for artifacts in Maven/Gradle caches by coordinate (groupId, artifactId).
Search for classes that implement a specific interface or extend a specific class.
Trigger a re-scan of the Maven repository.
概览
What is Maven Indexer Mcp?
This server 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. It is designed for developers who use AI assistants that may lack knowledge of internal company packages or less popular public libraries.
How to use Maven Indexer Mcp?
Add the provided JSON configuration to your MCP client: set the command to npx with args ["-y", "maven-indexer-mcp@latest"]. The server auto-detects your Maven repository and Gradle cache. Optionally, you can set environment variables (MAVEN_REPO, GRADLE_REPO_PATH, INCLUDED_PACKAGES, MAVEN_INDEXER_CFR_PATH) to customize repository paths or filter which packages are indexed.
Key features of Maven Indexer Mcp
- Semantic class search by name or purpose.
- Inheritance search for implementations or subclasses.
- On-demand analysis of method signatures and Javadocs from JARs.
- Source code retrieval when available.
- Real-time monitoring; automatically updates index on changes.
Use cases of Maven Indexer Mcp
- AI agent queries internal company library classes for usage.
- Developer checks version or methods of obscure public library dependency.
- Find all implementations of a specific interface in local dependencies.
- Retrieve source code of a class from JAR files for debugging.
FAQ from Maven Indexer Mcp
What does this server do vs alternatives?
It indexes local Maven/Gradle caches, allowing AI to search and read code from private or obscure libraries that are not public. Unlike general code search, it focuses on dependency code.
What are the runtime requirements?
Requires Node.js and npm to run via npx. It auto-downloads and runs the latest version. An optional CFR decompiler JAR can be specified.
Where does data live?
All data is local: the index is built from your local Maven repository (~/.m2/repository) and Gradle cache. No data is sent externally.
Are there any limits?
Only indexes local caches; does not fetch remote artifacts. Filtering is possible via the INCLUDED_PACKAGES environment variable.
What transport/auth is used?
Uses standard MCP protocol (stdio). No authentication needed as it operates on local files.
其他 分类下的更多 MCP 服务器
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
ghidraMCP
LaurieWiredMCP Server for Ghidra
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web

EverArt
modelcontextprotocolModel Context Protocol Servers
评论