docker-ops-server
Connects an AI assistant to local Docker and Kubernetes environments, enabling real-time command execution and log inspection with user approval.
README
π AI Assistant for Local Docker & Kubernetes (MCP Agent)
This project connects an AI Assistant (like Claude Desktop) directly to your local Docker and Kubernetes environment.
Instead of manually running terminal commands, copying logs, and pasting them into a chat window, the AI agent can run commands, check container logs, and inspect cluster health for you in real timeβall with your approval.
π Why Use This?
- No More Copy-Pasting Logs: The AI checks live container and cluster status directly.
- Safe & Secure: The AI asks for your permission before running any command on your machine.
- Easy Debugging: Helps you troubleshoot local DevOps setups faster.
π Project Files
AGENTIC/
βββ mcp_server.py # The backend server that runs Docker/K8s commands
βββ agent_with_mcp.py # Script to run and test the MCP agent
βββ agent.py # Main agent execution script
βββ generative_ai.py # Helper functions for the AI model
βββ requirements.txt # Python libraries needed for this project
βββ README.md # Project documentation
β‘ Quick Setup Guide
1. Clone the Repository & Set Up Python
# Clone this repository
# Create a virtual environment
python -m venv .venv
# Activate the virtual environment
# On Windows:
.venv\Scripts\activate
# On Mac/Linux:
source .venv/bin/activate
# Install required packages
pip install -r requirements.txt
βοΈ How to Connect Claude Desktop to Your Local MCP Server
Follow these steps to open the configuration file directly from Claude Desktop:
- Open Claude Desktop on your computer.
- Click on the Claude Menu (top left on macOS or via your Profile/Settings on Windows).
- Select Settings... from the dropdown menu.
- Go to the Developer tab in the left sidebar.
- Click the Edit Config button. This will automatically open or locate the
claude_desktop_config.jsonfile in your system text editor. - Paste the following configuration block into the file:
{
"mcpServers": {
"docker-ops-server": {
"command": "C:\\path\\to\\your\\AGENTIC\\.venv\\Scripts\\python.exe",
"args": [
"C:\\path\\to\\your\\AGENTIC\\mcp_server.py"
]
}
}
}
β οΈ Important: Replace
C:\path\to\your\AGENTICwith the actual full path to your project folder. Make sure you point directly to the Python interpreter inside.venvto prevent connection errors.
- Save the file and completely restart Claude Desktop for the changes to take effect.
π How to Use
- Make sure Docker Desktop is running on your machine.
- Open Claude Desktop.
- Look for the hammer / tool icon at the bottom of the chat boxβthis confirms your local MCP tools are active.
- Ask Claude questions like:
- "Show me all running Docker containers."
- "Check the health of my Kubernetes nodes."
- Click Allow when Claude requests permission to run a tool!
π οΈ Common Issue & Fix
- Error:
Server disconnectedin Claude Desktop- Fix: Open Settings β Developer in Claude Desktop and click View Logs to check the error stream. Double-check that your path to
.venv\Scripts\python.exeinclaude_desktop_config.jsonis completely accurate.
- Fix: Open Settings β Developer in Claude Desktop and click View Logs to check the error stream. Double-check that your path to
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.