Harvester MCP Server

Harvester MCP Server

harvester-mcp-server•bystarbops

A Go implementation of an MCP server for Harvester HCI that lets AI assistants interact with Harvester clusters through the MCP protocol.

License: Apache License 2.0•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Exposes Kubernetes core resources including pods, deployments, services, namespaces, nodes and CRDs for listing and inspection.
  • •Exposes Harvester-specific resources such as virtual machines, images, volumes and networks.
  • •Translates natural language requests from AI assistants into Kubernetes operations on a Harvester cluster.
  • •Formats results into human-readable output optimized for LLM consumption.

BEST FOR

  • •Asking AI assistants to report on cluster nodes, such as how many nodes exist in a Harvester cluster.
  • •Listing pods within a specific namespace through natural language queries.
  • •Listing virtual machines and their details in a namespace.

ABOUT HARVESTER-MCP-SERVER

Harvester MCP Server is cataloged as an MCP server attributed to starbops. A Go implementation of an MCP server for Harvester HCI that lets AI assistants interact with Harvester clusters through the MCP protocol. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Harvester MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 2b85aab4b486 · 采集于 2026-11-13 10:42:45 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Harvester MCP Server

[!IMPORTANT] This is a community project and is not officially supported by Harvester. If you are looking for Harvester's officially supported MCP server, use harvester/harvester-mcp-server.

Model Context Protocol (MCP) server for Harvester HCI that enables Claude Desktop, Cursor, and other AI assistants to interact with Harvester clusters through the MCP protocol.

Overview

Harvester MCP Server is a Go implementation of the Model Context Protocol (MCP) specifically designed for Harvester HCI. It allows AI assistants like Claude Desktop and Cursor to perform CRUD operations on Harvester clusters, which are essentially Kubernetes clusters with Harvester-specific CRDs.

Workflow

The following diagram illustrates how Harvester MCP Server bridges the gap between AI assistants and Harvester clusters:

graph LR;
    subgraph "AI Assistants"
        A[Claude Desktop] --> C[MCP Client];
        B[Cursor IDE] --> C;
    end
    
    subgraph "Harvester MCP Server"
        C --> D[MCP Server];
        D --> E[Resource Handler];
        E --> F[Formatter Registry];
        F -->|Get Formatter| G[Core Resource Formatters];
        F -->|Get Formatter| H[Harvester Resource Formatters];
    end
    
    subgraph "Kubernetes / Harvester"
        G --> I[Kubernetes API];
        H --> I;
        I --> J[Harvester Cluster];
    end
    
    style A fill:#f9f,stroke:#333,stroke-width:2px;
    style B fill:#f9f,stroke:#333,stroke-width:2px;
    style D fill:#bbf,stroke:#333,stroke-width:2px;
    style J fill:#bfb,stroke:#333,stroke-width:2px;

How It Works

  1. LLM Integration: AI assistants like Claude Desktop and Cursor connect to Harvester MCP Server via the MCP protocol.
  2. Request Processing: The MCP Server receives natural language requests from the AI assistants and translates them into specific Kubernetes operations.
  3. Resource Handling: The Resource Handler identifies the resource type and operation being requested.
  4. Formatter Selection: The Formatter Registry selects the appropriate formatter for the resource type.
  5. API Interaction: The server interacts with the Kubernetes API of the Harvester cluster.
  6. Response Formatting: Results are formatted into human-readable text optimized for LLM consumption.
  7. User Presentation: Formatted responses are returned to the AI assistant to present to the user.

This architecture enables AI assistants to interact with Harvester clusters through natural language, making complex Kubernetes operations more accessible to users.

Features

  • Kubernetes Core Resources:

    • Pods: List, Get, Delete
    • Deployments: List, Get
    • Services: List, Get
    • Namespaces: List, Get
    • Nodes: List, Get
    • Custom Resource Definitions (CRDs): List
  • Harvester-Specific Resources:

    • Virtual Machines: List, Get
    • Images: List
    • Volumes: List
    • Networks: List
  • Enhanced User Experience:

    • Human-readable formatted outputs for all resources
    • Automatic grouping of resources by namespace or status
    • Concise summaries with the most relevant information
    • Detailed views for comprehensive resource inspection

