Skip to main content
Glama
good-gis

Docker MCP Server

by good-gis

Docker MCP Server

MCP сервер для управления Docker контейнерами через Claude Desktop.

Возможности

  • ✅ Запуск Docker контейнеров

  • ✅ Просмотр списка контейнеров

  • ✅ Остановка контейнеров

  • ✅ Удаление контейнеров

  • ✅ Просмотр логов контейнеров

  • ✅ Автоматическое скачивание образов

Related MCP server: Docker MCP

Установка

1. Установите зависимости

npm install

2. Соберите проект

npm run build

Настройка Claude Desktop

Windows

Откройте файл конфигурации:

%APPDATA%\Claude\claude_desktop_config.json

macOS

Откройте файл конфигурации:

~/Library/Application Support/Claude/claude_desktop_config.json

Linux

Откройте файл конфигурации:

~/.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 сервер не работает:

  1. Проверьте, что Docker запущен:

    docker ps
  2. Проверьте, что путь в конфигурации правильный (абсолютный!)

  3. Проверьте логи Claude Desktop:

    • macOS: ~/Library/Logs/Claude/

    • Windows: %APPDATA%\Claude\logs\

  4. Попробуйте запустить сервер вручную для тестирования:

    npm run dev

Разработка

Для разработки используйте:

npm run dev

Это запустит сервер через tsx без предварительной компиляции.

Лицензия

MIT

Available Tools

5 tools
docker_logsA

Получить логи контейнера

ParametersJSON Schema
NameRequiredDescriptionDefault
tailNoКоличество последних строк (default: 100)
containerYesID или имя контейнера

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states 'Get container logs' and does not mention output format, streaming behavior, read-only nature, or any side effects. This is a significant gap for a tool with no annotation support.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence with no waste. It is appropriately sized for a simple tool and front-loads the essential action.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple log retrieval tool, the description is minimally adequate, but it does not explain return values or behavior nuances (e.g., whether it outputs raw logs or includes metadata). With no output schema and no annotations, additional context would have improved completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already describes both parameters (container and tail) with 100% coverage. The tool description adds no additional meaning beyond what the schema already provides, so the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Получить логи контейнера' means 'Get container logs', which is a specific verb+resource statement. It clearly distinguishes the tool from sibling tools like docker_run, docker_ps, docker_stop, and docker_remove, which perform different operations on containers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage (when you need container logs), but it provides no explicit guidance on when to use this tool versus alternatives, nor any exclusions or prerequisites. For a simple tool this is understandable, but it lacks explicit context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

docker_psA

Получить список контейнеров

ParametersJSON Schema
NameRequiredDescriptionDefault
allNoПоказать все контейнеры, включая остановленные (default: false)

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states 'Get list of containers' without revealing that by default only running containers are shown, or any other behavioral traits such as output format or dependencies on the Docker daemon.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence with no redundant information. It effectively communicates the action without any waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple list tool with one optional parameter, the description is adequate but not rich. It does not explain return value details or the default running-only filter, though the schema parameter description covers the default behavior. Without an output schema, a bit more context could be provided, but the tool is straightforward.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%: the only parameter 'all' is fully described with its default value and meaning. The description adds no additional parameter semantics, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Get list of containers' uses a specific verb and resource, clearly identifying the action of listing containers. It distinguishes from sibling tools like docker_run, docker_stop, docker_remove, and docker_logs, which perform different operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use or alternative guidance is provided. The tool name and sibling context imply usage for listing containers, but the description does not state when to choose this over other tools or mention the 'all' parameter behavior.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

docker_removeB

Удалить контейнер

ParametersJSON Schema
NameRequiredDescriptionDefault
forceNoПринудительное удаление (default: false)
containerYesID или имя контейнера

TDQS

