Harbor

v0.2.1
io.github.oreondev/harbor-mcp Checked 1 hour ago Published 7 days ago

Read-only access to Harbor: projects, artifacts, vulnerabilities, robots, replication, agent skills.

Values you need

VariableWhat it is
HARBOR_URLrequired Harbor base URL, for example https://harbor.example.com
HARBOR_USERNAMErequired Harbor user or robot account; a read-only system robot is recommended
HARBOR_PASSWORDrequired secret Password or robot secret
HARBOR_INSECURE_SKIP_VERIFYoptional Set to true to skip TLS verification of Harbor Default: false
HARBOR_MCP_RATEoptional Requests per second to Harbor Default: 10

Docker discovery passed

Requires Docker

Run in a terminal
claude mcp add harbor-mcp -e 'HARBOR_PASSWORD=<HARBOR_PASSWORD>' -e 'HARBOR_URL=<HARBOR_URL>' -e 'HARBOR_USERNAME=<HARBOR_USERNAME>' -- docker run -i --rm -e HARBOR_PASSWORD -e HARBOR_URL -e HARBOR_USERNAME ghcr.io/oreondev/harbor-mcp:0.2.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "harbor-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HARBOR_PASSWORD",
        "-e",
        "HARBOR_URL",
        "-e",
        "HARBOR_USERNAME",
        "ghcr.io/oreondev/harbor-mcp:0.2.1"
      ],
      "command": "docker",
      "env": {
        "HARBOR_PASSWORD": "<HARBOR_PASSWORD>",
        "HARBOR_URL": "<HARBOR_URL>",
        "HARBOR_USERNAME": "<HARBOR_USERNAME>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "harbor-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HARBOR_PASSWORD",
        "-e",
        "HARBOR_URL",
        "-e",
        "HARBOR_USERNAME",
        "ghcr.io/oreondev/harbor-mcp:0.2.1"
      ],
      "command": "docker",
      "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-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HARBOR_PASSWORD",
        "-e",
        "HARBOR_URL",
        "-e",
        "HARBOR_USERNAME",
        "ghcr.io/oreondev/harbor-mcp:0.2.1"
      ],
      "command": "docker",
      "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-mcp]
command = "docker"
args = ["run", "-i", "--rm", "-e", "HARBOR_PASSWORD", "-e", "HARBOR_URL", "-e", "HARBOR_USERNAME", "ghcr.io/oreondev/harbor-mcp:0.2.1"]
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_get_gc, harbor_get_project, harbor_get_skill, harbor_get_vulnerabilities, harbor_list_artifacts, harbor_list_members, harbor_list_projects, harbor_list_registries, ….
  5. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json