Skip to main content
Glama

Maven MCP Server

License: MIT

MCP server for Maven Central - search artifacts, check versions, and analyze dependencies.

Installation

Prerequisites

You need to authenticate with GitHub Packages. See SETUP.md for detailed instructions.

Quick Setup

Add to your MCP settings (~/.cursor/mcp.json or ~/Library/Application Support/Claude/claude_desktop_config.json):

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

Note: Make sure you have configured GitHub Packages authentication before running this command.

Related MCP server: mvn-mcp-server

Tools

getLibraryVersions

Get all available versions for a Maven artifact.

{ "groupId": "org.springframework.boot", "artifactId": "spring-boot-starter" }

getLatestVersion

Get only the latest version.

{ "groupId": "org.springframework.boot", "artifactId": "spring-boot-starter" }

searchArtifacts

Search Maven artifacts by keyword.

{ "query": "spring-boot", "limit": 5 }

getDependencies

Get dependencies for a specific version.

{ "groupId": "org.springframework.boot", "artifactId": "spring-boot-starter", "version": "3.3.0" }

compareVersions

Compare dependencies between versions.

{ "groupId": "org.springframework.boot", "artifactId": "spring-boot-starter", "fromVersion": "3.2.0", "toVersion": "3.3.0" }

Features

  • Real-time data from Maven Central (no indexing delays)

  • Direct queries to maven-metadata.xml

  • Search, version lookup, and dependency analysis

Development

npm install
npm run build
node dist/index.js

Publishing

This package is automatically published to GitHub Packages when a new release is created. To publish manually:

npm run build
npm publish

Make sure you have the proper permissions in the @awin organization.

License

MIT - see LICENSE

Available Tools

5 tools
compareVersionsA

Compare dependencies between two versions

Inputs: groupId (required), toVersion (required), artifactId (required), fromVersion (required).

getDependenciesC

Get dependencies for a specific artifact version

Inputs: groupId (required), version (required), artifactId (required).

getLatestVersionC

Get only the latest version of an artifact

Inputs: groupId (required), artifactId (required).

getLibraryVersionsB

Get all available versions for a Maven library

Inputs: groupId (required), artifactId (required).

searchArtifactsC

Search for Maven artifacts by keyword

Inputs: query (required), limit, fetchRealLatest.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clear, distinct purpose: search for artifacts, get latest version, get all versions, get dependencies for a specific version, and compare dependencies between two versions. There is no overlap or ambiguity.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in camelCase (e.g., searchArtifacts, getLatestVersion). The naming is predictable and uniform across the set.

    Tool Count5/5

    With 5 tools, the server is well-scoped for Maven artifact operations. It covers essential tasks without being too sparse or bloated, making it easy for an agent to navigate.

    Completeness4/5

    The tool set covers core Maven artifact workflows: search, version listing, dependency retrieval, and version comparison. Missing are artifact metadata details (e.g., description, licenses) and transitive dependency analysis, but the surface is mostly complete for common use cases.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI to analyze Java classes from Maven project dependencies, with support for decompilation strategies and configurable groupId mappings.
      3
      8 npm
      5
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Provides Maven artifact version resolution with caching, logging, and pre-release filtering for Maven Central.
      1
      Apache 2.0