Requirements

  • Go 1.23+
  • Access to a Harvester cluster with a valid kubeconfig

Installation

From Source

# Clone the repository
git clone https://github.com/starbops/harvester-mcp-server.git
cd harvester-mcp-server

# Build
make build

# Run
./bin/harvester-mcp-server

Using Go Install

go install github.com/starbops/harvester-mcp-server/cmd/harvester-mcp-server@latest

Configuration

The server automatically looks for Kubernetes configuration in the following order:

  1. In-cluster configuration (if running inside a Kubernetes cluster)
  2. Path specified by the --kubeconfig flag
  3. Path specified by the KUBECONFIG environment variable
  4. Default location at ~/.kube/config

Command-Line Flags

Usage:
  harvester-mcp-server [flags]

Flags:
  -h, --help                help for harvester-mcp-server
      --kubeconfig string   Path to the kubeconfig file (default is $KUBECONFIG or $HOME/.kube/config)
      --log-level string    Log level (debug, info, warn, error, fatal, panic) (default "info")

Examples

Using a specific kubeconfig file:

harvester-mcp-server --kubeconfig=/path/to/kubeconfig.yaml

Using the KUBECONFIG environment variable:

export KUBECONFIG=$HOME/config.yaml
harvester-mcp-server

With debug logging:

harvester-mcp-server --log-level=debug

Usage with Claude Desktop

  1. Install Claude Desktop
  2. Open Claude Desktop configuration file (~/Library/Application\ Support/Claude/claude_desktop_config.json or similar)
  3. Add the Harvester MCP server to the mcpServers section:
{
  "mcpServers": {
    "harvester": {
      "command": "/path/to/harvester-mcp-server",
      "args": ["--kubeconfig", "/path/to/kubeconfig.yaml", "--log-level", "info"]
    }
  }
}
  1. Restart Claude Desktop
  2. The Harvester MCP tools should now be available to Claude

Example Queries for Claude Desktop

Once your Harvester MCP server is configured in Claude Desktop, you can ask questions like:

  • "How many nodes are in my Harvester cluster?"
  • "List all pods in the cattle-system namespace"
  • "Show me the details of the pod named rancher-789c976c6-xbvmd in cattle-system namespace"
  • "List all virtual machines in the default namespace"
  • "What services are running in the harvester-system namespace?"

Development

Project Structure

  • cmd/harvester-mcp-server: Main application entry point
  • pkg/client: Kubernetes client implementation
  • pkg/cmd: CLI commands implementation using Cobra
  • pkg/mcp: MCP server implementation
  • pkg/kubernetes: Unified resource handlers for Kubernetes resources
  • pkg/tools: Legacy tool implementations for interacting with Harvester resources

Resource Handling

The project uses a unified approach to handle Kubernetes resources:

  1. The pkg/kubernetes/resources.go file contains a ResourceHandler that provides common operations for all resource types:

    • Listing resources with proper namespace handling
    • Getting resource details by name
    • Creating and updating resources
    • Deleting resources
  2. The pkg/kubernetes/formatters*.go files contain formatters for different resource types:

    • Each formatter converts raw Kubernetes objects into human-readable text
    • Resource-specific details are extracted and formatted in a consistent way
    • Custom formatters exist for both standard Kubernetes resources and Harvester-specific resources
  3. The pkg/kubernetes/types.go file maps friendly resource type names to Kubernetes GroupVersionResource objects:

    • Makes it easy to refer to resources by simple names in code
    • Centralizes resource type definitions

Adding New Tools

To add a new tool:

  1. If it's a new resource type, add it to pkg/kubernetes/types.go
  2. Implement formatters for the resource in one of the formatter files
  3. Register the tool in pkg/mcp/server.go in the registerTools method using the unified resource handler

Formatting Functions

Each resource type has two formatting functions:

  1. formatXList - Formats a list of resources with concise information, grouped by namespace
  2. formatX - Formats a single resource with detailed information

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Acknowledgments

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Harvester MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/harvester-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps