MCP.so
ログイン

MCP Kubernetes Server

@ductnn

基本情報

カテゴリ

クラウドとインフラ

ライセンス

MIT license

トランスポート

stdio

作者

ductnn

投稿者

Duc Tran

MCP Kubernetes Server について

A lightweight MCP server that provides natural language processing and API access to Kubernetes clusters, combining both kubectl commands and Kubernetes Python client.

MCP Kubernetes Server の設定

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

{
  "mcpServers": {
    "mcp-kubernetes-server-ductnn": {
      "command": "uv",
      "args": [
        "venv",
        ".venv"
      ]
    }
  }
}

MCP Kubernetes Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

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

概要

What is Mcp Kubernetes Server?

A lightweight MCP server that provides natural language processing and API access to Kubernetes clusters, combining kubectl commands with the Kubernetes Python client. It is intended for developers and operators who want to manage Kubernetes resources through AI assistants or direct API calls.

How to use Mcp Kubernetes Server?

Install Python 3.11+, ensure kubectl is configured locally, and install UV. Clone the repository, create a virtual environment with UV, and install dependencies. Run the server with uv run main.py or configure it as an MCP server in tools like Claude Desktop by editing the claude_desktop_config.json.

Key features of Mcp Kubernetes Server

  • Natural language interface: convert plain English queries to kubectl commands
  • Full CRUD operations for namespaces, pods, and deployments
  • Dual execution mode: kubectl command integration and Kubernetes Python client
  • Namespace validation (DNS-1123 compliant)
  • Label filtering and grace period control
  • Automatic command fallback for unsupported queries

Use cases of Mcp Kubernetes Server

  • Manage Kubernetes clusters through AI assistants like Claude Desktop
  • Perform common resource operations using natural language queries
  • Automate pod, deployment, and namespace creation and deletion
  • Inspect cluster resources across all namespaces
  • Scale deployments and modify labels/annotations via API endpoints

よくある質問

1

What are the prerequisites for using this server?

Python 3.11+, access to a Kubernetes cluster, kubectl configured locally, and UV installed.

2

How does the natural language processing work?

The server uses a natural language processor (nl_processor) that converts phrases like “Show me all pods” into equivalent kubectl commands. If a query is unsupported, it falls back to a general resource listing.

3

Can I create or delete Kubernetes resources with this server?

Yes, the server provides full CRUD operations via dedicated API endpoints for pods, deployments, and namespaces, including graceful deletion and force delete options.

4

How do I integrate this server with Claude Desktop?

Edit your `claude_desktop_config.json` to add a “kubernetes” MCP server entry pointing to the `uv` command and the project directory, then restart Claude Desktop.

5

Does it require kubectl or is the Python client enough?

It supports both execution modes. kubectl must be configured locally, but the server also uses the official Kubernetes Python SDK for operations.

コメント

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