Harbor MCP Server
Provides read-only tools for querying a running Harbor container registry, including projects and quotas, repositories and artifacts, vulnerability scan results, members and robot accounts, registries and replication policies, webhooks, and garbage collection status.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Harbor MCP Server show me vulnerabilities in the latest nginx artifact"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Harbor MCP server
A Model Context Protocol server for Harbor, the open-source container registry. It lets AI assistants such as Claude, Cursor and VS Code answer questions about a running Harbor: projects and quotas, repositories and artifacts, vulnerability scan results, robot accounts, replication health and garbage collection.
Documentation: https://www.oreonit.com/harbor-mcp/
This is an independent community project. It is not affiliated with or endorsed by the Harbor project or the CNCF; Harbor is a trademark of The Linux Foundation.
Status
Changes per release are in the release notes. The read tools work over stdio and streamable HTTP, and are tested against a fake Harbor, Harbor 2.15 on every pull request and Harbor 2.12 to 2.15 nightly, as an administrator and as the read-only robot below. The design is in docs/DESIGN.md.
Read-only towards Harbor: fourteen tools covering projects, repositories, artifacts, vulnerabilities, robots, members, registries, replication, webhooks, garbage collection and agent skills stored in Harbor. Write tools (scan, start replication, add a label, create a project) will come later, only with an explicit opt-in. No tool deletes anything in Harbor.
Opt-in skill install: with
HARBOR_MCP_SKILLS_DIRset,harbor_install_skillwrites a skill from Harbor into that directory on your machine, signed skills only by default.Secrets stay out of the conversation: Harbor credentials, robot secrets and webhook authorization headers never appear in tool results, logs or errors.
stdio for desktop clients, and streamable HTTP with a bearer token for running in a cluster.
A signed multi-arch image,
ghcr.io/oreondev/harbor-mcp, listed in the official MCP Registry asio.github.oreondev/harbor-mcp.Uses the Harbor client of harbor-resource-operator, the Kubernetes operator that manages Harbor projects, robot accounts and replication as code.
Related MCP server: Harbor MCP Server
Tools
Tool | Answers |
| Harbor version, authentication mode, and the user or robot the server acts as |
| projects; quota, CVE allowlist, retention and immutability of one |
| repositories; artifacts with tags, size, push and pull times and scan summary |
| the vulnerabilities of one artifact, worst first |
| who has access: members with roles, robot accounts with permissions and expiry |
| replication endpoints and policies, with the last run |
| webhook policies; the garbage collection schedule |
| agent skills stored in a project as OCI artifacts; one skill's |
| installs a skill into |
Pushing, signing and installing skills, and the extra pull permission reading them needs: docs/skills.md.
Set up a read-only Harbor identity
Run the server as a system robot account that can only read. docs/read-only-robot.json is the request body for Harbor's API, with the permissions the tools need (the end-to-end tests use the same file):
curl -u admin -H 'Content-Type: application/json' -d @docs/read-only-robot.json \
https://harbor.example.com/api/v2.0/robotsHarbor shows the secret once, in the response; the user name is robot$harbor-mcp. An administrator account also works, but gives the assistant more than it needs.
Use it
Configuration comes from environment variables; each except HARBOR_CA_FILE can instead be read from a file named by <NAME>_FILE, for mounted secrets:
Variable | Meaning |
| Harbor base URL, for example |
| the robot name and secret (required) |
| extra CA bundle (PEM) for Harbor's certificate |
|
|
| requests per second to Harbor, default 10 |
| bearer token for HTTP mode |
| absolute path of a skills directory, for example |
|
|
One-click install (the client asks for the URL and credentials, or you fill them in afterwards):
Claude Code, with the image (replace 0.2.0 with the latest release):
claude mcp add harbor -e HARBOR_URL=https://harbor.example.com -e 'HARBOR_USERNAME=robot$harbor-mcp' -e HARBOR_PASSWORD=... \
-- docker run -i --rm -e HARBOR_URL -e HARBOR_USERNAME -e HARBOR_PASSWORD ghcr.io/oreondev/harbor-mcp:0.2.0Claude Desktop, Cursor and other clients that read an mcpServers file:
{
"mcpServers": {
"harbor": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "HARBOR_URL", "-e", "HARBOR_USERNAME", "-e", "HARBOR_PASSWORD",
"ghcr.io/oreondev/harbor-mcp:0.2.0"],
"env": {
"HARBOR_URL": "https://harbor.example.com",
"HARBOR_USERNAME": "robot$harbor-mcp",
"HARBOR_PASSWORD": "..."
}
}
}
}Without Docker, download a binary from the releases (or go install github.com/oreondev/harbor-mcp/cmd/harbor-mcp@latest) and use harbor-mcp as the command.
The repository is also a Cursor plugin (.cursor-plugin/plugin.json): the server plus three skills for vulnerability triage, access audits and replication health, in skills/. See Connect a client.
HTTP mode
For a shared server, for example a Deployment next to Harbor, start it with -http and a token:
docker run -d -p 8080:8080 -e HARBOR_URL -e HARBOR_USERNAME -e HARBOR_PASSWORD -e HARBOR_MCP_HTTP_TOKEN \
ghcr.io/oreondev/harbor-mcp:0.2.0 -http :8080
claude mcp add --transport http harbor https://harbor-mcp.example.com/mcp -H "Authorization: Bearer $HARBOR_MCP_HTTP_TOKEN"MCP is served at /mcp and every request needs the token; GET /healthz is open for probes. Without a token the server only listens on a loopback address. Put TLS in front of it (an ingress or a mesh).
Verify the image
cosign verify ghcr.io/oreondev/harbor-mcp:0.2.0 \
--certificate-identity-regexp '^https://github.com/oreondev/harbor-mcp/\.github/workflows/release\.yml@' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comMaintainers
Maintained by Oreon IT. Issues and pull requests are welcome.
Security
Report vulnerabilities privately; see SECURITY.md.
Licence
Available Tools
14 toolsharbor_get_gcARead-onlyIdempotent
The garbage collection schedule and the outcome of the last garbage collection run.
Returns: cron, lastRun, nextRun, schedule, +1 more
harbor_get_projectBRead-onlyIdempotent
One project in detail: visibility, storage quota and usage, vulnerability and signing policies, CVE allowlist, and whether retention and immutability rules are set.
Inputs: project (required). Returns: id, name, owner, quota, +12 more
harbor_get_skillARead-onlyIdempotent
Read one agent skill from Harbor: its SKILL.md, the list of its files, digest, version and whether it is signed. Pass path to read one other text file of the skill. Needs pull permission on the project.
Inputs: project (required), repository (required), path, reference. Returns: name, path, files, digest, +6 more
harbor_get_vulnerabilitiesARead-onlyIdempotent
The vulnerabilities found in one artifact (by tag or digest), most severe first, at or above minSeverity (default High).
Inputs: project (required), reference (required), repository (required), limit, +1 more. Returns: note, scanned, scanner, matching, +4 more
harbor_list_artifactsARead-onlyIdempotent
List the artifacts (images, charts) of a repository, newest push first, with tags, size, labels and the result of the last vulnerability scan.
Inputs: project (required), repository (required), page, pageSize. Returns: page, items, total, pageSize
harbor_list_membersARead-onlyIdempotent
List the users and groups that are members of a project, with their roles.
Inputs: project (required), page, pageSize. Returns: page, items, total, pageSize
harbor_list_projectsARead-onlyIdempotent
List Harbor projects the server's user can see, optionally only those whose name contains query.
Inputs: page, query, pageSize. Returns: page, items, total, pageSize
harbor_list_registriesARead-onlyIdempotent
List the remote registries (endpoints) Harbor replicates to or from, with their health. Credentials are never shown.
Inputs: page, query, pageSize. Returns: page, items, total, pageSize
harbor_list_replicationsARead-onlyIdempotent
List replication policies with source, destination, trigger and the outcome of the last run.
Inputs: page, query, pageSize. Returns: page, items, total, pageSize
harbor_list_repositoriesARead-onlyIdempotent
List the repositories of a project, optionally only those whose name contains query.
Inputs: project (required), page, query, pageSize. Returns: page, items, total, pageSize
harbor_list_robotsARead-onlyIdempotent
List robot accounts with their permissions and expiry, optionally only those with access to project or whose name contains query. Harbor lists project robots per project, so without project this makes one Harbor request per project. Secrets are never shown.
Inputs: page, query, project, pageSize. Returns: page, items, total, pageSize
harbor_list_skillsARead-onlyIdempotent
List the agent skills stored in a project (OCI artifacts of type SKILL, one repository per skill): name, description, newest version and tags, and whether it is signed with cosign. Pages over the project's repositories; repositories without a skill are left out.
Inputs: project (required), page, query, pageSize. Returns: page, items, pageSize, repositoriesTotal
harbor_list_webhooksARead-onlyIdempotent
List the webhook policies of a project: events and target addresses. Authorization headers are never shown, only whether one is set.
Inputs: project (required), page, pageSize. Returns: page, items, total, pageSize
harbor_system_infoARead-onlyIdempotent
Harbor version, authentication mode and URLs, and the user or robot account the server acts as (with whether it is a Harbor administrator).
Returns: user, admin, robot, authMode, +3 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool targets a distinct resource (projects, repositories, artifacts, skills, members, robots, webhooks, replications, registries, GC, system info), and the descriptions explicitly disambiguate near-neighbors like list_repositories vs list_skills and list_artifacts (which carries scan results) vs get_vulnerabilities. The only mild overlaps are list_skills/get_skill versus the repository tools, since skills are stored as repositories, but the descriptions call this out clearly.
Thirteen of fourteen tools follow a strict harbor_verb_noun pattern (harbor_list_*, harbor_get_*), which is highly predictable. The two deviations are minor: harbor_system_info uses a noun phrase with no verb, and harbor_get_gc reads awkwardly as an abbreviation rather than a resource name.
Fourteen tools is well within the ideal range and each one maps to a distinct Harbor concept, with no filler or redundant duplicates. The list/get split is used economically rather than exposing a tool per field or per endpoint variant.
Read coverage is broad (projects, repos, artifacts, skills, vulnerabilities, members, robots, webhooks, replications, registries, GC, system info), but the surface is entirely read-only: there is no create/update/delete for projects, robots, webhooks, replication policies, or retention rules, and no scan-trigger or artifact-level get. An agent could inspect the registry thoroughly but cannot perform any lifecycle management, which is a notable gap for a registry administration server.
Maintenance
Related MCP Connectors
Read-only HopBase AI gateway tools: models, limits, docs search, balance and usage for your API key.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Read-only AI access to HAVN properties, leads, tasks, files, media, and analytics.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceEnables LLMs to search Docker Hub repositories, discover container images, and manage Docker Hub repositories and tags through natural language queries. Supports both public content access and authenticated operations with Docker Personal Access Tokens.171Apache 2.0- AlicenseNot gradedqualityDmaintenanceEnables AI models to interact with Harbor container registries to manage projects, repositories, and system configurations in real time. It provides a suite of tools for monitoring health, retrieving statistics, and performing searches across registry data.6MIT
- AlicenseAqualityDmaintenanceCP server for Harbor Registry — projects, repositories, artifacts, storage reports, cleanup candidates. Works with any Harbor 2.x instance.845 PyPI1MIT
- AlicenseNot gradedqualityCmaintenanceEnables interacting with a Harbor container registry through the Model Context Protocol, supporting operations for projects, repositories, tags, and Helm charts.1MIT