Docker (tmhs) MCP Server

@tmhs/docker-mcp npm v1.0.0 Source verified

Published by tmhsdigital — publish provenance cryptographically ties this package to that repository. That is proof of origin, not an official vendor package.

MCP server for Docker CLI integration - 150 tools for containers, images, compose, volumes, networks, cleanup, observability, buildx, manifests, contexts, registry auth, Swarm orchestration, stacks, configs, secrets, content trust, Scout, plugins, and sys

Trust grade
A
94/100
Last scanned get badge →
Trust
A · 94/100
Adoption risk for you: the threat score, then adjusted down for blast radius, publisher verification and how much the scan could see. Deterministic; every point is auditable.
Capability
High
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
Share this Trust Score
𝕏 Share LinkedIn Reddit
A Why this grade threat 100 − adoption risk = 94/100

The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.

1. Threat score — 100 − 0 = 100. What the published surface and source actually contain:

The deterministic scan raised no scored threat in the surface it inspected — the threat score stayed at 100. Capability observations and advisory notes are recorded but never lower it.

2. Client adoption risk — 100 − 6 = 94. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:

PointsAdoption-risk factor
−6 capability blast radius (high) — client exposure if the model is manipulated

Capability observations and info notes are shown under Findings but never scored. Open any row's finding below for the file, line and evidence behind a deduction.

Findings 8

high Tool "docker_exec" exposes command/code executionMTC-CAP-001

Tool "docker_exec" appears to run shell commands or evaluate code (keyword "exec" in tool name). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.

Fix: Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.

Location: tool docker_exec

high Shell/command execution in server code (dist/tools/configCreate.js)MTC-SRC-002

In the server's implementation (`dist/tools/configCreate.js:3`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: rt { spawn } from "node:child_process"; const inputSchema = { name: z.string().min(1).describe("Config name"), f

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/tools/configCreate.js

high Shell/command execution in server code (dist/tools/login.js)MTC-SRC-002

In the server's implementation (`dist/tools/login.js:3`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: rt { spawn } from "node:child_process"; const inputSchema = { server: z.string().optional().describe("Registry serve

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/tools/login.js

high Shell/command execution in server code (dist/tools/secretCreate.js)MTC-SRC-002

In the server's implementation (`dist/tools/secretCreate.js:3`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: rt { spawn } from "node:child_process"; const inputSchema = { name: z.string().min(1).describe("Secret name"), f

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/tools/secretCreate.js

high Shell/command execution in server code (dist/tools/swarmUnlock.js)MTC-SRC-002

In the server's implementation (`dist/tools/swarmUnlock.js:3`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: rt { spawn } from "node:child_process"; const inputSchema = { key: z.string().min(1).describe("Unlock key for the sw

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/tools/swarmUnlock.js

high Shell/command execution in server code (dist/utils/docker-api.js)MTC-SRC-002

In the server's implementation (`dist/utils/docker-api.js:1`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: { execFile } from "node:child_process"; import { promisify } from "node:util"; import { DockerError, DockerNotFoundError

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server dist/utils/docker-api.js

medium Untrusted input can drive an external actionMTC-FLOW-005

Untrusted-input tools ([docker_containerLogs, docker_serviceLogs]) co-exist with external-action tools ([docker_exec]). A prompt injection could cause unwanted external actions, though no direct sensitive-data leak path was found.

Evidence: untrusted [docker_containerLogs, docker_serviceLogs] → sinks [docker_exec]

Fix: Require confirmation for state-changing/egress actions triggered after processing untrusted content.

Location: flow docker_containerLogs → docker_exec

low Mutating tool "docker_exec" declares no destructiveHintMTC-CAP-005

Tool "docker_exec" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.

Fix: Declare accurate annotations, and gate destructive tools on user confirmation regardless.

Location: tool docker_exec

Tools 150

Each tool and what it can reach — statically extracted from the published source.

  • docker_containerLogsingests untrusted input
  • docker_execruns code / shell
  • docker_serviceLogsingests untrusted input
  • docker_buildno sensitive capability
  • docker_builderPruneno sensitive capability
  • docker_buildxBuildno sensitive capability
  • docker_buildxCreateno sensitive capability
  • docker_buildxImagetoolsno sensitive capability
  • docker_buildxInspectno sensitive capability
  • docker_buildxLsno sensitive capability
