What Changed When I Hardened an Internal MCP Server Image
Cloud Native Now, Wednesday, November 25th, 2026
An Adobe SRE rebuilt an internal MCP server on a hardened base image and found much of the removed attack surface was unused npm tooling.
The author compares hardened image options from Google's distroless project, Chainguard and Docker's free Hardened Images, noting the right choice depends on migration effort, patch SLA needs and supply-chain provenance requirements.
He migrated a custom Model Context Protocol server to a hardened base and scanned both versions in CI.
The most notable finding was that much of the difference came from the npm CLI's internal toolchain, which ships in standard Node.js images but is never executed by a running server.
Hardened images drop the shell and package manager, which ends exec-based debugging, and he argues internal tools such as MCP servers hold real credentials and deserve the same scrutiny as public-facing services.