Skip to main content
Glama

mcp-k8s-go

特徴

MCP 💬 プロンプト 🗂️ リソース 🤖 ツール

  • 🗂️🤖 Kubernetes コンテキストを一覧表示する
  • 💬🤖 Kubernetes 名前空間を一覧表示する
  • 🤖 Kubernetes リソースの一覧と取得
    • ポッド、サービス、デプロイメントなどのリソースのカスタムマッピングが含まれますが、任意のリソースを一覧表示して取得できます。
  • 🤖 Kubernetesノードの一覧表示
  • 💬 Kubernetes ポッドの一覧を表示する
  • 🤖 Kubernetesイベントを取得する
  • 🤖 Kubernetes ポッドのログを取得する
  • 🤖 Kubernetes ポッドでコマンドを実行する

インスペクターで閲覧

Inspector で最新の公開バージョンを使用するには、次のコマンドを実行します。

npx @modelcontextprotocol/inspector npx @strowk/mcp-k8s

クロードと一緒に使う

Claude Desktop との次のチャットは、特定のコンテキストをリソースとして選択し、kube-system 名前空間のエラーについてポッド ログを確認するように求められた場合の様子を示しています。

クロードデスクトップ

この MCP サーバーを Claude Desktop (またはその他のクライアント) で使用するには、使用するインストール方法を選択する必要がある場合があります。

複数のオプションがあります:

|鍛冶屋|mcp-get|構築済みのNPM|Githubに事前構築済み|情報源より|Dockerの使用| |---|---|---|---|---|---|---| |クロード・セットアップ|オート|オート|マニュアル|マニュアル|マニュアル|マニュアル| |前提条件|Node.js|Node.js|Node.js|なし|Go言語|ドッカー|

鍛冶屋を使う

Smithery経由で Claude Desktop に MCP K8S Go を自動的にインストールするには:

npx -y @smithery/cli install @strowk/mcp-k8s --client claude

mcp-getの使用

mcp-get経由で Claude Desktop 用の MCP K8S Go を自動的にインストールするには:

npx @michaellatman/mcp-get@latest install @strowk/mcp-k8s

ビルド済みのバイナリを使って手動で

npmから事前に構築

npm がインストールされていて、ビルド済みのバイナリを使用する場合は、これを使用します。

npm install -g @strowk/mcp-k8s

次に、 mcp-k8s --versionを実行してバージョンを確認し、インストールされているバージョンが表示されたら、 claude_desktop_config.jsonファイルへの構成の追加に進むことができます。

{ "mcpServers": { "mcp_k8s": { "command": "mcp-k8s", "args": [] } } }

、または任意のクライアントでnpxを使用する:

npx @strowk/mcp-k8s

たとえばクロードの場合:

{ "mcpServers": { "mcp_k8s": { "command": "npx", "args": [ "@strowk/mcp-k8s" ] } } }
GitHubリリースより

GitHub リリースにアクセスし、プラットフォームの最新リリースをダウンロードしてください。

mcp-k8s-goという名前のバイナリが含まれるアーカイブを解凍し、そのバイナリを PATH 内のどこかに配置して、次の構成をclaude_desktop_config.jsonファイルに追加します。

{ "mcpServers": { "mcp_k8s": { "command": "mcp-k8s-go", "args": [] } } }

ソースからのビルド

このプロジェクトをビルドするには、Golang がインストールされている必要があります。

go get github.com/strowk/mcp-k8s-go go install github.com/strowk/mcp-k8s-go

次に、 claude_desktop_config.jsonファイルに次の構成を追加します。

{ "mcpServers": { "mcp_k8s_go": { "command": "mcp-k8s-go", "args": [] } } }

Dockerの使用

このサーバーは、linux/amd64 および linux/arm64 アーキテクチャ用のマルチアーキテクチャ イメージを使用して、0.3.1-beta.2 リリース以降に構築され、Docker Hub に公開されています。

最新のタグ fe は次のように使用できます。

docker run -i -v ~/.kube/config:/home/nonroot/.kube/config --rm mcpk8s/server:latest

Windows ユーザーは、少なくとも Git Bash では~/.kube/config //c/Users/<username>/.kube/configに置き換える必要がある場合があります。

クロードの場合:

{ "mcpServers": { "mcp_k8s_go": { "command": "docker", "args": [ "run", "-i", "-v", "~/.kube/config:/home/nonroot/.kube/config", "--rm", "mcpk8s/server:latest" ] } } }

環境変数とコマンドラインオプション

MCP サーバーでは次の環境変数が使用されます。

  • KUBECONFIG : Kubernetes 構成ファイルへのパス (オプション、デフォルトは ~/.kube/config)

次のコマンドライン オプションがサポートされています。

  • --allowed-contexts=<ctx1,ctx2,...> : ユーザーがアクセスできるKubernetesコンテキストのコンマ区切りリスト。指定しない場合は、すべてのコンテキストが許可されます。
  • --help : ヘルプ情報を表示する
  • --version : バージョン情報を表示する
-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

このプロジェクトは、Kubernetes に接続する MCP サーバーと、Kubernetes 内のカスタム リソース用にさらにサーバーを構築するためのライブラリの両方を目的としています。

  1. インスペクターで閲覧
    1. クロードと一緒に使う
      1. 鍛冶屋を使う
      2. mcp-getの使用
      3. ビルド済みのバイナリを使って手動で
      4. ソースからのビルド
      5. Dockerの使用
      6. 環境変数とコマンドラインオプション

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      Provides MCP multi-cluster Kubernetes management and operations, featuring a management interface, logging, and nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.
      Last updated 2 days ago
      590
      Go
      MIT License
      • Linux
      • Apple
    • -
      security
      A
      license
      -
      quality
      Provides MCP multi-cluster Kubernetes management and operations. It can be integrated as an SDK into your own project and includes nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.
      Last updated 2 days ago
      122
      Go
      MIT License
      • Linux
      • Apple
    • -
      security
      A
      license
      -
      quality
      An MCP server that enables interaction with Kubernetes resources through natural language interfaces like Goose CLI, allowing users to get, read, and patch Kubernetes resources.
      Last updated 3 months ago
      Python
      Apache 2.0

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/strowk/mcp-k8s-go'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server