amalpotra/maven-mcp-server
MCP server for querying Maven Central. Search artifacts, look up versions, and generate dependency snippets for Java/Kotlin/Scala projects.
Platform-specific configuration:
{
"mcpServers": {
"maven-mcp-server": {
"command": "npx",
"args": [
"-y",
"maven-mcp-server"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
[](https://github.com/amalpotra/maven-mcp-server/actions/workflows/build.yml) [](https://nodejs.org/) [](https://www.typescriptlang.org/)
An MCP (Model Context Protocol) server that connects AI assistants to Maven Central — enabling them to search for libraries, look up versions, validate dependencies, and generate build-tool-specific snippets.
| Tool | Description | | ------------------------ | ------------------------------------------------------------- | | search_maven_artifacts | Search Maven Central by keyword | | list_maven_versions | List versions of an artifact (with pre-release filtering) | | get_latest_version | Get the latest stable or pre-release version with snippets | | check_version_exists | Verify a specific version exists on Maven Central | | get_artifact_info | Get full artifact metadata with recent versions and snippets |
Requires Node.js >= 22.0.0.
git clone https://github.com/AmarjeetMalpotra/maven-mcp-server.git
cd maven-mcp-server
npm install
npm run buildRun in production:
npm startRun in development (auto-reload via tsx):
npm run devAdd to claude_desktop_config.json:
{
"mcpServers": {
"maven": {
"command": "node",
"args": ["/absolute/path/to/maven-mcp-server/dist/index.js"]
}
}
}claude mcp add --transport stdio maven -- node /absolute/path/to/maven-mcp-server/dist/index.jsAdd to `~/.copilot/mcp
Loading reviews...