0.1.0pypi · docker-mcp-sdk · current release
Observed 2026-08-24T15:26:03.652Z using mcpSecurity-inventory. Status: succeeded. Negotiated protocol: 2025-06-18.
{
"experimental": {},
"prompts": {
"listChanged": false
},
"resources": {
"subscribe": false,
"listChanged": false
},
"tools": {
"listChanged": false
}
}| Tool | Category | Annotations | Risk |
|---|---|---|---|
add_dependenciesInstall packages in a running container.
Args:
container_id: Container ID or name
packages: List of packages to install
package_manager: Package manager (pip, npm, apt, apk)
Returns installation status.
Input schema{
"properties": {
"container_id": {
"title": "Container Id",
"type": "string"
},
"packages": {
"items": {
"type": "string"
},
"title": "Packages",
"type": "array"
},
"package_manager": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Package Manager"
}
},
"required": [
"container_id",
"packages"
],
"title": "add_dependenciesArguments",
"type": "object"
}Output schema{
"properties": {
"result": {
"title": "Result",
"type": "string"
}
},
"required": [
"result"
],
"title": "add_dependenciesOutput",
"type": "object"
} | — | — · — | — |
check_engineCheck Docker engine availability and version.
Returns a summary of Docker engine status.
Input schema{
"properties": {},
"title": "check_engineArguments",
"type": "object"
}Output schema{
"properties": {
"result": {
"title": "Result",
"type": "string"
}
},
"required": [
"result"
],
"title": "check_engineOutput",
"type": "object"
} | — | — · — | — |
cleanup_containerStop and remove containers.
Args:
container_id: Specific container to remove
session_id: Remove all containers for a session
cleanup_all: Remove all MCP-managed containers
remove_volumes: Also remove associated volumes
Returns cleanup status.
Input schema{
"properties": {
"container_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Container Id"
},
"session_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Session Id"
},
"cleanup_all": {
"default": false,
"title": "Cleanup All",
"type": "boolean"
},
"remove_volumes": {
"default": false,
"title": "Remove Volumes",
"type": "boolean"
}
},
"title": "cleanup_containerArguments",
"type": "object"
}Output schema{
"properties": {
"result": {
"title": "Result",
"type": "string"
}
},
"required": [
"result"
],
"title": "cleanup_containerOutput",
"type": "object"
} | — | — · — | — |
create_containerCreate and start a new Docker container.
Args:
image: Docker image to use (e.g., 'python:3.11-slim')
name: Optional container name
dependencies: Comma-separated list of packages to install
network_enabled: Enable network access
session_id: Session ID for container grouping
reuse_existing: Reuse existing container if available
environment: Environment variables
Returns container creation status and ID.
Input schema{
"properties": {
"image": {
"title": "Image",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"dependencies": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Dependencies"
},
"network_enabled": {
"default": false,
"title": "Network Enabled",
"type": "boolean"
},
"session_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Session Id"
},
"reuse_existing": {
"default": false,
"title": "Reuse Existing",
"type": "boolean"
},
"environment": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Environment"
}
},
"required": [
"image"
],
"title": "create_containerArguments",
"type": "object"
}Output schema{
"properties": {
"result": {
"title": "Result",
"type": "string"
}
},
"required": [
"result"
],
"title": "create_containerOutput",
"type": "object"
} | — | — · — | — |
execute_codeExecute a command in a running container.
Args:
container_id: Container ID or name
command: Command to execute
timeout: Execution timeout in seconds
stream: Stream output
working_dir: Working directory
Returns command output and exit code.
Input schema{
"properties": {
"container_id": {
"title": "Container Id",
"type": "string"
},
"command": {
"title": "Command",
"type": "string"
},
"timeout": {
"default": 120,
"title": "Timeout",
"type": "integer"
},
"stream": {
"default": false,
"title": "Stream",
"type": "boolean"
},
"working_dir": {
"default": "/workspace",
"title": "Working Dir",
"type": "string"
}
},
"required": [
"container_id",
"command"
],
"title": "execute_codeArguments",
"type": "object"
}Output schema{
"properties": {
"result": {
"title": "Result",
"type": "string"
}
},
"required": [
"result"
],
"title": "execute_codeOutput",
"type": "object"
} | — | — · — | — |
execute_python_scriptExecute a Python script in a container.
Args:
container_id: Container ID or name
script: Python script content
args: Script arguments
timeout: Execution timeout in seconds
packages: Python packages to install first
Returns script output and exit code.
Input schema{
"properties": {
"container_id": {
"title": "Container Id",
"type": "string"
},
"script": {
"title": "Script",
"type": "string"
},
"args": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Args"
},
"timeout": {
"default": 180,
"title": "Timeout",
"type": "integer"
},
"packages": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Packages"
}
},
"required": [
"container_id",
"script"
],
"title": "execute_python_scriptArguments",
"type": "object"
}Output schema{
"properties": {
"result": {
"title": "Result",
"type": "string"
}
},
"required": [
"result"
],
"title": "execute_python_scriptOutput",
"type": "object"
} | — | — · — | — |
list_containersList Docker containers.
Args:
show_all: Show all containers (not just running ones)
session_id: Filter by session ID
Returns a list of containers with their details.
Input schema{
"properties": {
"show_all": {
"default": false,
"title": "Show All",
"type": "boolean"
},
"session_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Session Id"
}
},
"title": "list_containersArguments",
"type": "object"
}Output schema{
"properties": {
"result": {
"title": "Result",
"type": "string"
}
},
"required": [
"result"
],
"title": "list_containersOutput",
"type": "object"
} | — | — · — | — |