
Nexus
io.github.addozhang由 GitHub 帳號 addozhang 發布v0.1.1更新於 Oct 24, 2026
Query Sonatype Nexus Repository (OSS/Pro) for Maven, Python, and Docker artifacts
概覽
唯讀 MCP 伺服器,讓助理查詢 Sonatype Nexus Repository Manager 3 中的 Maven、Python 與 Docker 成品。
- 可以做什麼
- 搜尋 Maven 成品並以分頁列出某個成品的所有版本,可依 group、artifact 與儲存庫篩選。搜尋 Python 套件並以分頁列出其版本。列出儲存庫中的 Docker 映像,並取得指定映像的所有標籤。六個工具全部只讀取 Nexus REST API,不提供建立、更新或刪除操作。
- 適用情境
- 當你使用自架的 Nexus Repository Manager 3(OSS 或 Pro),並希望助理在加入相依套件或部署前確認有哪些成品、套件或映像版本時適用。若只使用公開儲存庫或沒有 Nexus 執行個體,則不需要安裝。
- 執行需求
- 需要一個可透過網路存取的 Nexus Repository Manager 3.x 執行個體,以及對該儲存庫有讀取權限的 Nexus 帳號。伺服器是本地執行的 Python 套件(nexus-mcp-server)或 Docker 映像,監聽主機與連接埠(預設 0.0.0.0:8000),使用 SSE 或 streamable-http 傳輸。憑證透過 X-Nexus-Url、X-Nexus-Username 與 X-Nexus-Password 標頭逐次傳入,或使用 NEXUS_BASE_URL、NEXUS_USERNAME 與 NEXUS_PASSWORD。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Nexus,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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.
來源:README.md,提交 0c4a68a
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。