harbor-registry-mcp

v0.1.0
io.github.mshegolev/harbor-registry-mcp Checked 11 hours ago Published 7 months ago

Harbor 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

VariableWhat it is
HARBOR_URLrequired Harbor URL (e.g. https://harbor.example.com)
HARBOR_USERNAMErequired Harbor username (robot account recommended for automation)
HARBOR_PASSWORDrequired secret Harbor password or robot account token
HARBOR_SSL_VERIFYoptional 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.0
Add 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

  1. 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.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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.
  5. 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