
How to add mcp-k8s-eye to Cursor
Manage Kubernetes clusters and diagnose workload health via MCP. Paste the config into ~/.cursor/mcp.json and restart Cursor.
Last updated June 14, 2026 · 28★ · stdio · no auth
Cursor config for mcp-k8s-eye
git clone https://github.com/wenhuwang/mcp-k8s-eye.git && cd mcp-k8s-eye && go build -o mcp-k8s-eye{
"mcpServers": {
"mcp-k8s-eye": {
"command": "YOUR mcp-k8s-eye PATH",
"args": [],
"env": {
"HOME": "USER HOME DIR"
}
}
}
}Setup steps
- 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
- 2Paste the mcp-k8s-eye config below into the "mcpServers" object.
- 3Fill in placeholder secrets, then save.
- 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
- 5Ask Cursor to use one of mcp-k8s-eye's tools to confirm it's connected.
Before you start
- Go 1.23 or higher (to build the binary)
- kubectl configured with access to a Kubernetes cluster
- A valid kubeconfig file (referenced via the HOME environment variable)
What mcp-k8s-eye can do in Cursor
resource_getGet detailed resource information about a specific resource in a namespace.
resource_listList detailed resource information about all resources in a namespace.
resource_create_or_updateCreate or update a resource in a namespace.
resource_deleteDelete a resource in a namespace.
resource_describeDescribe a resource's detailed information in a namespace.
deployment_scaleScale a deployment in a namespace.
pod_execExecute a command in a pod in a namespace.
pod_logsGet logs from a pod in a namespace.
Security
Operates against your configured Kubernetes cluster using your kubeconfig (set env.HOME to the directory containing the kubeconfig). It can create, update, and delete resources, scale deployments, and execute commands inside pods, so it has the same privileges as your kubeconfig context — restrict access accordingly.
mcp-k8s-eye + Cursor FAQ
Where is the Cursor config file?
Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the mcp-k8s-eye config there under the "mcpServers" key and restart the client.
Is mcp-k8s-eye safe to use with Cursor?
Operates against your configured Kubernetes cluster using your kubeconfig (set env.HOME to the directory containing the kubeconfig). It can create, update, and delete resources, scale deployments, and execute commands inside pods, so it has the same privileges as your kubeconfig context — restrict access accordingly.
How do I install it?
Clone the repo and build the binary with Go 1.23+: 'git clone https://github.com/wenhuwang/mcp-k8s-eye.git && cd mcp-k8s-eye && go build -o mcp-k8s-eye'.
How does it connect to my cluster?
It uses your kubeconfig. In Stdio mode you set env.HOME to the directory containing the kubeconfig file.
Which transports are supported?
Both Stdio and SSE. For SSE, start the server and point the client at its /sse URL (e.g. http://localhost:8080/sse).