MCP Kubernetes
Provides comprehensive tools for managing Kubernetes clusters, including pod and deployment management, node monitoring, log retrieval, scaling operations, and multi-context support for advanced cluster operations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Kuberneteslist all pods in the default namespace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Kubernetes
Model Context Protocol server for Kubernetes operations.
Description
This project implements an MCP (Model Context Protocol) server for advanced management of Kubernetes clusters. It provides tools to query, manage, and monitor resources such as pods, deployments, nodes, and logs, with support for multiple contexts and namespaces.
Related MCP server: MCP Server Kubernetes
Features
π’ Pod Management:
π¦ List pods by namespace and context.
π Retrieve complete pod details, including events, containers, volumes, and status.
π Deployment Management:
π¦ List deployments by namespace and context.
π Scale replicas and rollout (restart) deployments.
π Query detailed deployment status.
π₯οΈ Node Management:
ποΈ List nodes with capacity, status, roles, and cluster summary.
π Pod Logs:
π Retrieve logs from specific pods and containers, with options for previous logs and line count.
π Multi-context Support:
π Query and switch Kubernetes contexts.
βοΈ Set default context.
βοΈ Configuration and Logging:
π οΈ Utilities for loading Kubernetes configuration and structured logging.
Installation
pip install -r requirements.txtUsage
Run the MCP server:
python src/mcp_kubernetes/main.pyAPI Examples
The tools are exposed as MCP functions and can be invoked from compatible clients:
Get pods:
get_pods(context="my-context", namespace="default")Pod details:
get_pod_details(environment="prod", pod_name="nginx-123", namespace="default", context="my-context")Get deployments:
get_deployments(context="my-context", namespace="default")Scale deployment:
scale_deployment(namespace="default", deployment_name="web", replicas=5)Rollout deployment:
rollout_deployment(namespace="default", deployment_name="web")Get nodes:
get_nodes(context="my-context")Get logs:
get_logs(context="my-context", environment="prod", pod_name="nginx-123", namespace="default", container="nginx")Available contexts:
get_available_contexts()Change context:
set_default_context(context="other-context")
Project Structure
src/mcp_kubernetes/main.py: Main entry point for the MCP server.src/mcp_kubernetes/config.py: Configuration and logging utilities.src/mcp_kubernetes/tools/: Kubernetes tools modules:deployments.py: Deployment management.pods.py: Pod management and details.nodes.py: Node information and summary.logs.py: Pod log retrieval.
Contributing
Contributions are welcome! Please open an issue or pull request for suggestions and improvements.
License
MIT License. See the LICENSE file
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables managing Kubernetes clusters through natural language by providing tools to list resources, view logs, port-forward services, scale deployments, and execute kubectl operations via AI assistants.81
- Alicense-qualityDmaintenanceEnables comprehensive Kubernetes cluster management through kubectl operations, Helm chart deployments, pod troubleshooting, and node management. Supports both read-only and full cluster administration capabilities with built-in safety features.15,818MIT
- Flicense-qualityDmaintenanceEnables interactive Kubernetes cluster monitoring and troubleshooting through natural language queries. Users can diagnose pod issues, check service status, and investigate cluster problems using conversational AI.
- AlicenseAqualityCmaintenanceEnables AI assistants to interact with and manage Kubernetes clusters, supporting operations on pods, deployments, services, configmaps, secrets, namespaces, metrics, and events with built-in safety features for destructive actions.9141MIT
Related MCP Connectors
Create and manage AI agents that collaborate and solve problems through natural language interactiβ¦
Enterprise AI Control Plane: governance, guardrails, spend tracking, compliance & smart routing.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/jterceiro/mcp_kubernetes'
If you have feedback or need assistance with the MCP directory API, please join our Discord server