Dockerfile Audit

io.github.UnbearableDevPublished by GitHub account UnbearableDevv1.0.0Updated Oct 24, 2026

Hadolint-grade Dockerfile audit — 19 checks: secrets, privileges, supply chain, hygiene.

The publisher's own server: audit.domains - Domain Valuation

Overview

AI-generated overview

Remote MCP server that audits Dockerfiles for security, base-image, instruction, efficiency and secret issues, returning severity-ranked findings with fixes.

What you can do
  • Run a full audit on pasted Dockerfile content or an HTTPS URL, with a minimum-severity filter
  • Check base images for :latest tags, missing digests and untrusted registries
  • Review instructions such as CMD/ENTRYPOINT form, ADD versus COPY and deprecated MAINTAINER
  • Check security: root user, sudo, chmod 777, curl|bash, hardcoded ENV secrets and missing HEALTHCHECK
  • Check efficiency and secrets: apt/pip cache hygiene and ARG names that look like secrets
  • Browse the check catalog by category
When to use it
Useful when you want an assistant to review a Dockerfile before committing or shipping it, or to explain and fix specific hardening problems such as running as root or unpinned base images. It is a static lint-style review, not a live image vulnerability scan.
Requirements
Remote streamable HTTP endpoint; no local install. Requires an Apify API token sent in the Authorization header as a bearer token. Audits accept either pasted content or an HTTPS URL (5s fetch timeout, max 3 redirects); Dockerfiles are capped at 200 KB and sessions time out after 5 minutes of inactivity.
Before you install
Usage is pay-per-event: each audit or check call is billed at $0.02 and catalog discovery at $0.005, so repeated calls cost money. The Apify API token is a secret credential. Dockerfile content or a URL is sent to a third-party Apify-hosted service, and pasted files may contain hardcoded secrets the audit is meant to flag.

Installation

In SourceWeft

  1. Open Dockerfile Audit in the dashboard and add it to a workspace.
  2. Connect Authorization token credentials. They are stored privately and never shown on public pages.
  3. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.UnbearableDev%2Fdockerfile-audit/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "dockerfile-audit": {
      "type": "http",
      "url": "https://unbearable-dev--dockerfile-audit.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

Dockerfile Security & Quality Audit

Hadolint-grade Dockerfile audit as an MCP server. 18+ checks across 5 categories, every finding ships with severity, line number, remediation text, and a copy-paste Dockerfile snippet.

Built by Unbearable Labs. Pay-per-event pricing — only billed when a tool is actually called.


Available on

  • Apify Actor Store — primary, metered usage (PPE)
  • MCPize — pending submission
  • MCP.so — pending submission
  • PulseMCP — pending submission
  • Smithery — pending submission
  • Glama — pending submission

Newsletter: Unbearable TechTips Weekly · All Actors: github.com/UnbearableDev

What it does

Point any MCP-capable client (Claude Desktop, Cursor, n8n, Make, Zapier, custom agents) at this server, hand it a Dockerfile, get back a structured report:

  • Severity — high / medium / low / info
  • Line number — exact location in the file
  • Description — what's wrong and why it matters
  • Remediation — what to do about it
  • Fix snippet — Dockerfile syntax you can paste directly

Tools

ToolPurpose
audit_dockerfile(dockerfile_content? | dockerfile_url?, min_severity='low')Run all checks
check_base_image(...)FROM/tag/digest/registry checks only
check_instructions(...)CMD form, ADD vs COPY, MAINTAINER, etc.
check_security(...)USER, sudo, chmod 777, curl|bash, hardcoded secrets, HEALTHCHECK
check_efficiency(...)apt cache hygiene, pip caching
check_secrets(...)ARG with secret-pattern names
list_checks(category?)Browse the full check catalog

Provide exactly one of dockerfile_content (paste the file) or dockerfile_url (HTTPS URL — e.g. GitHub raw).

Check catalog (v1: 18 checks across 5 categories)

IDCategorySeverityTitle
DFA-001base_imagemediumImage uses :latest tag or no tag
DFA-002base_imageinfoNo SHA256 digest pin on FROM
DFA-003base_imagemediumUntrusted registry
DFA-010instructionslowCMD in shell form
DFA-011instructionslowENTRYPOINT in shell form
DFA-012instructionsinfoMAINTAINER instruction is deprecated
DFA-013instructionsmediumADD used where COPY would suffice
DFA-020securitymediumNo USER directive (runs as root)
DFA-021securityhighUSER root set explicitly
DFA-022securityhighsudo invoked in RUN
DFA-023securityhighchmod 777 in RUN
DFA-024securitymediumcurl|bash pattern in RUN
DFA-025securityhighHardcoded secret in ENV
DFA-027securitylowNo HEALTHCHECK
DFA-030efficiencylowapt-get update without install
DFA-031efficiencylowapt-get install without --no-install-recommends
DFA-032efficiencylowpip install without --no-cache-dir
DFA-040secretsmediumARG with secret-pattern name

Use list_checks to get the canonical, up-to-date catalog.

Pricing

EventUSD
Any audit / check_* tool call$0.02
list_checks discovery$0.005

Example response (truncated)

json
{  "summary": {    "total_findings": 6,    "by_severity": {"high": 2, "medium": 2, "low": 2, "info": 0}  },  "findings": [    {      "id": "DFA-021",      "category": "security",      "severity": "high",      "instruction": "USER",      "line_number": 3,      "title": "USER root set explicitly",      "description": "...",      "remediation": "Switch to a non-root UID after any root-required RUN steps.",      "fix_dockerfile_snippet": "USER 10001:10001",      "references": ["CIS-Docker-4.1"]    }  ]}

Connecting from Claude Desktop

json
{  "mcpServers": {    "dockerfile-audit": {      "transport": "streamable-http",      "url": "https://YOUR-ACTOR-URL.apify.actor/mcp"    }  }}

Limits

  • Dockerfile size: 200 KB cap per audit
  • URL fetch: 5s timeout, max 3 redirects, HTTPS only
  • Session timeout: 5 minutes of inactivity

What's NOT covered (yet)

  • Live image vulnerability scanning (use Trivy / Grype for that)
  • Multi-stage build optimization analysis (DFA-004 / DFA-005 — roadmapped)
  • Compose-file audit (separate MCP: docker-compose-audit)

Sibling MCPs from Unbearable Labs

Source / contact

Issues and ideas: [email protected] or the GitHub org UnbearableDev.

Source: README.md at commit 6a17768

Tools

0
This server asks for a credential such as an API key, so SourceWeft could not read its tools without one and has not indexed them.

Version history

1
  1. v1.0.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declaredRequired10 pts
  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.

Other Audit integrations