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.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

R
Rsdoctor
Rsdoctor is a build analysis tool specifically designed for the Rspack ecosystem, fully compatible with webpack. It provides visual build analysis, multi - dimensional performance diagnosis, and intelligent optimization suggestions to help developers improve build efficiency and engineering quality.
TypeScript
8.7K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
8.2K
5 points
T
Testkube
Testkube is a test orchestration and execution framework for cloud-native applications, providing a unified platform to define, run, and analyze tests. It supports existing testing tools and Kubernetes infrastructure.
Go
5.1K
5 points
M
MCP Windbg
An MCP server that integrates AI models with WinDbg/CDB for analyzing Windows crash dump files and remote debugging, supporting natural language interaction to execute debugging commands.
Python
9.5K
5 points
R
Runno
Runno is a collection of JavaScript toolkits for securely running code in multiple programming languages in environments such as browsers and Node.js. It achieves sandboxed execution through WebAssembly and WASI, supports languages such as Python, Ruby, JavaScript, SQLite, C/C++, and provides integration methods such as web components and MCP servers.
TypeScript
7.4K
5 points
N
Netdata
Netdata is an open-source real-time infrastructure monitoring platform that provides second-level metric collection, visualization, machine learning-driven anomaly detection, and automated alerts. It can achieve full-stack monitoring without complex configuration.
Go
8.6K
5 points
M
MCP Server
The Mapbox MCP Server is a model context protocol server implemented in Node.js, providing AI applications with access to Mapbox geospatial APIs, including functions such as geocoding, point - of - interest search, route planning, isochrone analysis, and static map generation.
TypeScript
6.7K
4 points
U
Uniprof
Uniprof is a tool that simplifies CPU performance analysis. It supports multiple programming languages and runtimes, does not require code modification or additional dependencies, and can perform one-click performance profiling and hotspot analysis through Docker containers or the host mode.
TypeScript
7.2K
4.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
20.6K
4.3 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
31.0K
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
62.8K
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
18.9K
4.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#
26.8K
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
57.3K
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
18.8K
4.5 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
84.8K
4.7 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase