Harbor Registry MCP β projects, repos, artifacts, storage reports, cleanup (with dry-run).
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
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.
readOnlyHint: True; destructive ones (harbor_delete_*) carry destructiveHint: True so MCP clients ask for confirmation.harbor_delete_untagged, harbor_delete_old_artifacts) β the agent must pass dry_run=False to execute.harbor_list_artifacts surfaces scan status and counts if with_scan_overview is enabled.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)Requires Python 3.10+.
Or in .mcp.json:
Check:
| Variable | Required | Description |
|---|---|---|
HARBOR_URL | yes | Harbor URL (no trailing slash) |
HARBOR_USERNAME | yes | Harbor username β robot account recommended |
HARBOR_PASSWORD | yes | Password or robot token |
HARBOR_SSL_VERIFY | no | true/false. Default: true. |
einvy-pub"qa-assistant β keep latest 3"qa-assistant"qa-assistant/pgvector-rag, keep 1 latest"einvy-pub/my-image?"readOnlyHint: True β no confirmation needed.destructiveHint: True β clients should confirm.harbor_delete_untagged and harbor_delete_old_artifacts both default to dry_run=True; the agent must explicitly set dry_run=False to actually delete.harbor_cleanup_candidates is read-only β it only suggests candidates, never deletes.MIT Β© Mikhail Shchegolev
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/harbor-registry-mcp)<a href="https://allmcps.com/mcp/harbor-registry-mcp"><img src="https://allmcps.com/api/badge/harbor-registry-mcp?style=directory" alt="Harbor Registry MCP on AllMCPs" /></a>