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.

评论

云与基础设施 分类下的更多 MCP 服务器