Show 140 more tools ↓
  • docker_buildxRmno sensitive capability
  • docker_buildxUseno sensitive capability
  • docker_commitno sensitive capability
  • docker_composeBuildno sensitive capability
  • docker_composeConfigno sensitive capability
  • docker_composeCpno sensitive capability
  • docker_composeCreateno sensitive capability
  • docker_composeDownno sensitive capability
  • docker_composeEventsno sensitive capability
  • docker_composeExecno sensitive capability
  • docker_composeImagesno sensitive capability
  • docker_composeKillno sensitive capability
  • docker_composeLogsno sensitive capability
  • docker_composeLsno sensitive capability
  • docker_composePauseno sensitive capability
  • docker_composePortno sensitive capability
  • docker_composePsno sensitive capability
  • docker_composePullno sensitive capability
  • docker_composeRestartno sensitive capability
  • docker_composeRmno sensitive capability
  • docker_composeRunno sensitive capability
  • docker_composeScaleno sensitive capability
  • docker_composeStartno sensitive capability
  • docker_composeStopno sensitive capability
  • docker_composeTopno sensitive capability
  • docker_composeUnpauseno sensitive capability
  • docker_composeUpno sensitive capability
  • docker_composeVersionno sensitive capability
  • docker_composeWatchno sensitive capability
  • docker_configCreateno sensitive capability
  • docker_configInspectno sensitive capability
  • docker_configLsno sensitive capability
  • docker_configRmno sensitive capability
  • docker_containerPruneno sensitive capability
  • docker_contextCreateno sensitive capability
  • docker_contextInspectno sensitive capability
  • docker_contextLsno sensitive capability
  • docker_contextRmno sensitive capability
  • docker_contextShowno sensitive capability
  • docker_contextUseno sensitive capability
  • docker_cpno sensitive capability
  • docker_createno sensitive capability
  • docker_diffno sensitive capability
  • docker_diskUsageno sensitive capability
  • docker_eventsno sensitive capability
  • docker_exportno sensitive capability
  • docker_imageHistoryno sensitive capability
  • docker_imagePruneno sensitive capability
  • docker_importno sensitive capability
  • docker_inspectContainerno sensitive capability
  • docker_inspectImageno sensitive capability
  • docker_killno sensitive capability
  • docker_listContainersno sensitive capability
  • docker_listImagesno sensitive capability
  • docker_listNetworksno sensitive capability
  • docker_listVolumesno sensitive capability
  • docker_loadno sensitive capability
  • docker_loginno sensitive capability
  • docker_logoutno sensitive capability
  • docker_manifestAnnotateno sensitive capability
  • docker_manifestCreateno sensitive capability
  • docker_manifestInspectno sensitive capability
  • docker_manifestPushno sensitive capability
  • docker_manifestRmno sensitive capability
  • docker_networkConnectno sensitive capability
  • docker_networkCreateno sensitive capability
  • docker_networkDisconnectno sensitive capability
  • docker_networkInspectno sensitive capability
  • docker_networkPruneno sensitive capability
  • docker_networkRmno sensitive capability
  • docker_nodeDemoteno sensitive capability
  • docker_nodeInspectno sensitive capability
  • docker_nodeLsno sensitive capability
  • docker_nodePromoteno sensitive capability
  • docker_nodePsno sensitive capability
  • docker_nodeRmno sensitive capability
  • docker_nodeUpdateno sensitive capability
  • docker_pauseno sensitive capability
  • docker_pluginEnableno sensitive capability
  • docker_pluginInstallno sensitive capability
  • docker_pluginLsno sensitive capability
  • docker_pluginRmno sensitive capability
  • docker_portno sensitive capability
  • docker_pullno sensitive capability
  • docker_pushno sensitive capability
  • docker_renameno sensitive capability
  • docker_restartno sensitive capability
  • docker_rmno sensitive capability
  • docker_rmino sensitive capability
  • docker_runno sensitive capability
  • docker_saveno sensitive capability
  • docker_scoutCvesno sensitive capability
  • docker_scoutQuickviewno sensitive capability
  • docker_scoutRecommendationsno sensitive capability
  • docker_searchHubno sensitive capability
  • docker_secretCreateno sensitive capability
  • docker_secretInspectno sensitive capability
  • docker_secretLsno sensitive capability
  • docker_secretRmno sensitive capability
  • docker_serviceCreateno sensitive capability
  • docker_serviceInspectno sensitive capability
  • docker_serviceLsno sensitive capability
  • docker_servicePsno sensitive capability
  • docker_serviceRmno sensitive capability
  • docker_serviceRollbackno sensitive capability
  • docker_serviceScaleno sensitive capability
  • docker_serviceUpdateno sensitive capability
  • docker_stackConfigno sensitive capability
  • docker_stackDeployno sensitive capability
  • docker_stackLsno sensitive capability
  • docker_stackPsno sensitive capability
  • docker_stackRmno sensitive capability
  • docker_stackServicesno sensitive capability
  • docker_startno sensitive capability
  • docker_statsno sensitive capability
  • docker_stopno sensitive capability
  • docker_swarmCano sensitive capability
  • docker_swarmInitno sensitive capability
  • docker_swarmJoinno sensitive capability
  • docker_swarmJoinTokenno sensitive capability
  • docker_swarmLeaveno sensitive capability
  • docker_swarmUnlockno sensitive capability
  • docker_swarmUnlockKeyno sensitive capability
  • docker_swarmUpdateno sensitive capability
  • docker_systemInfono sensitive capability
  • docker_systemPruneno sensitive capability
  • docker_tagno sensitive capability
  • docker_topno sensitive capability
  • docker_trustInspectno sensitive capability
  • docker_trustKeyno sensitive capability
  • docker_trustRevokeno sensitive capability
  • docker_trustSignno sensitive capability
  • docker_unpauseno sensitive capability
  • docker_updateno sensitive capability
  • docker_versionno sensitive capability
  • docker_volumeCreateno sensitive capability
  • docker_volumeInspectno sensitive capability
  • docker_volumePruneno sensitive capability
  • docker_volumeRmno sensitive capability
  • docker_waitno sensitive capability

Toxic flows 1

Cross-tool combinations that form a data-exfiltration primitive (untrusted input → sensitive source → external sink).

What this scan could not see

Versions 1

Scan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.

VersionScoreFindingsEngineScanned
v1.0.0 latest A 94/100 8 1.13.0 2026-09-07

Embed this score

Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.

MCP Trust Score: A · 94/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/tmhs-docker-mcp/badge.svg)](https://mcptrustchecker.com/registry/tmhs-docker-mcp)
HTML
<a href="https://mcptrustchecker.com/registry/tmhs-docker-mcp"><img src="https://mcptrustchecker.com/registry/tmhs-docker-mcp/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/tmhs-docker-mcp/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.

npx mcptrustchecker scan @tmhs/docker-mcp --online

Use the free API → How scoring works

Other implementations of Docker 14

Independent packages implementing the same tool, scanned with the same engine. Compare all 15 side by side →

More in Developer Tools