
Nexus
io.github.addozhangPublished by GitHub account addozhangv0.1.1Updated Oct 24, 2026
Query Sonatype Nexus Repository (OSS/Pro) for Maven, Python, and Docker artifacts
Overview
Read-only MCP server that lets an assistant query a Sonatype Nexus Repository Manager 3 instance for Maven, Python and Docker artifacts.
- What you can do
- Search Maven artifacts and list an artifact's versions with pagination, including group, artifact and repository filters. Search Python packages and list their versions with pagination. List Docker images in a repository and get the tags of a given image. All six tools only read from the Nexus REST API; no create, update or delete operations are offered.
- When to use it
- Useful when you work with a self-hosted Nexus Repository Manager 3 (OSS or Pro) and want an assistant to look up which artifact, package or image versions exist before adding a dependency or deploying. Not needed if you only use public registries or have no Nexus instance.
- Requirements
- A running Nexus Repository Manager 3.x instance reachable over the network, plus a Nexus account with read permission on the repositories. The server is a Python package (nexus-mcp-server) run locally, or a Docker image; it listens on a host and port (default 0.0.0.0:8000) using SSE or streamable-http transport. Credentials are supplied per request via the X-Nexus-Url, X-Nexus-Username and X-Nexus-Password headers, or via NEXUS_BASE_URL, NEXUS_USERNAME and NEXUS_PASSWORD.
Installation
In SourceWeft
- Open Nexus in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Nexus MCP Server
English | 简体中文
MCP (Model Context Protocol) server for Sonatype Nexus Repository Manager 3 (OSS and Pro), enabling AI assistants to query Maven, Python (PyPI), and Docker repositories.
Features
- Multiple transport modes - SSE (default) or streamable-http transport
- HTTP streaming transport - Modern SSE-based transport with header authentication
- Per-request authentication - Credentials passed via HTTP headers (no hardcoded secrets)
- Maven support - Search artifacts, list versions, get metadata
- Python support - Search packages, list versions, get metadata
- Docker support - List images, get tags, image metadata
- FastMCP framework - Fast, modern Python implementation
Compatibility
Supported Nexus versions:
- ✅ Nexus Repository Manager 3.x OSS (Open Source)
- ✅ Nexus Repository Manager 3.x Pro
This server uses the standard Nexus REST API v1 (/service/rest/v1), which is available in both OSS and Pro editions.
Available Tools
This MCP server provides 6 read-only tools for querying Nexus repositories:
📦 Maven Tools
🐍 Python/PyPI Tools
🐳 Docker Tools
Note: All tools are read-only and safe to use. No write operations (create/update/delete) are supported.
Installation
From Source
Using Docker
For detailed deployment guide, see DOCKER.md.
Configuration
Server Configuration
The server can be configured using command line arguments or environment variables:
Priority: CLI arguments > Environment variables > Default values
Transport Modes:
sse(default) - Server-Sent Events transport, compatible with most MCP clientsstreamable-http- Streamable HTTP transport for clients that prefer this protocol
Running the Server
Local Development
Using Docker
For detailed deployment guide, see DOCKER.md.
Authentication via HTTP Headers
Credentials are passed as HTTP headers with each request:
Note: Set X-Nexus-Verify-SSL: false when connecting to self-hosted Nexus instances with self-signed certificates.
MCP Client Configuration (Claude Desktop)
Add to your Claude Desktop configuration (~/.config/claude/claude_desktop_config.json):
For self-signed certificates:
MCP Client Configuration (Other Clients)
For other MCP clients that support HTTP transport:
MCP Tools
Maven Tools
Pagination example:
Python Tools
Pagination: Same pattern as Maven - check hasMore and use continuationToken for subsequent pages.
Docker Tools
Development
Running Tests
Type Checking
Linting
Project Structure
Troubleshooting
Connection Errors
- Verify the MCP server is running (
python -m nexus_mcp) - Check that port 8000 is accessible
- Verify
X-Nexus-Urlheader is correct and accessible - Check network connectivity to your Nexus instance
- Ensure HTTPS certificates are valid (or use HTTP for local instances)
Authentication Errors
- Verify
X-Nexus-UsernameandX-Nexus-Passwordheaders are correct - Ensure the user has read permissions on the repositories
- Check if the Nexus instance requires specific authentication methods
Missing Credentials Error
- Ensure all three headers are set:
X-Nexus-Url,X-Nexus-Username,X-Nexus-Password - Check that your MCP client supports HTTP headers
Empty Results
- Verify the repository name is correct
- Check that the package/artifact exists in Nexus
- For Python packages, try both hyphen and underscore naming
Transport Mode Issues
Connection timeout with streamable-http:
- Ensure your client supports streamable-http transport
- Try using SSE mode instead:
python -m nexus_mcp --transport sse - Check firewall rules allow HTTP connections
Tools not appearing:
- Both SSE and streamable-http expose the same tools
- Verify headers are correctly passed (X-Nexus-*)
- Check server logs for authentication errors
License
MIT
Contributing
Contributions welcome! Please run tests and linting before submitting PRs.
Source: README.md at commit 0c4a68a
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.