mcp tools for k8s resources management using cursor agent
0 stars
Go
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 k8sUsage
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=:8686Start in stdio mode:
bash
./k8s -mode=stdioCursor mcp.json
code
{
"mcpServers": {
"k8s": {
"url": "http://127.0.0.1:8686/sse"
}
}
}Project Structure
biz/: Business logic codeclientset/: Kubernetes client related codepod/: Pod operationsnode/: Node managementcontext/: Cluster context managementkruise/: OpenKruise resource managementconfigmap/: ConfigMap managementmain.go: Application entry point
Similar MCP
Based on tags & features
Trending MCP
Most active this week