mcp-docker mcp

v1.0.1 · MCP Tool · devops · registry.pascalai.org

Docker Engine management via REST API. Requires Docker daemon with TCP enabled (default: http://localhost:2375). Manages containers and images.

dockercontainersdevopsinfrastructureimages

Input Parameters

ParameterTypeDescription
operationrequired string Operation to perform. One of: info, list_containers, inspect_container, start, stop, restart, remove_container, logs, list_images, pull, remove_image, exec.
hostoptional string Docker API host URL (default: http://localhost:2375). Default: http://localhost:2375.
containerIdoptional string Container ID or name. Required for: inspect_container, start, stop, restart, remove_container, logs, exec.
imageoptional string Image name. Required for: pull, remove_image.
alloptional boolean Include stopped containers in list (default: false). Default: False.
tailoptional integer Number of log lines to return (default: 100). Default: 100.
commandoptional string Shell command to execute (for exec), e.g. 'ls -la'.
forceoptional boolean Force remove even if running (for remove_container/remove_image). Default: False.

Output Fields

FieldTypeDescription
ok boolean
containers array[object]
images array[object]
count integer
logs string
output string
error string

Examples

List running containers

// Input
{
  "operation": "list_containers"
}

// Output
{
  "ok": true,
  "containers": [],
  "count": 0
}

Get Docker host info

// Input
{
  "operation": "info"
}

// Output
{
  "ok": true,
  "name": "docker-desktop",
  "containers": 3
}

Install & Discovery

Install

ppm install mcp-docker

Get JSON Schema

GET /v1/packages/mcp-docker/1.0.1/schema

Discover by keyword

GET /v1/mcp/discover?q=docker
Discovery hint: Install with ppm install mcp-docker or invoke remotely via POST /v1/invoke/mcp-docker on the MCP Service.

PascalAI Usage

uses toolslib;
var Tool := LoadTool('mcp-docker');
var R := Tool.Call(JsonObj(['operation','list_containers']));
Writeln(R.ToJSON);