
How to add Maven Dependencies MCP Server to Cursor
Check Maven dependency versions and look up the latest releases from Maven Central in real time. Paste the config into ~/.cursor/mcp.json and restart Cursor.
Last updated June 14, 2026 · 33★ · stdio · no auth
Cursor config for Maven Dependencies MCP Server
npm install -g mcp-maven-deps{
"mcpServers": {
"maven-dependencies-mcp-server": {
"command": "npx",
"args": [
"mcp-maven-deps"
]
}
}
}Setup steps
- 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
- 2Paste the Maven Dependencies MCP Server config below into the "mcpServers" object.
- 3Fill in placeholder secrets, then save.
- 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
- 5Ask Cursor to use one of Maven Dependencies MCP Server's tools to confirm it's connected.
Before you start
- Node.js with npm/npx
- Internet access to Maven Central (repo1.maven.org)
What Maven Dependencies MCP Server can do in Cursor
get_latest_releaseRetrieves the latest stable release version of a Maven dependency. Excludes pre-release versions (alpha, beta, milestone, RC, snapshot) by default; set excludePreReleases=false to include them. Accepts a Maven coordinate string (groupId:artifactId[:version][:packaging][:classifier]).
check_maven_version_existsChecks if a specific version of a Maven dependency exists. The version can be provided either inside the dependency string or as a separate version parameter. Returns a boolean result.
list_maven_versionsLists Maven dependency versions in deploy order (most recent first), one per line, with optional pre-release filtering (excludePreReleases, default true) and depth control (depth, default 15, max 100).
Security
SSE transport can be bound to a remote host with --host=0.0.0.0, exposing the server over HTTP without authentication. Only do this on trusted networks.
Maven Dependencies MCP Server + Cursor FAQ
Where is the Cursor config file?
Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the Maven Dependencies MCP Server config there under the "mcpServers" key and restart the client.
Is Maven Dependencies MCP Server safe to use with Cursor?
SSE transport can be bound to a remote host with --host=0.0.0.0, exposing the server over HTTP without authentication. Only do this on trusted networks.
Where does the version data come from?
The server queries maven-metadata.xml directly on Maven Central (https://repo1.maven.org/maven2/<g>/<a>/maven-metadata.xml), the authoritative file Maven and Gradle consult during dependency resolution. It updates within seconds of a deploy, so results are never stale.
Are pre-release versions included by default?
No. By default tools exclude pre-releases (alpha, beta, milestone, RC, snapshot) so you get production-ready versions. Set excludePreReleases=false to include them.
Does it support transports other than stdio?
Yes. In addition to stdio (the default), it supports SSE (Server-Sent Events) over HTTP. You can run it with --port and optionally --host=0.0.0.0 for remote access.