About K8s MCP Server
K8s MCP Server is an MCP server published by MayukhSobo in the Cloud category: mCP server for all of your needs in k8s ☸️.
The repository has 2 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/MayukhSobo/k8s-mcp-serverThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about K8s MCP Server
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- !License declaredNo license file. Legally you have no right to use it in a product.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
Kubernetes MCP Server
A backend system that provides an interactive and extensible interface for managing Kubernetes resources, retrieving and analyzing logs, and formatting logs for export through the Model Context Protocol (MCP).
Features
- CRUD operations on Kubernetes resources (Pods, Services, Namespaces, Deployments, etc.)
- Log retrieval and pattern searching
- Log formatting and exporting in multiple formats (Plaintext, JSON, CSV, NDJSON)
- Extensible architecture for future enhancements
Requirements
- Go 1.24+
- Kubernetes cluster access
- kubectl configured
Installation
# Clone the repository
git clone https://github.com/mayukhsarkar/k8s-mcp-server.git
cd k8s-mcp-server
# Build the binary
go build -o k8s-mcp-server
# Run the server
./k8s-mcp-server serve
Usage
# Start the MCP server
./k8s-mcp-server serve
# Get help
./k8s-mcp-server --help
API Documentation
The MCP server exposes HTTP endpoints for interacting with Kubernetes resources and logs.
Kubernetes Operations
POST /api/v1/resources/{resource_type}- Create a resourceGET /api/v1/resources/{resource_type}- List resourcesGET /api/v1/resources/{resource_type}/{name}- Get resource detailsDELETE /api/v1/resources/{resource_type}/{name}- Delete a resource
Log Operations
GET /api/v1/logs/{namespace}/{pod}- Get logs from a podGET /api/v1/logs/search- Search logs with pattern matchingGET /api/v1/logs/export- Export logs in various formats
License
MIT
README fetched from the repository yesterday. The original is authoritative.