home / mcp / maven dependencies mcp server

Maven Dependencies MCP Server

Provides tools to verify Maven coordinates, check existence, and fetch latest or pre-release versions from Maven Central.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "bigsy-maven-mcp-server": {
      "command": "npx",
      "args": [
        "mcp-maven-deps",
        "--port=3000"
      ]
    }
  }
}

You can use the Maven Dependencies MCP Server to query Maven Central for dependency versions, verify coordinates, and explore version histories. It provides fast, programmatic access so your LLMs or tooling can stay up-to-date with stable releases and pre-releases as needed.

How to use

Launch the MCP server locally and connect to it from your MCP client. Use the server to get the latest stable or pre-release versions of Maven coordinates, check if a specific version exists, and list recent versions with optional filtering. You can run queries for full Maven coordinates (groupId:artifactId[:version][:packaging][:classifier]) and apply pre-release controls so you receive only production-ready versions by default. The server queries Maven Central in real time to return clean, parseable version strings and supports common build tooling formats.

How to install

Prerequisites: you need Node.js and npm installed on your system to run this MCP server.

# Install the Maven Dependencies MCP Server globally
npm install -g mcp-maven-deps

# Or run it directly with npx
npx mcp-maven-deps

Configuration and usage notes

To run the server with standard input/output communication (stdio), you will start it from a command like the following. You can also enable port-based Server-Sent Events (SSE) transport if you need HTTP-based communication with remote access.

# Start via npx to use the MCP server directly (stdio transport)
npx mcp-maven-deps

# Start on a specific port using SSE (example)
npx mcp-maven-deps --port=3000

Handling dependencies and versions

Use the available actions to retrieve versions, verify coordinates, and list versions with optional pre-release filtering. By default, pre-releases are excluded to prioritize stable releases, but you can include pre-releases when needed.

Available tools

get_latest_release

Retrieves the latest stable release version of a Maven dependency. By default, pre-release versions are excluded to ensure production-ready results.

check_maven_version_exists

Checks whether a specific version of a Maven dependency exists, with the version optionally provided separately from the dependency string.

list_maven_versions

Lists Maven dependency versions sorted by last updated date, with optional filtering for pre-releases and depth control.