Docker MCP Server
Allows managing Docker containers including running, stopping, listing, removing containers, and viewing logs, with automatic image pulling.
Click on "Deploy 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 MCP Server list all 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.
Docker MCP Server
MCP сервер для управления Docker контейнерами через Claude Desktop.
Возможности
✅ Запуск Docker контейнеров
✅ Просмотр списка контейнеров
✅ Остановка контейнеров
✅ Удаление контейнеров
✅ Просмотр логов контейнеров
✅ Автоматическое скачивание образов
Related MCP server: Docker MCP
Установка
1. Установите зависимости
npm install2. Соберите проект
npm run buildНастройка Claude Desktop
Windows
Откройте файл конфигурации:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS
Откройте файл конфигурации:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux
Откройте файл конфигурации:
~/.config/Claude/claude_desktop_config.jsonДобавьте конфигурацию
Замените /ПОЛНЫЙ/ПУТЬ/К/docker-mcp-server на реальный путь к проекту:
{
"mcpServers": {
"docker": {
"command": "node",
"args": [
"/ПОЛНЫЙ/ПУТЬ/К/docker-mcp-server/dist/index.js"
]
}
}
}Важно: Используйте ПОЛНЫЙ абсолютный путь!
Пример для macOS:
{
"mcpServers": {
"docker": {
"command": "node",
"args": [
"/Users/username/projects/docker-mcp-server/dist/index.js"
]
}
}
}Перезапустите Claude Desktop
После изменения конфигурации полностью закройте и перезапустите Claude Desktop.
Использование
Теперь вы можете давать Claude команды для работы с Docker:
Запусти nginx контейнер на порту 8080Покажи все запущенные контейнерыОстанови контейнер nginxПокажи логи контейнера my-appДоступные инструменты
docker_run
Запустить новый контейнер
Параметры:
image(обязательный) - название образа (например, "nginx:latest")name- имя контейнераports- проброс портовenv- переменные окруженияcmd- команда для выполнения
docker_ps
Список контейнеров
Параметры:
all- показать все (включая остановленные)
docker_stop
Остановить контейнер
Параметры:
container(обязательный) - ID или имя контейнера
docker_remove
Удалить контейнер
Параметры:
container(обязательный) - ID или имя контейнераforce- принудительное удаление
docker_logs
Получить логи контейнера
Параметры:
container(обязательный) - ID или имя контейнераtail- количество последних строк (по умолчанию 100)
Требования
Node.js 18+
Docker установлен и запущен
Claude Desktop
Отладка
Если MCP сервер не работает:
Проверьте, что Docker запущен:
docker psПроверьте, что путь в конфигурации правильный (абсолютный!)
Проверьте логи Claude Desktop:
macOS:
~/Library/Logs/Claude/Windows:
%APPDATA%\Claude\logs\
Попробуйте запустить сервер вручную для тестирования:
npm run dev
Разработка
Для разработки используйте:
npm run devЭто запустит сервер через tsx без предварительной компиляции.
Лицензия
MIT
Available Tools
5 toolsdocker_logsA
Получить логи контейнера
Inputs: container (required), tail.
docker_psA
Получить список контейнеров
Inputs: all.
docker_removeB
Удалить контейнер
Inputs: container (required), force.
docker_runC
Запустить Docker контейнер
Inputs: image (required), cmd, env, name, +2 more.
docker_stopC
Остановить контейнер
Inputs: container (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool addresses a distinct container lifecycle action: run, list, stop, remove, and logs. There is no overlap in purpose, making tool selection unambiguous.
All tools follow a consistent docker_verb naming pattern, using lowercase snake_case. This predictability aids agent comprehension and usage.
With exactly 5 tools, the server is well-scoped for basic Docker container management. Each tool covers an essential operation without redundancy.
The core container lifecycle (create/run, list, stop, remove, logs) is covered. A notable gap is the lack of a start command for stopped containers, but this can be worked around by running a new container.
Maintenance
Related MCP Connectors
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Lets Claude, ChatGPT and other AI chats work on your Linux computers: terminal, files and browser.
1Let ChatGPT and Claude read and edit files, search and run commands on your own computer.
Deploy, monitor, and manage your OpenClaw AI assistants via natural language.
Related MCP Servers
- AlicenseAqualityDmaintenanceAllows Claude and other AI assistants to interact with Docker through the MCP protocol, enabling container and image management including listing, running, stopping, and pulling Docker resources.64MIT
- FlicenseNot gradedqualityDmaintenanceEnables Docker container management directly through Claude using the Model Context Protocol. Provides 14 tools for managing containers, images, volumes, and Docker Compose deployments through natural language commands.-
- AlicenseBqualityDmaintenanceEnables natural language interaction with Docker commands and operations. Supports container management, image operations, system information, and Docker Compose through conversational requests.141MIT
- AlicenseAqualityDmaintenanceEnables Claude to manage Docker Compose containers by updating, running commands, and viewing status/logs.2MIT