Harbor MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HARBOR_URL | Yes | Harbor base URL, for example https://harbor.example.com | |
| HARBOR_CA_FILE | No | Extra CA bundle (PEM) for Harbor's certificate | |
| HARBOR_MCP_RATE | No | Requests per second to Harbor, default 10 | 10 |
| HARBOR_PASSWORD | Yes | The Harbor robot account secret used to authenticate to Harbor | |
| HARBOR_USERNAME | Yes | The Harbor robot account name, for example robot$harbor-mcp, used to authenticate to Harbor | |
| HARBOR_MCP_HTTP_TOKEN | No | Bearer token for HTTP mode | |
| HARBOR_INSECURE_SKIP_VERIFY | No | Set to true to skip TLS verification of Harbor |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools for one Harbor container registry, through its REST API v2.0. Start with harbor_system_info to see the Harbor version and the identity the server runs as; its permissions limit what the other tools can see. Lists are paged: pass page and pageSize (at most 100) and read total in the result.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| harbor_get_gcA | The garbage collection schedule and the outcome of the last garbage collection run. |
| harbor_get_projectB | One project in detail: visibility, storage quota and usage, vulnerability and signing policies, CVE allowlist, and whether retention and immutability rules are set. |
| harbor_get_skillA | 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. |
| harbor_get_vulnerabilitiesA | The vulnerabilities found in one artifact (by tag or digest), most severe first, at or above minSeverity (default High). |
| harbor_list_artifactsA | List the artifacts (images, charts) of a repository, newest push first, with tags, size, labels and the result of the last vulnerability scan. |
| harbor_list_membersA | List the users and groups that are members of a project, with their roles. |
| harbor_list_projectsA | List Harbor projects the server's user can see, optionally only those whose name contains query. |
| harbor_list_registriesA | List the remote registries (endpoints) Harbor replicates to or from, with their health. Credentials are never shown. |
| harbor_list_replicationsA | List replication policies with source, destination, trigger and the outcome of the last run. |
| harbor_list_repositoriesA | List the repositories of a project, optionally only those whose name contains query. |
| harbor_list_robotsA | 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. |
| harbor_list_skillsA | 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. |
| harbor_list_webhooksA | List the webhook policies of a project: events and target addresses. Authorization headers are never shown, only whether one is set. |
| harbor_system_infoA | Harbor version, authentication mode and URLs, and the user or robot account the server acts as (with whether it is a Harbor administrator). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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.