A Model Context Protocol (MCP) server that connects AI assistants to Sonatype's dependency management and security intelligence platform. Empower your AI coding assistant with real-time insights into open source security vulnerabilities, license compliance, and dependency health.
The Sonatype MCP Server enables AI assistants to access Sonatype's comprehensive dependency intelligence directly within your development workflow. By integrating with the Model Context Protocol, your AI assistant can help you make informed decisions about dependencies, identify security risks, and maintain compliance — all without leaving your IDE.
- Component Version Selection - Select the best version the first time, without the side quest
- Security Vulnerability Scanning - Identify known vulnerabilities in your project dependencies
- License Compliance Checking - Ensure your dependencies meet your organization's license policies
- Dependency Health Analysis - Get insights into dependency quality, maintenance status, and risk factors
- Real-time Security Advisories - Stay informed about the latest security threats affecting your dependencies
- Remediation Guidance - Receive actionable recommendations to fix vulnerabilities and compliance issues
- For IDEs or tools that only support stdio MCP servers (like IntelliJ), install
mcp-remote:npm install -g mcp-remote
The Sonatype MCP Server runs as a remote MCP server. Choose the setup instructions for your IDE or AI assistant:
{
"mcpServers": {
"discoveredServer": {
"httpUrl": "https://mcp.guide.sonatype.com/mcp"
}
}
}Add the server using the Claude CLI:
claude mcp add --transport http --scope user sonatype-mcp https://mcp.guide.sonatype.com/mcpAdd the following configuration to your global VS Code mcp.json or create a .vscode/mcp.json file in your workspace:
{
"servers": {
"sonatype-mcp": {
"url": "https://mcp.guide.sonatype.com/mcp",
"type": "http"
}
}
}Create or edit ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"sonatype-mcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.guide.sonatype.com/mcp"
]
}
}
}Global Scope: Go to IDE settings → Tools → Junie → MCP Settings. Click "+" and add:
Project Scope: Create .junie/mcp/.mcp.json in your project root:
{
"mcpServers": {
"sonatype-mcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.guide.sonatype.com/mcp"
]
}
}
}Create or edit ~/.kiro/settings/mcp.json:
{
"mcpServers": {
"sonatype-mcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.guide.sonatype.com/mcp"
]
}
}
}Cursor supports remote servers directly. Add to your ~/.cursor/mcp.json:
{
"mcpServers": {
"sonatype-mcp": {
"type": "http",
"url": "https://mcp.guide.sonatype.com/mcp"
}
}
}Create or edit ~/.codex/config.toml:
[mcp_servers.sonatype-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.guide.sonatype.com/mcp"]
startup_timeout_ms = 20000The Sonatype MCP Server uses OAuth 2.0 for secure authentication:
- When you first connect to the server through your AI assistant, you'll be prompted to authenticate
- You'll be redirected to the Sonatype authentication page
- Log in or sign up
- Grant the necessary permissions for the MCP server
- You'll then be redirected to your IDE or assistant with an active session
Your authentication token is securely stored and automatically refreshed as needed.
To maximize the effectiveness of the Sonatype MCP Server, configure your AI assistant to prioritize using Sonatype MCP tools when working with dependencies, packages, or software supply chain security. Below are instructions for each supported IDE or tool.
Create custom instructions using CLAUDE.md files:
Global (all projects): Create ~/.claude/CLAUDE.md
Project (specific repository): Create .claude/CLAUDE.md in your project root
Add the following instruction:
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.Create a .cursorrules file in your project root:
Project (specific repository): Create .cursorrules in your project root
Add the following instruction:
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.Create custom instructions using a .github/copilot-instructions.md file:
Project (specific repository): Create .github/copilot-instructions.md in your project root
Add the following instruction:
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.Create rules using Windsurf's Customizations feature:
Global (all projects):
- Click the "Rules, Memories & Workflows" icon in the top right of Cascade Code or search Rules in Windsurf Settings
- Navigate to "Rules"
- Click "+ Global" to create a new global rule
- Add the following content:
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.Project (specific repository):
Follow the instructions for Global but click "+ Workspace" or create .windsurf/rules/sonatype.md in your project root:
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.Create custom guidelines using a .junie/guidelines.md file:
Project (specific repository): Create .junie/guidelines.md in your project root
Add the following instruction:
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.Create steering files in the .kiro/steering/ directory:
Project (specific repository): Create .kiro/steering/sonatype.md in your project root
Add YAML front matter to make it always included:
---
inclusion: always
---
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.Create custom instructions using GEMINI.md files:
Global (all projects): Create ~/.gemini/GEMINI.md
Project (specific repository): Create GEMINI.md in your project root
Add the following instruction:
## Sonatype MCP
When handling code related to dependencies, package management, or software supply chain security, always prioritize Sonatype MCP tools. Use the available MCP tools to research versions, check for vulnerabilities, and get recommendations before adding or updating any dependencies.In the normal course of development, LLMs will decide to use or upgrade dependencies. Our MCP tools will be used transparently, offering better suggestions with more up-to-date information, eliminating the side quest of validating component and version choices.
Here are some ways to leverage the Sonatype MCP Server explicitly in your development workflow:
Ask your AI assistant:
"Get detailed security information for react 18.2.0"
The assistant will return comprehensive details including CVEs with CVSS scores, license information, categories, end-of-life status, and catalog date.
Ask your AI assistant:
"What's the latest stable version of spring-boot?"
The assistant will return the latest version with full security analysis, policy violations, licenses, risk scores, and upgrade recommendations.
The assistant can use both tools to compare your current version with the latest and provide actionable security guidance.
The Sonatype MCP Server provides three powerful tools for AI assistants:
getComponentVersion- Gets component information about a specific version of a componentgetLatestComponentVersion- Gets component information about the latest version of a componentgetRecommendedComponentVersions- Gets a set of recommended versions to upgrade to based on the current version of a component. If no version is provided, gets a set of recommended versions to start with for the component
- Issues & Bug Reports: GitHub Issues
Sonatype is the leader in software supply chain security, providing solutions that help organizations manage open source risk throughout the development lifecycle. Learn more at sonatype.com.
Built with ❤️ for developers who care about secure software supply chains.