MCP.so
ログイン

K8s MCP Server

@chinnareddy578

基本情報

カテゴリ

クラウドとインフラ

トランスポート

stdio

作者

chinnareddy578

投稿者

chinna reddy

K8s MCP Server について

K8s MCP Server

#python#mcp-server#streamable-http#python-mcp-server#kubernetes-mcp#k8s-mcp-server#kubernetes-mcp-server

K8s MCP Server の設定

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

{
  "mcpServers": {
    "k8s-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "http://localhost:8081/mcp"
      ]
    }
  }
}

K8s MCP Server のツール

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

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

上のボタンで一時的なサンドボックスでこのサーバーを実行し、ツール一覧を取得できます。

概要

What is K8s Mcp Server?

K8s Mcp Server is a Model Control Protocol (MCP) server for Kubernetes operations. It provides tools for managing deployments, pods, services, and more.

How to use K8s Mcp Server?

You can run it using Docker (docker pull chinnareddy578/k8s-mcp-server, then docker run -p 8080:8080) or directly with Python (create a virtual environment with uv venv .venv, activate it, install dependencies with uv pip install -e ., and run python src/main.py). Configure MCP clients like GitHub Copilot or Claude Desktop to point to http://localhost:8080 (or http://localhost:8081/sse for Claude Desktop) using the provided JSON configurations.

Key features of K8s Mcp Server

  • Manages Kubernetes deployments, pods, and services.
  • Runs via Docker or Python directly.
  • Integrates with MCP clients (Copilot, Claude Desktop).
  • Exposes an HTTP/S SE endpoint on port 8080.
  • Uses uv for Python environment management.
  • Supports custom client configuration via JSON.

Use cases of K8s Mcp Server

  • Automate Kubernetes deployments from an AI assistant.
  • Manage pods and services through natural language prompts.
  • Integrate Kubernetes operations into GitHub Copilot or Claude Desktop.
  • Quickly inspect cluster resources without manual kubectl commands.

よくある質問

1

What are the prerequisites to run K8s Mcp Server?

Docker (optional), Python 3.12 or higher, and the `uv` package manager are required.

2

How do I run K8s Mcp Server with Docker?

Pull the image with `docker pull chinnareddy578/k8s-mcp-server` and run the container with `docker run -p 8080:8080`.

3

How do I configure it with GitHub Copilot?

In your Copilot settings, set the MCP server URL to `http://localhost:8080` and use the provided JSON configuration with `mcp-remote`.

4

What should I do if I have connection issues?

Ensure the Docker container is running and the port is correctly mapped. Check with `docker ps`.

5

What tools does K8s Mcp Server provide?

It provides tools for managing deployments, pods, services, and other Kubernetes resources.

コメント

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