docker-ops-server
Allows AI assistants to manage Docker containers, check logs, and inspect container health locally.
Allows AI assistants to check cluster health and manage Kubernetes resources locally.
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., "@docker-ops-serverShow me all running Docker containers."
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.
π 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 DesktopFix: 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.
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/KumarSwarnim19/MCP-AGENTS-'
If you have feedback or need assistance with the MCP directory API, please join our Discord server