
mkp
MCP server that lets AI clients list, read, apply and exec into Kubernetes resources
The repository was last updated 17 hours ago and is published under Apache-2.0.
mkp is an open-source MCP server for cloud and infrastructure. It is available on CLI, API, Self-hosted and Linux.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- What it can do
- Can change data (1 tool)
- GitHub stars
- 59
- Last commit
- Language
- Go
Similar MCP servers
About mkp
MKP connects AI assistants to a Kubernetes cluster through the Model Context Protocol. It talks to the cluster API server directly using Kubernetes API machinery, so it does not shell out to kubectl or helm. Because it uses an unstructured client, it can work with any resource type, including custom resource definitions, without needing dedicated schemas for each one.
By default the server is read-only: listing and fetching resources works, while apply, delete and pod exec tools are only enabled when write mode is switched on. Built-in rate limits cap how many calls an agent can make per minute, and pod logs are trimmed by default so large outputs do not flood the model's context window. Annotation filtering lets users strip noisy metadata from list results.
The server is aimed at platform and DevOps engineers who want an AI agent to inspect workloads, debug pods or apply manifests on a cluster they already operate. It is written in Go and released under the Apache-2.0 license.
Tools this server provides (4)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 4 tools changes data; 1 name doesn't say.
From the server's own tool labels and tool names; not verified by us.
- get_resourceName suggests: reads
- Get a Kubernetes resource or its subresource.
- list_resourcesName suggests: reads
- Lists Kubernetes resources of a specific type.
- apply_resource
- Applies (creates or updates) a Kubernetes resource.
- post_resourceName suggests: changes
- Posts to a Kubernetes resource or its subresource, particularly useful for executing commands in pods.
What it does
- Generic resource listing
- Lists clustered and namespaced resources of any type the API server supports, including CRDs.
- Read subresources and logs
- Fetches resource subresources such as status, scale and pod logs with tunable limits.
- Apply manifests
- Creates or updates clustered and namespaced resources from a supplied manifest when write mode is enabled.
- Pod command execution
- Runs commands inside containers with a configurable timeout capped at 60 seconds.
- Read-only by default
- Write tools stay hidden unless the server is started with the read-write flag.
- Rate limiting
- Per-tool request budgets for reads and writes, adjustable through environment variables.
- Annotation filtering
- Includes or excludes annotation keys in list output to keep responses compact.
Good for
- Letting an AI assistant inspect deployment status and events while debugging a cluster
- Pulling recent container logs into a chat for incident triage
- Applying a reviewed manifest to a namespace through an agent workflow
- Checking GPU node annotations without flooding the model's context
- Running a diagnostic command inside a pod during troubleshooting
Pricing
Open source
Free and open source under Apache-2.0.
mkp FAQ
Is it safe to let an agent use mkp?
By default it runs read-only, and write tools such as apply and exec only appear when the read-write flag is set. Rate limits also apply to each tool.
How does mkp find the cluster configuration?
It checks the --kubeconfig flag, then the in-cluster service account, then the KUBECONFIG environment variable, and finally ~/.kube/config.
Does mkp require kubectl or helm?
No. It communicates directly with the Kubernetes API server and does not depend on those CLI tools.
What transports are supported?
Streamable HTTP is the default and runs at /mcp in stateless mode. SSE is available for older clients but is deprecated.
Is mkp free?
Yes. mkp is open source, so you can use and self-host it for free.
What are the best alternatives to mkp?
The closest alternatives to mkp are K8s MCP Server (Go), mcp-k8s-go, k8s-mcp-server, MCP Kubernetes and mcp-k8s.
Where this comes from
- Description: written from the project's README.


