loading…
Search for a command to run...
loading…
A Model Context Protocol (MCP) server for Sonatype Nexus Repository Manager that enables AI assistants to interact with Nexus repositories through a standardize
A Model Context Protocol (MCP) server for Sonatype Nexus Repository Manager that enables AI assistants to interact with Nexus repositories through a standardized interface.
A Model Context Protocol (MCP) server for Sonatype Nexus Repository Manager that enables AI assistants to interact with Nexus repositories through a standardized interface.
npm install -g @brianveltman/sonatype-mcp
Add to your claude_desktop_config.json:
{
"mcpServers": {
"sonatype-mcp": {
"command": "npx",
"args": [
"-y",
"@brianveltman/sonatype-mcp",
"--nexus-url", "http://localhost:8081",
"--nexus-username", "your-username",
"--nexus-password", "your-password"
]
}
}
}
To enable Firewall quarantine tools, add Firewall credentials:
{
"mcpServers": {
"sonatype-mcp": {
"command": "npx",
"args": [
"-y",
"@brianveltman/sonatype-mcp",
"--nexus-url", "http://localhost:8081",
"--nexus-username", "your-username",
"--nexus-password", "your-password",
"--firewall-url", "http://localhost:8070",
"--firewall-username", "firewall-user",
"--firewall-password", "firewall-password"
]
}
}
}
Add to your mcp.json:
{
"servers": {
"sonatype-mcp": {
"command": "npx",
"args": [
"-y",
"@brianveltman/sonatype-mcp",
"--nexus-url",
"http://localhost:8081",
"--nexus-username",
"your-username",
"--nexus-password",
"your-password"
],
"type": "stdio"
}
},
"inputs": []
}
{
"servers": {
"sonatype-mcp": {
"command": "npx",
"args": [
"-y",
"@brianveltman/sonatype-mcp",
"--nexus-url",
"http://localhost:8081",
"--nexus-username",
"your-username",
"--nexus-password",
"your-password",
"--firewall-url",
"http://localhost:8070",
"--firewall-username",
"firewall-user",
"--firewall-password",
"firewall-password"
],
"type": "stdio"
}
},
"inputs": []
}
nexus_list_repositories - List all repositories with filteringnexus_get_repository - Get repository detailsnexus_create_repository - Create proxy, hosted, or group repositories (write mode)nexus_update_repository - Update repository configuration (write mode)nexus_delete_repository - Delete repositories (write mode)nexus_search_components - Search components across repositoriesnexus_get_component - Get component detailsnexus_delete_component - Delete components (write mode)nexus_get_component_versions - List all versions of a componentnexus_upload_component - Upload components with assets to repositories (write mode)nexus_upload_asset - Upload individual assets to raw repositories (write mode)nexus_get_system_status - Get system health statusnexus_list_blob_stores - List blob store configurationsnexus_list_tasks - List scheduled tasksnexus_get_usage_metrics - Get usage metrics including total components and daily request counts (requires nexus:metrics:read privilege)nexus_generate_support_zip - Generate and optionally save a support zip file containing diagnostic information for troubleshootingfirewall_get_quarantined_components - Retrieve components quarantined by Sonatype Firewall policies (requires Firewall credentials)firewall_release_from_quarantine - Release components from Firewall quarantine by waiving policy violations (write mode, requires Firewall credentials)Once you have the MCP server configured, you can use natural language prompts with your AI assistant:
"Search for all components that depend on log4j and show me their versions.
Then check if any of them are using vulnerable versions."
"Find all snapshot artifacts older than 30 days in the maven-snapshots repository
and prepare a list for cleanup."
"Check if version 2.1.0 of our internal library 'com.company:core-utils'
exists in the releases repository, and if not, help me upload it."
"Show me which blob stores are consuming the most space and identify
the largest components in each repository."
"Generate a comprehensive support zip file including system information,
thread dumps, metrics, and log files, but exclude security information
for sharing with external support."
"Check all repositories for quarantined components, identify which policy
violations are causing the most quarantines, and provide a summary report
with recommendations for policy adjustments."
The MCP server enables complex, multi-step workflows:
You: "What Maven repositories do we have?"
AI: [Lists repositories using nexus_list_repositories]
You: "Show me the largest components in maven-releases"
AI: [Searches components and shows results with sizes]
You: "Upload version 1.2.0 of com.example:my-app to maven-releases"
AI: [Uses nexus_upload_component to upload the specified version]
You: "Check if the upload was successful"
AI: [Searches for the component to verify upload]
If you encounter permission errors:
When searching doesn't return expected results:
For upload problems:
"After our build completes, check if the new artifact version already exists
in the releases repository. If not, upload it and verify the upload succeeded."
"Generate a report of all third-party dependencies in our maven-central proxy,
grouped by organization, and highlight any with recent security advisories."
"Identify duplicate artifacts across repositories and suggest consolidation
opportunities to optimize storage usage."
git clone https://github.com/brianveltman/sonatype-mcp.git
cd sonatype-mcp
yarn install
yarn build
yarn dev
yarn test
{
"mcpServers": {
"sonatype-mcp": {
"command": "node",
"args": [
"/path-to/mcp-sonatype/build/index.js",
"--nexus-url",
"http://localhost:8081",
"--nexus-username",
"your-username",
"--nexus-password",
"your-password"
]
}
}
}
MIT License - see LICENSE file for details
For issues and questions:
Выполни в терминале:
claude mcp add sonatype-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.