# Connect Harbor to Your AI Agent (Universal MCP)

> Use your AI to audit security, monitor compliance, and organize files in Harbor — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http harbor https://api.universalmcp.app/mcp/harbor`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/harbor` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "harbor", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: Harbor (Harbor a Series of LF Projects, LLC) | Category: Other B2B Software | Auth: Guided self-hosted connector setup | Deployment: self-hosted
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Registry repositories, Policy and retention, Pull and ticket actions; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/harbor | Guide: https://universalmcp.app/mcp/harbor
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (15 actions: 3 Read, 12 Write)
Perform over 10 actions across artifact management, image security, access control, replication & distribution, and deployment & administration. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Artifact Management (4):** Push Container Image (write), Pull Container Artifact (read), Browse Artifact Repositories (read), Delete Artifact Tag (write)
- **Image Security (4):** Trigger Image Scan (write), View Vulnerability Report (read), Sign Image Content (write), Enforce Security Policy (write)
- **Access Control (3):** Create Tenant Workspace (write), Assign Role Permissions (write), Connect Identity Provider (write)
- **Replication & Distribution (2):** Configure Registry Replication (write), Run Replication Job (write)
- **Deployment & Administration (2):** Install Harbor Instance (write), Run Harbor CLI Command (write)

## Example Prompts for Harbor
- **Image risk ranking:** "In Harbor, rank container images by critical and high CVE count across all projects in the registry."
- **Unsigned artifacts:** "List Harbor artifacts that lack a valid Cosign or Notary signature before deployment to production."
- **Retention candidates:** "Find Harbor image tags older than 90 days that have not been pulled in the last 60 days."
- **Draft rebuild ticket:** "Draft a Harbor remediation ticket for the base-python rebuild and hold it for approval before creating it."
