
Harbor Registry Mcp
io.github.mshegolevPublished by GitHub account mshegolevv0.1.0Updated Oct 27, 2026
Harbor Registry MCP — projects, repos, artifacts, storage reports, cleanup (with dry-run).
The publisher's own server: Harbor Notes
Overview
MCP server for Harbor container registries: lets an assistant list projects, repos and artifacts, run storage reports, plan cleanup and delete artifacts.
- What you can do
- List projects, repositories and artifacts, including tags, sizes and scan status
- Produce a full project storage breakdown across repos and artifacts
- Suggest cleanup candidates such as untagged, never-pulled or old versions
- Delete a single artifact by tag or digest
- Bulk-delete untagged artifacts or keep only the N latest per repo, dry-run by default
- When to use it
- Useful for DevOps work on a Harbor 2.x registry, especially reclaiming disk space: auditing what images exist, seeing where storage goes, and cleaning up untagged or outdated artifacts with a dry-run first.
- Requirements
- Runs locally over stdio as a Python package (Python 3.10+, via uvx or pipx). Needs network access to a Harbor 2.x instance and the environment variables HARBOR_URL, HARBOR_USERNAME and HARBOR_PASSWORD; HARBOR_SSL_VERIFY is optional and defaults to true.
Installation
In SourceWeft
- Open Harbor Registry Mcp 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
harbor-registry-mcp
[PyPI] [Python] [License: MIT]
MCP server for Harbor Registry. Lets an LLM agent (Claude Code, Cursor, OpenCode, etc.) list projects, repositories and artifacts, run storage reports, find cleanup candidates, and delete untagged or old artifacts — all with safety rails (dry-run by default for bulk delete).
Python, FastMCP, stdio transport.
Works with any Harbor 2.x instance — SaaS or self-hosted / on-prem.
Why another Harbor MCP?
A couple of community Harbor MCPs exist (nomagicln/mcp-harbor, bupd/harbor-mcp-server) but they expose only the basic list/get endpoints. This one adds storage reports, cleanup candidates, delete untagged, and delete old artifacts with dry-run — the operations DevOps engineers actually need to reclaim disk space.
Design highlights
- Tool annotations — read-only tools get
readOnlyHint: True; destructive ones (harbor_delete_*) carrydestructiveHint: Trueso MCP clients ask for confirmation. - Dry-run by default on both bulk cleanups (
harbor_delete_untagged,harbor_delete_old_artifacts) — the agent must passdry_run=Falseto execute. - Structured output — every tool returns a typed payload (TypedDict) + a markdown summary.
- Structured errors — 401 / 403 / 404 / 429 / 5xx mapped to actionable hints.
- Pydantic input validation for every argument.
- Vulnerability snapshot —
harbor_list_artifactssurfaces scan status and counts ifwith_scan_overviewis enabled.
Features (8 tools)
Discovery & inspection
harbor_list_projects— projects with repo counts and visibilityharbor_list_repos— repositories in a projectharbor_list_artifacts— artifacts in a repository with tags/size/scan statusharbor_storage_report— full project storage breakdown (all repos × all artifacts)
Cleanup planning
harbor_cleanup_candidates— suggest what to delete (untagged, never-pulled, old versions)
Cleanup execution (destructive)
harbor_delete_artifact— delete a single artifact by tag or digestharbor_delete_untagged— delete all untagged artifacts in a project/repo (dry-run default)harbor_delete_old_artifacts— keep N latest per repo, delete the rest (dry-run default)
Installation
Requires Python 3.10+.
Configuration
Or in .mcp.json:
Check:
Environment variables
Example usage
- "Storage report for project
einvy-pub" - "Find cleanup candidates in
qa-assistant— keep latest 3" - "Delete all untagged artifacts in
qa-assistant" - "Dry-run delete of old artifacts in
qa-assistant/pgvector-rag, keep 1 latest" - "What's in
einvy-pub/my-image?"
Safety
- Read tools use
readOnlyHint: True— no confirmation needed. - Delete tools use
destructiveHint: True— clients should confirm. harbor_delete_untaggedandharbor_delete_old_artifactsboth default todry_run=True; the agent must explicitly setdry_run=Falseto actually delete.harbor_cleanup_candidatesis read-only — it only suggests candidates, never deletes.
Development
License
MIT © Mikhail Shchegolev
Source: README.md at commit 446fd5d
Tools
0Version history
1- v0.1.0LatestSep 16, 2026
Score
50% 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
Other Harbor integrations
Harbor Notes
my.harborOfficial publisher
Search, read, write and organize your notes and tasks in Harbor, an Evernote-compatible notes app.

Harbor AIops
Published by GitHub account AIops-tools
Governed Harbor container-registry operations: 39 audited MCP tools to inspect projects, artifacts, scans, GC and replication, plus guarded tag writes.

Harbor
Published by GitHub account oreondev
Read-only MCP server for a Harbor container registry, letting an assistant inspect projects, artifacts, vulnerabilities, robots and replication.

Harbor
Published by GitHub account 7jb28c9mtk-web
Remote Harbor MCP server that lets an assistant read your portfolio, program and project data and add tasks, risks and check-ins.

Agent Harbor pay-per-call tools
Published by GitHub account yandyman
Agent Harbor pay-per-call tools's hosted MCP server; no sign-in required; Streamable HTTP; 10 tools.