harbor-registry-mcp
v0.1.0Harbor Registry MCP — projects, repos, artifacts, storage reports, cleanup (with dry-run).
Starts only with mcp<2 (written for an older SDK); the install commands pin it.
Values you need
| Variable | What it is | |
|---|---|---|
HARBOR_URL | required | Harbor URL (e.g. https://harbor.example.com) |
HARBOR_USERNAME | required | Harbor username (robot account recommended for automation) |
HARBOR_PASSWORD | required secret | Harbor password or robot account token |
HARBOR_SSL_VERIFY | optional | Verify SSL certificates (true/false). Set to 'false' for self-signed certs. Default: true |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add harbor-registry-mcp -e 'HARBOR_PASSWORD=<HARBOR_PASSWORD>' -e 'HARBOR_URL=<HARBOR_URL>' -e 'HARBOR_USERNAME=<HARBOR_USERNAME>' -- uvx --with 'mcp<2' harbor-registry-mcp==0.1.0Add to
claude_desktop_config.json{
"mcpServers": {
"harbor-registry-mcp": {
"args": [
"--with",
"mcp<2",
"harbor-registry-mcp==0.1.0"
],
"command": "uvx",
"env": {
"HARBOR_PASSWORD": "<HARBOR_PASSWORD>",
"HARBOR_URL": "<HARBOR_URL>",
"HARBOR_USERNAME": "<HARBOR_USERNAME>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"harbor-registry-mcp": {
"args": [
"--with",
"mcp<2",
"harbor-registry-mcp==0.1.0"
],
"command": "uvx",
"env": {
"HARBOR_PASSWORD": "<HARBOR_PASSWORD>",
"HARBOR_URL": "<HARBOR_URL>",
"HARBOR_USERNAME": "<HARBOR_USERNAME>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "HARBOR_PASSWORD",
"id": "harbor-password",
"password": true,
"type": "promptString"
},
{
"description": "HARBOR_URL",
"id": "harbor-url",
"password": true,
"type": "promptString"
},
{
"description": "HARBOR_USERNAME",
"id": "harbor-username",
"password": true,
"type": "promptString"
}
],
"servers": {
"harbor-registry-mcp": {
"args": [
"--with",
"mcp<2",
"harbor-registry-mcp==0.1.0"
],
"command": "uvx",
"env": {
"HARBOR_PASSWORD": "${input:harbor-password}",
"HARBOR_URL": "${input:harbor-url}",
"HARBOR_USERNAME": "${input:harbor-username}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.harbor-registry-mcp]
command = "uvx"
args = ["--with", "mcp<2", "harbor-registry-mcp==0.1.0"]
env = { "HARBOR_PASSWORD" = "<HARBOR_PASSWORD>", "HARBOR_URL" = "<HARBOR_URL>", "HARBOR_USERNAME" = "<HARBOR_USERNAME>" }For AI agents
- Ask the user for: HARBOR_URL, HARBOR_USERNAME, HARBOR_PASSWORD. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: harbor_list_projects, harbor_list_repos, harbor_list_artifacts, harbor_storage_report, harbor_cleanup_candidates, harbor_delete_artifact, harbor_delete_untagged, harbor_delete_old_artifacts.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json