Kubernetes MCP Server
by MayukhSobo
Kubernetes MCP Server is a backend system that provides an interactive and extensible interface for managing Kubernetes resources. It also retrieves, analyzes, and formats logs for export through the Model Context Protocol (MCP).
Last updated: N/A
What is Kubernetes MCP Server?
The Kubernetes MCP Server is a backend system designed to manage Kubernetes resources and logs through an interactive and extensible interface. It supports CRUD operations on resources, log retrieval and analysis, and log formatting for export in various formats.
How to use Kubernetes MCP Server?
To use the Kubernetes MCP Server, clone the repository, build the binary using go build -o k8s-mcp-server
, and run the server using ./k8s-mcp-server serve
. Interact with the server through its HTTP API endpoints for managing Kubernetes resources and logs.
Key features of Kubernetes MCP Server
CRUD operations on Kubernetes resources
Log retrieval and pattern searching
Log formatting and exporting in multiple formats
Extensible architecture for future enhancements
Use cases of Kubernetes MCP Server
Managing Kubernetes deployments
Troubleshooting application issues using logs
Auditing Kubernetes resource changes
Exporting logs for external analysis
FAQ from Kubernetes MCP Server
What Kubernetes resources can be managed?
What Kubernetes resources can be managed?
Pods, Services, Namespaces, Deployments, etc.
What log formats are supported for export?
What log formats are supported for export?
Plaintext, JSON, CSV, NDJSON
What are the requirements to run the server?
What are the requirements to run the server?
Go 1.24+, Kubernetes cluster access, kubectl configured
How do I create a resource?
How do I create a resource?
Use the POST /api/v1/resources/{resource_type} endpoint.
How do I search logs?
How do I search logs?
Use the GET /api/v1/logs/search endpoint with appropriate parameters.