An MCP server for kubectl, enabling AI assistants to interact with Kubernetes clusters through a standardized protocol.
The kubectl-mcp
plugin implements a Model Context Protocol (MCP) server for kubectl. This server enables AI assistants like Amazon Q to interact with kubectl functionality directly through a standardized protocol, allowing for seamless integration of kubectl commands into AI-powered workflows.
Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context and tools to Large Language Models (LLMs). It enables AI assistants to:
The kubectl MCP plugin exposes all kubectl commands as tools that can be invoked by AI assistants. The implementation consists of several key components:
main.go
: Entry point that starts the MCP serverpkg/mcp/server.go
: Creates and configures the MCP server with all kubectl commandspkg/mcp/tools.go
: Handles the registration of kubectl commands as MCP toolsmcp-go
library to implement the Model Context ProtocolTo use the kubectl MCP plugin with Amazon Q Chat, you need to register it in the Amazon Q configuration file.
Create or edit the file at $HOME/.aws/amazonq/mcp.json
with the following content:
{
"mcpServers": {
"kubectl": {
"command": "kubectl-mcp",
"args": []
}
}
}
This configuration tells Amazon Q Chat to:
kubectl-mcp
command to start the MCP serverkubectl___
To install the kubectl MCP plugin:
Build the plugin:
make kubectl-mcp
Move the binary to a location in your PATH:
sudo mv kubectl-mcp /usr/local/bin/
Verify the installation:
kubectl plugin list | grep mcp
To quickly test the MCP server, you can run the following command in your terminal:
echo '{"jsonrpc":"2.0","method":"tools/list","id":1}' | kubectl-mcp | jq
An MCP server and toolkit for integrating with the commercetools platform APIs.
A remote MCP server deployable on Cloudflare Workers without authentication. It can be deployed via Cloudflare or run locally using npm.
A remote, authentication-free MCP server deployable on Cloudflare Workers or locally via npm.
Allows AI models to interact with your Okta environment to manage and analyze resources, designed for IAM engineers, security teams, and administrators.
Automate Akamai resource actions using a conversational AI client. Requires Akamai API credentials.
Manage domains using the Name.com API.
List and analyze Netbird network peers, groups, policies, and more.
Analyze files and extract Indicators of Compromise (IOCs) by interacting with the Joe Sandbox Cloud service.
A server to interact with the Uyuni Server API for infrastructure and configuration management.
Integrates with Lemon Squeezy to manage subscriptions, checkouts, and products.