Provides tools for interacting with Harbor container registry, enabling operations on projects, repositories, tags, and Helm charts such as listing, creating, and deleting resources.
Enables management of Helm charts within Harbor registry, including listing available charts, viewing chart versions, and deleting chart versions.
MCP Harbor
MCP Harbor is a Node.js application that provides a Model Context Protocol (MCP) server for interacting with Harbor container registry.
Table of Contents
Related MCP server: ShipStation API MCP Server
Features
MCP Server: Exposes tools for interacting with Harbor through the Model Context Protocol
Harbor Operations: Supports operations for projects, repositories, tags, and Helm charts
TypeScript: Written in TypeScript for better type safety and developer experience
Automated Tests: Comprehensive test suite for reliable functionality
Prerequisites
Before installing MCP Harbor, ensure you have:
Node.js 18.x or higher
npm 8.x or higher
Access to a Harbor registry instance
Git (for cloning the repository)
Installation
Clone the repository:
git clone https://github.com/nomagicln/mcp-harbor.gitNavigate to the project directory:
cd mcp-harborInstall dependencies:
npm installBuild the project:
npm run build
Usage
Command Line Arguments
The application accepts the following command line arguments:
Environment Variables
Instead of command line arguments, you can also use environment variables. Create a .env file in the root directory:
MCP Tools
The MCP server exposes the following tools:
Tool Name | Description | Parameters |
| List all projects in Harbor | None |
| Get project details by ID |
|
| Create a new project |
|
| Delete a project |
|
| List repositories in a project |
|
| Delete a repository |
|
| List tags in a repository |
|
| Delete a tag |
|
| List Helm charts |
|
| List chart versions |
|
| Delete chart version |
|
Development
Running in Development Mode
Running Tests
Project Structure
Troubleshooting
Common Issues
Connection Failed
Error: Unable to connect to Harbor instanceVerify HARBOR_URL is correct and accessible
Check network connectivity
Ensure Harbor instance is running
Authentication Failed
Error: Invalid credentialsVerify HARBOR_USERNAME and HARBOR_PASSWORD are correct
Check if user has required permissions
Build Errors
Error: TypeScript compilation failedRun
npm installto ensure all dependencies are installedCheck TypeScript version compatibility
Clear the
distdirectory and rebuild
Debug Mode
Enable debug mode by using the --debug flag or setting:
Support
For additional help:
Review the application logs
License
This project is licensed under the MIT License - see the LICENSE file for details.