kube-mcp
kube-mcp
Gemini APIキーを取得する
https://aistudio.google.com/にアクセスしてAPIキーを取得してください。現在、gemini-2.0-pro-exp-02-05 LLMは完全に無料でご利用いただけます。その他のモデルも非常にお手頃な価格でご利用いただけます。
Related MCP server: mcp-kubernetes-server
コードネーム・グースをインストールする
Gooseは、コーディングタスクを自動化することでソフトウェア開発を加速させるオープンソースのAIエージェントです。MCPクライアントが組み込まれているため、Codename Gooseを使用します。https ://block.github.io/goose/docs/getting-started/installationの手順に従ってCodename Gooseをインストールしてください。GooseがGemini APIを使用するように、GOOGLE_API_KEY環境変数を設定してください。goose goose configureを使って設定する方法と、 goose sessionを使ってセッションとして起動する方法を理解してください。
MCPサーバーの開発
MCPについては、ドキュメント( https://modelcontextprotocol.io/introduction )とPython SDK( https://github.com/modelcontextprotocol/python-sdk )をご覧ください。このリポジトリをクローンし、 mcp dev server.pyを使ってテストしてください。このプロジェクトでは、pipではなくuvパッケージマネージャーを使用していることに注意してください。UVについては、ドキュメント( https://github.com/astral-sh/uv)をご覧ください。このプロジェクトでは、kubernetes pythonクライアント( https://github.com/kubernetes-client/python uvを使用しています。
Minikubeをインストールする
以下の手順に従ってminikubeをインストールしてください: https: KubernetesManager ?arch=%2Flinux%2Fx86-64%2Fstable%2Fbinary+download クラスターの設定がMCPサーバーに提供されていることを確認してください。KubernetesManagerとconfig.load_kube_config()を調べて、設定がどのようにロードされるかを理解してください。
MCPサーバーをCodename Gooseに接続します
次のドキュメントを読んで、MCP サーバーを拡張機能として追加します: https://block.github.io/goose/docs/getting-started/using-extensionsコマンドgoose session --with-builtin developer --with-extension "uvx kube-mcp"を使用して、新しい Goose セッションを開始します。
すべてをうまく機能させる
Gooseでコマンドを実行し、MCPサーバーを使用してMinikubeと対話してみましょう。
This server cannot be deployed
Maintenance
Related MCP Connectors
The Google GKE MCP server is a managed Model Context Protocol server that provides AI applications with tools to manage Google Kubernetes Engine (GKE) clusters and Kubernetes resources. It exposes a structured, discoverable interface that allows AI agents to interact with GKE and Kubernetes APIs, enabling them to inspect cluster configurations, retrieve Kubernetes resource YAMLs, monitor operations like cluster upgrades, diagnose issues, and optimize costs—all without needing to parse text output or use complex kubectl commands.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants to interact with Kubernetes clusters through natural language, supporting core Kubernetes operations, monitoring, security, and diagnostics.110 npm964MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI assistants to interact with Kubernetes clusters by translating natural language into kubectl and Helm operations. It allows users to query, manage, and diagnose Kubernetes resources and cluster states through a seamless integration.20Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAn MCP server that lets AI assistants safely inspect and operate on Kubernetes clusters through natural conversation.MIT
- AlicenseNot gradedqualityDmaintenanceA lightweight MCP server that enables natural language interaction with Kubernetes clusters, allowing management of pods, deployments, namespaces, and cluster resources through conversational queries or API endpoints.1MIT