MCP Kubernetes Ro
M

MCP Kubernetes Ro

mcp-kubernetes-ro is a Kubernetes read-only server based on the Model Context Protocol (MCP), providing AI assistants with secure read-only access to clusters. It supports operations such as resource querying, log retrieval, and API discovery, and can use local kubeconfig configuration without installing the kubectl binary.
2.5 points
7.6K

What is the Kubernetes Read-Only MCP Server?

The Kubernetes Read-Only MCP Server is a Model Context Protocol (MCP) service that enables AI assistants to safely view and analyze Kubernetes clusters. This service offers a rich set of features, such as listing resources, obtaining resource details, retrieving Pod logs, etc., while maintaining read-only access to ensure security.

How to Use the Kubernetes Read-Only MCP Server?

To use the Kubernetes Read-Only MCP Server, you need to install the service and configure your Kubernetes kubeconfig file. Then, you can start the server and interact with it via the command line or graphical interface. The service supports multiple transport modes, including standard input/output (stdio) and Server-Sent Events (SSE).

Use Cases

The Kubernetes Read-Only MCP Server is suitable for scenarios that require secure viewing and analysis of Kubernetes clusters, such as cluster troubleshooting, resource discovery, security compliance checks, and AI-assisted operations. It is particularly suitable for users who wish to utilize AI assistants for cluster management and diagnosis.

Main Features

Read-Only Access
Provides read-only access to the Kubernetes cluster, preventing any destructive operations and ensuring security.
Resource Listing
Can list various Kubernetes resources, such as Pods, Deployments, Services, etc., and supports label and field filtering.
Resource Details
Obtains detailed information about specific Kubernetes resources, including configuration and status.
Pod Logs
Retrieves Pod logs, supporting advanced filtering options, such as grep patterns, time filtering, and previous logs.
Container Discovery
Lists the containers in a Pod for easy log access.
API Discovery
Discovers available Kubernetes API resources and their functions, similar to kubectl api-resources.
Base64 Encoding/Decoding
Encodes and decodes Base64 data, suitable for Kubernetes Secrets and configurations.
Multiple Transport Modes
Supports communication via standard input/output (stdio) and Server-Sent Events (SSE).
Namespace Support
Supports resources within a specified namespace or across the entire cluster.
Advanced Filtering
Supports label selectors, field selectors, and pagination.
Advantages
Provides secure read-only access, preventing any destructive operations.
Can be used without installing kubectl, only requiring a local kubeconfig file.
Supports multiple transport modes, including stdio and SSE.
Suitable for secure inspections and troubleshooting by AI assistants.
Supports advanced filtering and pagination, facilitating the handling of large amounts of data.
Limitations
Only supports read operations and cannot create, update, or delete resources.
Relies on the user's kubeconfig file, requiring its correctness and proper permissions.
Does not support the discovery of Custom Resource Definitions (CRDs).
Does not support real-time log streaming and only supports static retrieval.
Needs to be installed in a local or accessible environment.

How to Use

Install the Service
Download the pre-built binary from the GitHub release page or install it using Homebrew, NPM, or Docker.
Configure kubeconfig
Ensure that your kubeconfig file is correctly set up, usually located at ~/.kube/config.
Start the Service
Run the mcp-kubernetes-ro command to start the service, which uses the stdio mode by default. If you need the SSE mode, you can specify the port.
Use the Tools
Connect to the service via the MCP client and use the provided tools, such as list_resources and get_resource, to view and analyze the Kubernetes cluster.

Usage Examples

Cluster Troubleshooting
Use the list_resources tool to list all failed Pods, obtain their detailed information, and then use the get_logs tool to retrieve relevant logs for debugging.
Resource Discovery
Use the list_api_resources tool to discover available API resources and understand which resource types can be queried in the cluster.
Security Compliance Check
Use the get_resource tool to obtain detailed information about specific resources and verify whether their configurations comply with security standards.
AI-Assisted Operations
Let the AI assistant use the list_resources and get_resource tools to automatically identify and analyze resource issues in the cluster.

Frequently Asked Questions

Does the Kubernetes Read-Only MCP Server require the installation of kubectl?
How to disable certain tools?
Which transport modes does the service support?
How to solve connection problems?
Does the service support Custom Resource Definitions (CRDs)?

Related Resources

GitHub Release Page
Download pre-built binaries and get information on the latest version.
Homebrew Installation Guide
Install the mcp-kubernetes-ro service using Homebrew.
NPM Package
Install the mcp-kubernetes-ro service via NPM.
Docker Image
Run the mcp-kubernetes-ro service using Docker.
Model Context Protocol (MCP) Official Website
Learn more details about the Model Context Protocol (MCP).

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
9.7K
5 points
A
Aderyn
Aderyn is an open - source Solidity smart contract static analysis tool written in Rust, which helps developers and security researchers discover vulnerabilities in Solidity code. It supports Foundry and Hardhat projects, can generate reports in multiple formats, and provides a VSCode extension.
Rust
5.9K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
5.4K
4 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
8.9K
5 points
M
Mcpjungle
MCPJungle is a self-hosted MCP gateway used to centrally manage and proxy multiple MCP servers, providing a unified tool access interface for AI agents.
Go
0
4.5 points
C
Cipher
Cipher is an open-source memory layer framework designed for programming AI agents. It integrates with various IDEs and AI coding assistants through the MCP protocol, providing core functions such as automatic memory generation, team memory sharing, and dual-system memory management.
TypeScript
0
5 points
N
Nexus
Nexus is an AI tool aggregation gateway that supports connecting multiple MCP servers and LLM providers, providing tool search, execution, and model routing functions through a unified endpoint, and supporting security authentication and rate limiting.
Rust
0
4 points
S
Shadcn Ui MCP Server
An MCP server that provides shadcn/ui component integration for AI workflows, supporting React, Svelte, and Vue frameworks. It includes functions for accessing component source code, examples, and metadata.
TypeScript
12.1K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
16.6K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
14.8K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
24.5K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
43.7K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
19.2K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
45.3K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
30.2K
4.8 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
62.4K
4.7 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase