Kubernetes MCP Server
Model Context Protocol (MCP) server for Kubernetes and OpenShift
Overview
Kubernetes MCP Server is a Model Context Protocol (MCP) server designed for Kubernetes and OpenShift, enabling users to manage and interact with Kubernetes resources effectively.
To use the Kubernetes MCP Server, you can integrate it with Claude Desktop or Goose CLI by adding it to your configuration files and using npm to run it.
- Configuration Management: View and manage the Kubernetes
.kube/configfile. - Generic Resource Operations: Perform CRUD operations on any Kubernetes resource. - Pod Management: List, get, delete pods, show logs, and run container images in pods.
- Managing Kubernetes configurations and resources.
- Automating pod operations in a Kubernetes cluster.
- Diagnosing and fixing OpenShift deployments automatically.
Add to your AI client
Use these steps to connect Kubernetes MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"kubernetes-mcp-server-manusa": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-kubernetes-mcp-server-manusa"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"kubernetes-mcp-server-manusa": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-kubernetes-mcp-server-manusa"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"kubernetes-mcp-server-manusa": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-kubernetes-mcp-server-manusa"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"kubernetes-mcp-server-manusa": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-kubernetes-mcp-server-manusa"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"kubernetes-mcp-server-manusa": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-kubernetes-mcp-server-manusa"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"kubernetes-mcp-server-manusa": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-kubernetes-mcp-server-manusa"
]
}
}
}FAQ
Can I use Kubernetes MCP Server with OpenShift?
Yes! It is specifically designed to support OpenShift alongside Kubernetes.
How do I install Kubernetes MCP Server?
You can install it using npm with the command `npx kubernetes-mcp-server@latest`.
What operations can I perform with this server?
You can perform various operations including viewing configurations, managing pods, and executing commands on Kubernetes resources.