drio
Open app

MCP Harbor

Source

A mcp server for harbor

Catalog onlyCatalog onlySTDIO

Overview

MCP Harbor is a Node.js application that serves as a Model Context Protocol (MCP) server for interacting with the Harbor container registry, providing a REST API for various Harbor operations.

To use MCP Harbor, clone the repository, install dependencies, configure environment variables, build the project, and start the application. You can then interact with the REST API for Harbor operations.

  • MCP Server: Exposes tools for interacting with Harbor through the Model Context Protocol. - REST API: Provides RESTful endpoints for Harbor operations including projects, repositories, tags, and Helm charts. - Development Support: Includes tools for development and testing.
  1. Managing container images and repositories in Harbor.
  2. Automating project and repository management tasks.
  3. Integrating Harbor operations into CI/CD pipelines.

Add to your AI client

Use these steps to connect MCP Harbor in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-harbor-nomagicln": {
      "command": "npx",
      "args": [
        "mcp-harbor",
        "--url",
        "<harbor url>",
        "--password",
        "<harbor password>"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-harbor-nomagicln": {
      "command": "npx",
      "args": [
        "mcp-harbor",
        "--url",
        "<harbor url>",
        "--password",
        "<harbor password>"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-harbor-nomagicln": {
      "command": "npx",
      "args": [
        "mcp-harbor",
        "--url",
        "<harbor url>",
        "--password",
        "<harbor password>"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-harbor-nomagicln": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "mcp-harbor",
        "--url",
        "<harbor url>",
        "--password",
        "<harbor password>"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-harbor-nomagicln": {
      "command": "npx",
      "args": [
        "mcp-harbor",
        "--url",
        "<harbor url>",
        "--password",
        "<harbor password>"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-harbor-nomagicln": {
      "command": "npx",
      "args": [
        "mcp-harbor",
        "--url",
        "<harbor url>",
        "--password",
        "<harbor password>"
      ]
    }
  }
}

FAQ

What is the purpose of MCP Harbor?

MCP Harbor facilitates interaction with the Harbor container registry through a structured API and protocol.

Is MCP Harbor easy to set up?

Yes! Follow the installation instructions to quickly set up the project.

Can I contribute to MCP Harbor?

Yes! Contributions are welcome, and you can find guidelines in the repository.