trackmcp
Back to directory
beastpu

mcp-k8s-sse-server

View on GitHub

mcp tools for k8s resources management using cursor agent

0 stars GoServers & Infrastructure Updated May 12, 2025

Documentation

mcp-k8s

Overview

mcp-k8s is a lightweight Kubernetes management tool providing sse and stdio mode for Kubernetes cluster management. It simplifies Kubernetes resources operation in cursor IDE.

Key Features

  • Kubernetes cluster connection and management
  • Kubernetes node management (view, cordon, uncordon, restart)
  • Pod management (view, delete, log retrieval, command execution)
  • OpenKruise resource management (view, describe, and scale CloneSets and AdvancedStatefulSets)
  • ConfigMap management
  • Multi-cluster context switching

Requirements

  • Go 1.18+
  • Kubernetes cluster
  • Valid kubeconfig file

Build Instructions

In the project root directory, run:

bash
go build -o k8s

Usage

The application supports two running modes:

  • stdio mode: For command-line interaction
  • SSE mode: Starts an HTTP server for API access

Start in SSE mode:

bash
./k8s -mode=sse -address=:8686

Start in stdio mode:

bash
./k8s -mode=stdio

Cursor mcp.json

code
{
  "mcpServers": {
    "k8s": {
     "url": "http://127.0.0.1:8686/sse"
    }
  }
}

Project Structure

  • `biz/`: Business logic code
    • `clientset/`: Kubernetes client related code
    • `pod/`: Pod operations
    • `node/`: Node management
    • `context/`: Cluster context management
    • `kruise/`: OpenKruise resource management
    • `configmap/`: ConfigMap management
  • `main.go`: Application entry point

Frequently asked questions

What is mcp-k8s-sse-server?

mcp-k8s-sse-server is mcp tools for k8s resources management using cursor agent

How do I install mcp-k8s-sse-server?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is mcp-k8s-sse-server open source?

Yes — it is hosted on GitHub at https://github.com/beastpu/mcp-k8s-sse-server.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP