Docker MCP Server
@zaycruz
关于 Docker MCP Server
MCP Server for docker container creation and code execution
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"DockerManager": {
"command": "python3",
"args": [
"{REPOSITORY_PATH}/src/docker_mcp.py"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Docker MCP Server?
Docker MCP Server is a Model Context Protocol (MCP) server that executes code in isolated Docker containers and returns the results to language models like Claude. It supports any language with a Docker image and provides tools for creating, managing, and cleaning up containers.
How to use Docker MCP Server?
Install Python 3.9+, Docker, and the fastmcp library. Clone the repository, create a virtual environment, and install requirements. Run python run_server.py to open the MCP Inspector at http://localhost:5173. Use the provided tools (list containers, create container, add dependencies, execute code, execute Python script, cleanup container) to run code in Docker. Integrate with Claude by running fastmcp install src/docker_mcp.py.
Key features of Docker MCP Server
- Isolated code execution in Docker containers
- Multi-language support with any Docker image
- Run simple commands and multi-line scripts
- Package management via pip, npm, apt-get, or apk
- Create, list, and clean up containers easily
- Graceful timeout management and fallback mechanisms
- Clear, color-coded console feedback
Use cases of Docker MCP Server
- Run Python data analysis scripts with numpy, pandas, and matplotlib
- Execute Node.js code with dependencies like express and axios
- Test code in isolated environments without affecting the host system
- Install and manage dependencies dynamically across multiple containers
- Clean up containers automatically after use to avoid resource leaks
FAQ from Docker MCP Server
What are the requirements for Docker MCP Server?
Python 3.9+, Docker installed and running, and the fastmcp library.
How do I integrate Docker MCP Server with Claude?
Use the fastmcp install src/docker_mcp.py command to register the server with Claude.
Which package managers does Docker MCP Server support?
It automatically detects and uses pip (Python), npm (Node.js), apt-get (Debian/Ubuntu), or apk (Alpine). For ambiguous images, it attempts to detect available package managers.
What happens if a container times out?
The server includes fallback mechanisms for containers that don’t respond within expected timeframes.
Are there any security considerations?
Docker provides isolation from the host, but the server should not be exposed publicly without additional security measures. Avoid mounting host volumes and consider setting resource limits to prevent DoS attacks.
云与基础设施 分类下的更多 MCP 服务器
Sample Serverless MCP Servers
aws-samplesSample implementations of AI Agents and MCP Servers running on AWS Serverless compute

Aws Kb Retrieval Server
modelcontextprotocolModel Context Protocol Servers
K8s MCP Server
alexei-ledK8s-mcp-server is a Model Context Protocol (MCP) server that enables AI assistants like Claude to securely execute Kubernetes commands. It provides a bridge between language models and essential Kubernetes CLI tools including kubectl, helm, istioctl, and argocd, allowing AI syste
AWS Model Context Protocol (MCP) Server
alexei-ledA lightweight service that enables AI assistants to execute AWS CLI commands (in safe containerized environment) through the Model Context Protocol (MCP). Bridges Claude, Cursor, and other MCP-aware AI tools with AWS CLI for enhanced cloud infrastructure management.
MCP Gateway
mcp-ecosystem🧩 MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes. Features Docker deployment and management UI, requiring no infrastructure modifications.
评论