Kiali MCP Server (Model Context Protocol) with special support for OpenShift
Project description
Kiali MCP Server
Kiali MCP Server is a thin extension of the upstream Kubernetes MCP Server. It adds Kiali-specific tooling while keeping the same core behavior and configuration.
- Based on
kubernetes-mcp-server(native Go MCP server for Kubernetes/OpenShift) - For the full set of tools and behavior adopted from upstream, see the upstream README: openshift/openshift-mcp-server README
✨ Features | 🚀 Getting Started | 🎥 Demos | ⚙️ Configuration | 🛠️ Tools | 🧑💻 Development
✨ Features
- ✅ Istio Objects:
validations_list: Lists Istio object validations aggregated by namespace and cluster from a Kiali instance.
🚀 Getting Started
Requirements
- Access to a Kubernetes or OpenShift cluster (kubeconfig or in-cluster service account)
- A reachable Kiali server URL
Cursor
Install the Kubernetes MCP server extension in Cursor by pressing the following link:
Alternatively, you can install the extension manually by editing the mcp.json file:
{
"mcpServers": {
"kiali-mcp-server": {
"command": "npx",
"args": ["-y", "kiali-mcp-server@latest"]
}
}
}
Note: You must specify the Kiali endpoint if the MCP cannot detect it.You must also specify whether it should skip TLS.
{
"mcpServers": {
"kiali-mcp-server": {
"command": "npx",
"args": [
"-y",
"kiali-mcp-server@latest",
"--kiali-server-url",
"https://kiali-istio-system.apps-crc.testing/",
"--kiali-insecure"
]
}
}
}
Configuration
Kiali MCP Server reuses the same configuration and flags as the upstream Kubernetes MCP Server. In addition, it adds the following Kiali-specific flags:
--kiali-server-urlstring: URL of the Kiali server (e.g. "https://kiali-istio-system.apps-crc.testing/")--kiali-insecure: Skip TLS verification when connecting to the Kiali server
By default, only Kiali tools are exposed. If you want to see all of them, including the Kubernetes ones, use this configuration
--toolsets: core,config,helm,kiali
You can run the server via npx, uvx, or the compiled binary. Example using npx:
npx -y kiali-mcp-server@latest \
--kiali-server-url "https://kiali-istio-system.apps-crc.testing/" \
--kiali-insecure
Or using the binary after building:
./kiali-mcp-server \
--kiali-server-url "https://kiali-istio-system.apps-crc.testing/" \
--kiali-insecure
Refer to the upstream README for the rest of the flags and features (ports, auth, read-only, list output, etc.): openshift/openshift-mcp-server README
🛠️ Tools and Functionalities
The Kiali MCP server supports enabling or disabling specific groups of tools and functionalities (tools, resources, prompts, and so on) via the --toolsets command-line flag or toolsets configuration option.
This allows you to control which Kubernetes functionalities are available to your AI tools.
Enabling only the toolsets you need can help reduce the context size and improve the LLM's tool selection accuracy.
Available Toolsets
The following sets of tools are available (only Kiali by default):
| Toolset | Description |
|---|---|
| config | View and manage the current local Kubernetes configuration (kubeconfig) |
| core | Most common tools for Kubernetes management (Pods, Generic Resources, Events, etc.) |
| helm | Tools for managing Helm charts and releases |
| kiali | View and manage resources in your Mesh |
Tools
kiali
- valdiation_list - List all the validations in the current cluster from all namespaces
namespace(string) - Optional Namespace to retrieve the namespaced resources from (ignored in case of cluster scoped resources). If not provided, will list resources from all namespaces
🎥 Demos
In this video, we explore how the Mesh Control Plane (MCP) in Kubernetes/OpenShift works together with Kiali to validate Istio configuration objects directly in your editor (Cursor).
🧑💻 Development
Running with mcp-inspector
Compile the project and run the Kiali MCP server with mcp-inspector to inspect the MCP server.
# Compile the project
make build
# Run the Kubernetes MCP server with mcp-inspector
npx @modelcontextprotocol/inspector@latest $(pwd)/kiali-mcp-server --kiali-server-url "https://kiali-istio-system.apps-crc.testing/" --kiali-insecure
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kiali_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: kiali_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fd4a4f64c30cc9db4b7ebc41999c9acafadd6f0c998326aafd2984ac35009b6
|
|
| MD5 |
e56c38dddfd8bad0bc23defbca6eee14
|
|
| BLAKE2b-256 |
f2d1f2d366b4e7591301fc97467c72a03a64424e8c7e367d47206948927ac9f2
|
File details
Details for the file kiali_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kiali_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e535d4a12fa4b5f673fc7536c14720bde87c34b7992acac2434569e8cb6cca48
|
|
| MD5 |
66764ce8969436b43ca235dbf6d6abe0
|
|
| BLAKE2b-256 |
acac0bee700dd8e69513b5acf073cfda1ba51aa1f1388f118c04cc3b09c9e085
|