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
8.1K

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

V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
9.0K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
9.8K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
16.5K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
9.3K
4 points
P
Paperbanana
Python
9.6K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
9.2K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
9.6K
5 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
10.7K
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
29.4K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
82.5K
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
23.9K
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
39.4K
5 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#
38.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
71.8K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
25.1K
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
57.3K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase