Kustomize MCP
Provides tools to refactor, render, and analyze Kubernetes configurations based on Kustomize, including dependency computation and diffing across various overlays and environments.
Click on "Deploy 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., "@Kustomize MCPShow the diff between the staging and production overlays"
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.
Kustomize MCP
An MCP server that helps to refactor Kubernetes configuration based on Kustomize.
Why? Because Kustomize manifests depend on each other in non-obvious ways, it's hard for a model to understand how a config change may impact multiple environments. This MCP server gives them extra tools to make this safer:
Compute dependencies of a manifest
Render the end result of Kustomize overlays
Provide full and summarized diffs between overlays across directories and checkpoints.
Available Tools
create_checkpoint: Creates a checkpoint where rendered configuration will be stored.clear_checkpoint: Clears all checkpoints or a specific checkpointrender: Renders Kustomize configuration and saves it in a checkpointdiff_checkpoints: Compares all rendered configuration across two checkpointsdiff_paths: Compares two Kustomize configurations rendered in the same checkpointdependencies: Returns dependencies for a Kustomization file
Related MCP server: mcp-kubernetes-server
Running the Server
This requires access to your local file system, similarly to how thefilesystem MCP Server works.
Using Docker
Run the server in a container (using the pre-built image):
docker run -i --rm -v "$(pwd):/workspace" ghcr.io/mbrt/kustomize-mcp:latestThe Docker image includes:
Python 3.13 with all project dependencies
kustomize (latest stable)
helm (latest stable)
git
Mount your Kustomize configurations to the /workspace directory in the
container to work with them.
If you want to rebuild the image from source:
docker build -t my-kustomize-mcp:latest .And use that image instead of ghcr.io/mbrt/kustomize-mcp.
Using UV (Local Development)
Start the MCP server:
uv run server.pyThe server will start by using the STDIO transport.
Usage with MCP clients
To integrate with VS Code, add the configuration to your user-level MCP
configuration file. Open the Command Palette (Ctrl + Shift + P) and run MCP: Open User Configuration. This will open your user mcp.json file where you can
add the server configuration.
{
"servers": {
"kustomize": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount", "type=bind,src=${workspaceFolder},dst=/workspace",
"ghcr.io/mbrt/kustomize-mcp:latest"
]
}
}
}To integrate with Claude Code, add this to your claude_desktop_config.json:
{
"mcpServers": {
"kustomize": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-a", "stdin",
"-a", "stdout",
"-v", "<PROJECT_DIR>:/workspace",
"ghcr.io/mbrt/kustomize-mcp:latest"
]
}
}
}Replace <PROJECT_DIR> with the root directory of your project.
To integrate with Gemini CLI, edit .gemini/settings.json:
{
"mcpServers": {
"kustomize": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-a", "stdin",
"-a", "stdout",
"-v", "${PWD}:/workspace",
"ghcr.io/mbrt/kustomize-mcp:latest"
]
}
}
}Testing the Server
Run unit tests:
pytestAfter running the server on one shell, use the dev tool to verify the server is working:
uv run mcp dev ./server.pyThis server cannot be deployed
Maintenance
Related MCP Connectors
The Google GKE MCP server is a managed Model Context Protocol server that provides AI applications with tools to manage Google Kubernetes Engine (GKE) clusters and Kubernetes resources. It exposes a structured, discoverable interface that allows AI agents to interact with GKE and Kubernetes APIs, enabling them to inspect cluster configurations, retrieve Kubernetes resource YAMLs, monitor operations like cluster upgrades, diagnose issues, and optimize costs—all without needing to parse text output or use complex kubectl commands.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA modular MCP server that provides tools for file operations, regex-based code searching, and structural analysis of functions and classes across multiple programming languages. It also includes AI-powered features for intelligently updating files according to architectural changes.-
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI assistants to interact with Kubernetes clusters by translating natural language into kubectl and Helm operations. It allows users to query, manage, and diagnose Kubernetes resources and cluster states through a seamless integration.20Apache 2.0
- AlicenseNot gradedqualityCmaintenanceAn MCP server for generating Kubernetes manifests (deployments, services, configmaps, secrets, ingresses, namespaces) and performing kubectl operations like apply, delete, get, describe, logs, and exec.MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that provides tools for architecture analysis, risk diagnosis, quality metrics, and regression guarding to support AI-driven code review and incremental refactoring workflows.5MIT