Manage KubeSphere Resources and Access
MCP server that provides integration with KubeSphere API for managing workspaces, clusters, users, roles, and extensions.
Why it matters
Integrate with KubeSphere to manage workspaces, clusters, users, roles, and extensions. This asset provides a centralized control plane for your KubeSphere environment.
Outcomes
What it gets done
Manage KubeSphere workspaces and clusters.
Control user access and role assignments.
Manage KubeSphere extensions.
Integrate with KubeSphere API for resource management.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-kubesphere | bash Capabilities
Tools your agent gets
Manage KubeSphere workspaces including creation, deletion, and configuration.
Manage KubeSphere clusters including registration, monitoring, and resource allocation.
Manage users and role-based access control in KubeSphere.
Manage KubeSphere extensions and add-ons installation and configuration.
Overview
KubeSphere MCP Server
What it does
An MCP server that integrates with KubeSphere API, providing four management modules: workspace management, cluster management, user and role management, and extensions center.
How it connects
Use when you need KubeSphere API integration through the Model Context Protocol with clients like Claude Desktop or Cursor. Requires a running KubeSphere cluster with valid credentials in a KSConfig file.
Source README
An MCP server that provides integration with KubeSphere API and enables resource management through four modules: workspace management, cluster management, user and role management, and extensions center.
Installation
From Source Code
go build -o ks-mcp-server cmd/main.go
GitHub Releases
Download from https://github.com/kubesphere/ks-mcp-server/releases and move to $PATH
Configuration
Claude Desktop
{
"mcpServers": {
"KubeSphere": {
"args": [
"stdio",
"--ksconfig", "<ksconfig file absolute path>",
"--ks-apiserver", "<KubeSphere Address>"
],
"command": "ks-mcp-server"
}
}
}
Cursor
{
"mcpServers": {
"KubeSphere": {
"args": [
"stdio",
"--ksconfig", "<ksconfig file absolute path>",
"--ks-apiserver", "<KubeSphere Address>"
],
"command": "ks-mcp-server"
}
}
}
Available Tools
| Tool | Description |
|---|---|
Workspace Management |
KubeSphere workspace management |
Cluster Management |
KubeSphere cluster management |
User and Roles |
User management and role-based access control |
Extensions Center |
KubeSphere extensions management |
Features
- Integration with KubeSphere API
- Resource management through four tool modules
- Support for both HTTP and HTTPS connections
- Configuration via KSConfig file, similar to kubeconfig
Environment Variables
Optional
KUBESPHERE_CONTEXT- Change the default context for KubeSphere (default: kubesphere)
Notes
Requires a KubeSphere cluster with access address, username, and password. You need to generate a KSConfig file in YAML format containing the cluster connection details. Optional CA certificate is supported for HTTPS access.
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.