B3/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure. It does not reveal that the operation is destructive, what side effects occur (e.g., deleting volumes), or whether a running container can be removed without force. The description only restates the tool's name without any additional behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, direct sentence with zero wasted words. It is fully front-loaded and immediately clear, making it highly concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple, but the description omits critical context about the destructive nature of the operation, the need to stop a running container, and the purpose of the 'force' flag. With no output schema and minimal description, an agent would lack essential information for safe invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema provides full descriptions for both parameters (container and force), achieving 100% coverage. The description adds no extra meaning beyond the schema, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Удалить контейнер' clearly specifies the verb 'remove' and resource 'container', distinguishing it from sibling tools like docker_run, docker_ps, docker_stop, and docker_logs. No ambiguity about what this tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool vs alternatives. It does not mention that docker_stop might be needed before removal, nor does it explain that the 'force' parameter is relevant for running containers. The description is purely a statement of the action.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

docker_runC

Запустить Docker контейнер

ParametersJSON Schema
NameRequiredDescriptionDefault
cmdNoКоманда для выполнения в контейнере
envNoПеременные окружения (например, ['NODE_ENV=production'])
nameNoИмя контейнера (опционально)
imageYesНазвание образа (например, 'nginx:latest')
portsNoПробросы портов в формате {'80/tcp': [{'HostPort': '8080'}]}
detachNoЗапустить в фоновом режиме (default: true)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure. It does not mention side effects like image pulling, container creation, detach behavior, or return values, providing only the basic action statement.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence that immediately communicates the tool's purpose without unnecessary detail. It is optimally brief and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite the schema covering parameters, the lack of annotations and output schema means the description should explain behavior and return values. It does not, making it incomplete for a tool with 6 parameters and side effects like image management and port binding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema provides descriptions for all 6 parameters (100% coverage), so the description does not need to repeat them. The baseline score of 3 is appropriate since the schema handles parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Запустить Docker контейнер' clearly states the action (run) and resource (Docker container), distinguishing it from siblings like docker_ps and docker_stop which manage existing containers. However, it lacks explicit differentiation from alternatives, so it is clear but not exemplary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided about when to use this tool versus alternatives. The description simply states the action without context such as prerequisites or use cases, leaving the agent to infer when to invoke it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

docker_stopC

Остановить контейнер

ParametersJSON Schema
NameRequiredDescriptionDefault
containerYesID или имя контейнера

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations present, the description carries the full burden of behavioral disclosure. It only says 'stop container' without elaborating on side effects, whether it forces shutdown, waits for timeout, or has any impact on related processes. An agent has no idea what to expect beyond the basic action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence with no redundant phrasing or unnecessary detail. It is appropriately short for a simple tool, though slightly under-specified. Every word earns its place, but the brevity borders on underspecification.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is a mutation (stops a container) with no annotations and no output schema. The description lacks crucial context such as the effect on running processes, whether it is reversible, or what state the container enters. For a mutation tool, this minimal description is insufficient for an agent to use it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers 100% of the parameter information, including the description 'ID or container name'. The tool description adds no additional semantic meaning beyond what the schema already provides, so a baseline score of 3 is appropriate given the high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (stop) and resource (container) in Russian, so an agent can infer the purpose. It does not explicitly differentiate from sibling tools like 'docker_remove' or 'docker_run', but the verb itself is unambiguous enough for a simple operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. There is no mention of prerequisites, conditions for stopping, or situations where a different tool (e.g., docker_remove) would be more appropriate. The description only states what it does, not when to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 5 tool updatesv1.0.0
    • First observeddocker_logs
    • First observeddocker_ps
    • First observeddocker_remove
    • First observeddocker_run
    • First observeddocker_stop

TDQS

A3.6/5.0
Disambiguation5/5

Each tool addresses a distinct container lifecycle action: run, list, stop, remove, and logs. There is no overlap in purpose, making tool selection unambiguous.

Naming Consistency5/5

All tools follow a consistent docker_verb naming pattern, using lowercase snake_case. This predictability aids agent comprehension and usage.

Tool Count5/5

With exactly 5 tools, the server is well-scoped for basic Docker container management. Each tool covers an essential operation without redundancy.

Completeness4/5

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

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

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/good-gis/docker-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server