MCP.so
登录

Kubernetes MCP Server

@endo-sys

关于 Kubernetes MCP Server

暂无概览

基本信息

分类

云与基础设施

许可证

MIT license

运行时

python

传输方式

stdio

发布者

endo-sys

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "kubernecetes-mcp-server": {
      "command": "python",
      "args": [
        "-m",
        "mcp.inspector",
        "src/k8s_mcp_server.py"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Kubernetes MCP Server?

The Kubernetes MCP Server is a Model Context Protocol server that enables natural language interaction with a Kubernetes cluster through an MCP client. It provides comprehensive Kubernetes operations including pods, deployments, services, namespaces, and cluster management.

How to use Kubernetes MCP Server?

Clone the repository, install dependencies with pip install -r requirements.txt, then run the server via MCP Inspector, install it in Claude Desktop, or execute directly. Once connected, issue natural language commands like “Get all pods in the default namespace” or “Scale the backend deployment to 3 replicas.”

Key features of Kubernetes MCP Server

  • Get, describe, and filter pods
  • Execute commands in pods
  • Get pod logs and metrics
  • Scale deployments and manage rollouts
  • Expose deployments as services
  • Port forward to services
  • Create and delete namespaces
  • Cordon, uncordon, and drain nodes

Use cases of Kubernetes MCP Server

  • Query pod status and logs in natural language
  • Scale deployments and manage rollout history
  • Create and manage namespaces interactively
  • Perform cluster maintenance like node draining

FAQ from Kubernetes MCP Server

What are the prerequisites?

Python 3.7+, kubectl installed and configured, access to a Kubernetes cluster, and an MCP client (e.g., Claude Desktop).

How do I install the server?

Clone the repository and run pip install -r requirements.txt to install dependencies.

How do I run the server?

Use python -m mcp.inspector src/k8s_mcp_server.py for development, python -m mcp.install src/k8s_mcp_server.py to install in Claude Desktop, or run python src/k8s_mcp_server.py directly.

What Kubernetes operations are supported?

Pod, deployment, service, namespace, and cluster operations including get, describe, scale, logs, exec, rollout management, and node scheduling.

Do I need additional authentication?

No; the server uses your existing kubectl configuration for cluster access.

评论

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