Provides tools for managing Docker containers and Docker Compose services, including reading logs with advanced filtering, inspecting container details, listing containers, and executing commands within containers.
Enables interaction with Kubernetes clusters to manage pods and deployments, providing capabilities to read logs, list pods, describe resources, fetch events, and execute commands within pods across different namespaces and contexts.
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., "@MCP Container Toolsshow me the last 50 error logs from the api pod in the production namespace"
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.
π³ MCP Container Tools
A Model Context Protocol (MCP) server for Docker, Kubernetes, and Azure Application Insights with advanced log filtering and monitoring capabilities.
β¨ Features
π³ Docker β Container logs, inspect, exec, list containers
π Docker Compose β Service logs, start/stop/restart services
βΈοΈ Kubernetes β Pod logs, deployment logs, events, exec into pods
βοΈ Azure Application Insights β Exceptions, traces, requests, metrics
π Log Filtering β Filter by log level, regex patterns, exclude patterns
π Remote Support β Connect to remote Docker hosts via SSH or TCP
π Requirements
Requirement | Version | Required For |
π Python | 3.11+ | All |
π³ Docker | Latest | Docker tools |
βΈοΈ kubectl | Latest | Kubernetes tools |
βοΈ Azure CLI | Latest | Azure tools (optional) |
π Installation
π¦ Quick Install (recommended)
π Install from GitHub
π§ Install from source (for development)
β Verify installation
βοΈ Configuration
π₯οΈ Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
π» Claude Code
Add to ~/.claude/settings.json or create .mcp.json in your project:
βοΈ Azure Authentication
Azure tools use DefaultAzureCredential which supports:
Azure CLI (
az login)Environment variables
Managed Identity
Visual Studio Code
π Usage Examples
π³ Docker
π Docker Compose
βΈοΈ Kubernetes
βοΈ Azure Application Insights
π Log Filtering Options
All log tools support these filtering options:
Option | Description | Example |
| Minimum log level |
|
| Regex to include |
|
| Regex to exclude |
|
| Lines around matches |
|
Supported log levels: trace β debug β info β warn β error β fatal
β±οΈ Timespan Format (Azure)
Azure tools use ISO 8601 duration format:
Format | Duration |
| 1 hour |
| 30 minutes |
| 1 day |
| 7 days |
π οΈ Available Tools
π³ Docker Tools
Tool | Description |
| π Read container logs with filtering |
| π List containers |
| π Get container details |
| β‘ Execute command in container |
π Docker Compose Tools
Tool | Description |
| π Read service logs |
| π List services |
| βΆοΈ Start services |
| βΉοΈ Stop services |
| π Restart services |
βΈοΈ Kubernetes Tools
Tool | Description |
| π Read pod logs |
| π Read deployment logs |
| π List pods |
| π Describe pod |
| β‘ Execute in pod |
| π’ Get events |
| π List contexts |
βοΈ Azure Application Insights Tools
Tool | Description |
| π Run custom Kusto queries |
| β Query application exceptions |
| π Query application traces |
| π Query HTTP requests |
| π Query external dependencies |
| π Query metrics |
| β Query availability tests |
π¨βπ» Development
Install dev dependencies
Run tests
Linting and type checking
π Project Structure
π Environment Variables
Variable | Description |
| Azure Log Analytics workspace ID |
| Azure Application Insights resource ID |
π License
MIT License - see LICENSE for details.