Gene Library Courses Download Pricing Contact Sign in
sonatype logo
security Official Website

Sonatype MCP Server – Dependency Security Guidance

Sonatype MCP Server connects AI coding assistants and IDE agents to Sonatype Guide's open-source intelligence. It helps agents evaluate dependencies, identify vulnerable or non-compliant versions, and recommend safer upgrade paths before code is written or changed.

#dependencies#sca#security

Overview

Sonatype MCP Server is the official Model Context Protocol integration for Sonatype Guide. It gives AI coding assistants access to Sonatype's dependency intelligence so they can make better package and version choices while developers work in tools such as Claude Code, VS Code Copilot, Cursor, Windsurf, Kiro, Gemini Code Assist, IntelliJ Junie, and Codex.

The server is useful when an AI agent is adding dependencies, updating manifests, comparing package versions, or answering software supply chain questions. Instead of relying only on model training data, the agent can query Sonatype for current component metadata, security findings, license information, health signals, and recommended versions.

What the MCP server enables

Sonatype documents three MCP tools for AI assistants:

  • getComponentVersion retrieves information about a specific component version, including metadata such as release date, license, known vulnerabilities, and dependency relationships.
  • getLatestComponentVersion identifies the latest available version of a component and returns related security and quality context.
  • getRecommendedComponentVersions returns curated upgrade or starting-version recommendations based on the current version, or on the component alone when no current version is provided.

These tools support dependency research, vulnerability review, license compliance checks, and upgrade planning. They are designed for dependency-related requests rather than general repository automation.

When to use it

Use Sonatype MCP Server when an AI assistant is asked to add a new package, choose a package version, modernize a dependency manifest, explain whether a dependency is safe, or suggest a secure upgrade. For example, an agent can check a specific version of React, identify the latest stable Spring Boot release, or compare a current library version with recommended alternatives before editing a project file.

Connection and authentication

Sonatype runs the MCP server as a remote HTTP service at https://mcp.guide.sonatype.com/mcp. Authentication uses a Sonatype Guide personal API token sent as an Authorization: Bearer header. The token is created from a Sonatype Guide account and should be stored as a secret, for example in SONATYPE_GUIDE_MCP_TOKEN, rather than committed to source control.

For clients that support remote HTTP MCP servers, configure the server URL and bearer header directly. For IDEs or tools that only support stdio MCP servers, Sonatype documents using mcp-remote as a local bridge to the same hosted endpoint.

Key considerations

Sonatype states that the MCP server does not access repositories, scan source code, read local files, or collect intellectual property. The AI assistant sends dependency-related requests, such as component names and versions, and Sonatype returns security, version, and compliance information. Organizations should still treat dependency names and usage context as operational data and configure assistant rules so agents consult Sonatype MCP tools before adding or updating dependencies.

Supported Transports

streamable_http

URL: https://mcp.guide.sonatype.com/mcp

stdio

Command: npx

Args:

  • mcp-remote
  • https://mcp.guide.sonatype.com/mcp
  • --header
  • Authorization: Bearer ${SONATYPE_GUIDE_MCP_TOKEN}

Frequently Asked Questions

When should an AI agent use the Sonatype MCP Server?
Use it when the agent is selecting, adding, updating, or reviewing open-source dependencies and needs current Sonatype Guide intelligence about versions, vulnerabilities, licenses, component health, or safer upgrade options.
What does Sonatype MCP add to an AI coding assistant?
It adds live dependency intelligence through MCP tools so the assistant can check a specific component version, find the latest component version, and request recommended versions instead of relying only on static model knowledge.
What can the AI agent access through this MCP server?
The documented tools return dependency-focused information such as component metadata, release and license details, known vulnerabilities, dependency relationships, latest-version context, and recommended upgrade or starting versions. The server is not documented as a repository reader or source-code scanner.
How is authentication configured for Sonatype MCP Server?
Authentication uses a Sonatype Guide personal API token. The token is sent to `https://mcp.guide.sonatype.com/mcp` in the `Authorization: Bearer` header and should be stored securely, for example as `SONATYPE_GUIDE_MCP_TOKEN`, rather than hard-coded in project files.
Which transport should be used for Sonatype MCP Server?
Use the remote HTTP transport when the AI client supports hosted MCP servers. Use the documented `mcp-remote` stdio bridge only for clients or IDEs that require a local stdio command while still connecting to Sonatype's hosted MCP endpoint.