vcluster-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vcluster-mcplist all vclusters"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
vcluster MCP Server
This is a Model Context Protocol (MCP) server that provides tools for managing vcluster instances. It allows AI assistants to list, describe, create, delete, pause, resume, and even execute commands inside virtual clusters.
Features
Lifecycle Management: Create, delete, pause, resume, and disconnect vclusters.
Observability: List all vclusters and get detailed descriptions of specific instances.
Remote Execution: Execute commands directly inside a vcluster context using the
vcluster connectmechanism.Namespace Metadata: Manage labels and annotations on Kubernetes namespaces associated with vclusters.
Related MCP server: Kube MCP
Project Structure
The project follows a modular structure optimized for MCP:
src/: Core application source code.tools/: MCP tool implementations (vcluster operations, namespace metadata).prompt/: MCP prompt templates to guide the LLM in:VCluster Management: General assistance with vcluster operations.
Lifecycle Operations: Focused guidance on create/delete/pause/resume.
Metadata Management: Assistance with namespace labels and annotations.
Troubleshooting: Systematic diagnosis of vcluster-related issues.
utils/: Shared utilities, Kubernetes client setup, and vcluster manager.tests/: Comprehensive unit tests for the server logic.
pyproject.toml: Project configuration and dependency management viauv.
Prerequisites
To run this MCP server and manage vclusters, you need the following:
1. Python Environment
This project uses uv for dependency management. See Development Commands for installation.
2. vcluster CLI
vcluster CLI must be installed on your system and available in your PATH.
3. kubectl
kubectl must be installed and configured with access to the host Kubernetes cluster where vclusters are running.
Development Commands
For convenience, a Makefile is provided with common tasks:
Sync dependencies:
make sync # Production only make sync-dev # Include dev dependenciesRunning tests:
make unittest # Run unit tests only make test-cov # Run tests with coverage reportQuality Checks:
make lint # Run flake8 linting make typecheck # Run mypy type checking make check # Run both linting and type checkingLocal Development:
make dev # Start server in development mode
Configuration for Cloud Code / Claude Desktop
To use this MCP server, add the following configuration to your mcpServers setting:
Local path
Important: Before using this MCP server, you need to install the dependencies. Run this command in the project root:
uv syncThen add the following configuration to your MCP settings:
{
"mcpServers": {
"vcluster": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"~/vcluster-mcp-server",
"run",
"python",
"src/server.py"
],
"env": {}
}
}
}uvx
uvx is a uv subcommand for running Python tools in an isolated, cached environment.
Example configuration:
{
"mcpServers": {
"vcluster": {
"type": "stdio",
"command": "uvx",
"args": [
"git+https://github.com/mmpyro/vcluster-mcp-server.git"
]
}
}
}Contributing
Unit tests are located in src/tests. Please ensure all tests pass before submitting changes.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mmpyro/vcluster-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server