docker-ops-server

docker-ops-server

Connects an AI assistant to local Docker and Kubernetes environments, enabling real-time command execution and log inspection with user approval.

Category
Visit Server

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:

  1. Open Claude Desktop on your computer.
  2. Click on the Claude Menu (top left on macOS or via your Profile/Settings on Windows).
  3. Select Settings... from the dropdown menu.
  4. Go to the Developer tab in the left sidebar.
  5. Click the Edit Config button. This will automatically open or locate the claude_desktop_config.json file in your system text editor.
  6. 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\AGENTIC with the actual full path to your project folder. Make sure you point directly to the Python interpreter inside .venv to prevent connection errors.

  1. Save the file and completely restart Claude Desktop for the changes to take effect.

πŸš€ How to Use

  1. Make sure Docker Desktop is running on your machine.
  2. Open Claude Desktop.
  3. Look for the hammer / tool icon at the bottom of the chat boxβ€”this confirms your local MCP tools are active.
  4. Ask Claude questions like:
    • "Show me all running Docker containers."
    • "Check the health of my Kubernetes nodes."
  5. Click Allow when Claude requests permission to run a tool!

πŸ› οΈ Common Issue & Fix

  • Error: Server disconnected in 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.exe in claude_desktop_config.json is completely accurate.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured