Harbor MCP Server
Read-only access to Harbor: projects, artifacts, vulnerabilities, robots, replication, agent skills.
Harbor scores 42 (Fair), licensed Apache-2.0 and written in Go. It installs as a local process. It declares 3 tools. Filed under Developer tools. GitHub shows 1 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
42 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: apache-2.0.
License, quality and maintenance
Where the 42 comes from
0 + 20 + 1 + 10 + 4 + 7 = 42. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "oreondev-harbor-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/oreondev/harbor-mcp:0.2.1" ], "env": { "HARBOR_URL": "", "HARBOR_USERNAME": "", "HARBOR_PASSWORD": "YOUR_HARBOR_PASSWORD", "HARBOR_INSECURE_SKIP_VERIFY": "false", "HARBOR_MCP_RATE": "10" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
HARBOR_URL | Required | Harbor base URL, for example https://harbor.example.com |
HARBOR_USERNAME | Required | Harbor user or robot account; a read-only system robot is recommended |
HARBOR_PASSWORDSecret | Required | Password or robot secret |
HARBOR_INSECURE_SKIP_VERIFY | Optional | Set to true to skip TLS verification of Harbor |
HARBOR_MCP_RATE | Optional | Requests per second to Harbor |
Tools3Tool docs quality grade C
All capabilitiesthe vulnerabilities of one artifact, worst first
installs a skill into HARBORMCPSKILLSDIR (registered only when that is set)
Harbor version, authentication mode, and the user or robot the server acts as
About
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.
Tools
| Tool | Answers |
|---|---|
harbor_system_info | Harbor version, authentication mode, and the user or robot the server acts as |
harbor_list_projects, harbor_get_project | projects; quota, CVE allowlist, retention and immutability of one |
harbor_list_repositories, harbor_list_artifacts | repositories; artifacts with tags, size, push and pull times and scan summary |
harbor_get_vulnerabilities | the vulnerabilities of one artifact, worst first |
harbor_list_members, harbor_list_robots | who has access: members with roles, robot accounts with permissions and expiry |
harbor_list_registries, harbor_list_replications | replication endpoints and policies, with the last run |
harbor_list_webhooks, harbor_get_gc | webhook policies; the garbage collection schedule |
harbor_list_skills, harbor_get_skill | agent skills stored in a project as OCI artifacts; one skill's SKILL.md and files, digest and signature status |
harbor_install_skill | installs a skill into HARBOR_MCP_SKILLS_DIR (registered only when that is set) |
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/robots
Harbor 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_URL | Harbor base URL, for example https://harbor.example.com (required) |
HARBOR_USERNAME, HARBOR_PASSWORD | the robot name and secret (required) |
HARBOR_CA_FILE | extra CA bundle (PEM) for Harbor's certificate |
HARBOR_INSECURE_SKIP_VERIFY | true to skip TLS verification of Harbor |
HARBOR_MCP_RATE | requests per second to Harbor, default 10 |
HARBOR_MCP_HTTP_TOKEN | bearer token for HTTP mode |
HARBOR_MCP_SKILLS_DIR | absolute path of a skills directory, for example /home/me/.claude/skills; registers harbor_install_skill, which installs skills there |
HARBOR_MCP_SKILLS_REQUIRE_SIGNED | false to also install skills without a cosign signature; default true |
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.1 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.1
Claude 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.1"],
"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.1 -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.1 \
--certificate-identity-regexp '^https://github.com/oreondev/harbor-mcp/\.github/workflows/release\.yml@' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Maintainers
Maintained by Oreon IT. Issues and pull requests are welcome.
Security
Report vulnerabilities privately; see SECURITY.md.
Licence
Frequently asked questions
What is Harbor MCP Server?
Read-only access to Harbor: projects, artifacts, vulnerabilities, robots, replication, agent skills.
How do I install Harbor MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Harbor MCP Server runs locally from the Docker image ghcr.io/oreondev/harbor-mcp:0.2.1 with the command docker run -i --rm ghcr.io/oreondev/harbor-mcp:0.2.1.
Is Harbor MCP Server free and open source?
Yes. Harbor MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Harbor MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Harbor MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Harbor MCP Server provide?
Harbor MCP Server provides 3 tools: harbor_get_vulnerabilities, harbor_install_skill, and harbor_system_info. See the full tool list for descriptions and parameters.
How is Harbor MCP Server's trust score calculated?
Harbor MCP Server scores 42 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.
