Skip to main content

The gateway for GenAI systems to interact with multiple Kubernetes clusters through the MCP

Project description

Multi-Cluster MCP server

The Multi-Cluster MCP Server provides a robust gateway for Generative AI (GenAI) systems to interact with multiple Kubernetes clusters through the Model Context Protocol (MCP). It facilitates comprehensive operations on Kubernetes resources, streamlined multi-cluster management, and delivered interactive cluster observability.

🚀 Features

🛠️ MCP Tools - Kubernetes Cluster Awareness

  • ✅ Retrieve resources from the hub cluster (current context)

  • ✅ Retrieve resources from the managed clusters

  • ✅ Connect to a managed cluster using a specified ClusterRole

  • ✅ Access resources across multiple Kubernetes clusters(via Open Cluster Management)

  • ❌ Retrieve and analyze metrics, logs, and alerts from integrated clusters

  • ❌ Interact with multi-cluster APIs, including Managed Clusters, Policies, Add-ons, and more

    alt text

    Mutiple Kubernetes Clusters Operations

    Watch the demo

📦 Prompt Templates for Open Cluster Management (Planning)

  • Provide reusable prompt templates tailored for OCM tasks, streamlining agent interaction and automation

📚 MCP Resources for Open Cluster Management (Planning)

  • Reference official OCM documentation and related resources to support development and integration

📌 How to Use

  • Use with MCP Inspector
mcp dev ./src/multicluster_mcp_server/__main__.py 

Configure the server using the following snippet:

{
  "mcpServers": {
    "multicluster-mcp-server": {
      "command": "uvx",
      "args": [
        "multicluster-mcp-server@latest"
      ]
    }
  }
}

Note: Ensure kubectl is installed. By default, the tool uses the KUBECONFIG environment variable to access the cluster. In a multi-cluster setup, it treats the configured cluster as the hub cluster, accessing others through it.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

multicluster_mcp_server-0.1.5.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

multicluster_mcp_server-0.1.5-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file multicluster_mcp_server-0.1.5.tar.gz.

File metadata

  • Download URL: multicluster_mcp_server-0.1.5.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.5.0

File hashes

Hashes for multicluster_mcp_server-0.1.5.tar.gz
Algorithm Hash digest
SHA256 81207a5787d959618b0c2e88ca0181477c9454120b951f4e5a2caaae3d5fda72
MD5 5cbc2ab36a8b476bbaa8d8dd5ec5de89
BLAKE2b-256 f1a2a3f2d50e8bbc7d4b29e8c0b2fb7103c563578edddec99af3ef0ca32b80da

See more details on using hashes here.

File details

Details for the file multicluster_mcp_server-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for multicluster_mcp_server-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 41fe529c87317072de0d7fdb649751ea55794e2a7b12428a0cc30136803a047e
MD5 46c8fbf2ff993815d4f20ea8431e2664
BLAKE2b-256 63c95358f0d58ff2623ffe2a0937c5c9b8d99d4e26f61117adb54c2632ab70dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page