MCP Directory

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

  1. 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
  2. 2Paste the mcp-k8s-eye config below into the "mcpServers" object.
  3. 3Fill in placeholder secrets, then save.
  4. 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
  5. 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_get

Get detailed resource information about a specific resource in a namespace.

resource_list

List detailed resource information about all resources in a namespace.

resource_create_or_update

Create or update a resource in a namespace.

resource_delete

Delete a resource in a namespace.

resource_describe

Describe a resource's detailed information in a namespace.

deployment_scale

Scale a deployment in a namespace.

pod_exec

Execute a command in a pod in a namespace.

pod_logs

Get 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).

View repo Full mcp-k8s-eye page