MCP.so
ログイン

Kubernetes MCP Server

@basebandit

Kubernetes MCP Server について

An MCP Server for Kubernetes

基本情報

カテゴリ

クラウドとインフラ

ライセンス

MIT

ランタイム

go

トランスポート

stdio

公開者

basebandit

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "kai": {
      "command": "docker",
      "args": [
        "pull",
        "cyclon/kai:v1.0.0"
      ]
    }
  }
}

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Kubernetes MCP Server?

Kubernetes MCP Server (Kai) is a Model Context Protocol server that exposes Kubernetes operations as MCP tools, letting LLM clients like Claude Desktop, Cursor, and Continue manage clusters through natural language.

How to use Kubernetes MCP Server?

Install via go install github.com/basebandit/kai/cmd/kai@latest or use the Docker image cyclon/kai:v1.0.0. By default it uses your current kubectl context. Configure with Claude Desktop, Cursor, or Continue by adding the server path to their MCP settings. Run with flags like -kubeconfig, -transport, -in-cluster, or -tls-cert to customize behavior.

Key features of Kubernetes MCP Server

  • Create, list, get, delete, and stream pod logs
  • Manage Deployments, Jobs, and CronJobs
  • Create, update, and delete Services and Ingresses with TLS
  • Manage ConfigMaps, Secrets, and Namespaces
  • Apply or delete raw YAML/JSON manifests, including CRDs
  • List, get, cordon, uncordon, and drain nodes; cluster health metrics

Use cases of Kubernetes MCP Server

  • List and describe pods, deployments, and services in a namespace
  • Create a deployment with specified replicas and image
  • Retrieve logs from a specific pod
  • Delete a service or apply a YAML manifest
  • Create a cronjob that runs on a schedule
  • Port forward a service to a local port

FAQ from Kubernetes MCP Server

How does the server connect to a Kubernetes cluster?

It uses your current kubectl context by default. You can specify a custom kubeconfig with -kubeconfig and a context with -context.

What transports are supported?

stdio (default), streamable-http, and sse-legacy (deprecated). For remote use, run with -transport=streamable-http and -sse-addr=:8080.

How can I run the server inside a Kubernetes cluster?

Use the -in-cluster flag so it uses the pod's service account credentials. The recommended way is to deploy via kmcp with an MCPServer resource.

How do I configure it with Claude Desktop?

Add the server command (and optional args) to your claude_desktop_config.json under mcpServers, for example: "command": "/path/to/kai".

Can I secure the HTTP transport with TLS?

Yes, supply the -tls-cert and -tls-key options pointing to your certificate and private key files to enable HTTPS.

コメント

「クラウドとインフラ」の他のコンテンツ