cd /news/ai-agents/show-hn-mcp-in-a-can-running-mcp-ser… · home › topics › ai-agents › article
[ARTICLE · art-180044] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Show HN: MCP in a Can – running MCP servers with restricted permissions

An open-source Rust project called Cantainer packages MCP servers with their runtime, dependencies and a permission manifest into OCI artifacts the author calls "cans," enforcing permissions at runtime with Landlock and seccomp instead of requiring Docker or a VM. The author has packaged 16 MCP servers and integrations, including GitHub, Context7, Kubernetes and Terraform, with builds reproducible across Linux distributions, and states that signing and other security features are missing and the project has not been audited. The official registry remains private, but anyone can build cans locally.

key takeaway

Cantainer packages each MCP server with its runtime and a permission manifest into an OCI artifact enforced by Landlock and seccomp, avoiding Docker or a VM, though signing is missing and the project is unaudited.

read1 min views23 publishedDec 2, 2026

I've been working on Cantainer, a small open-source project written in Rust.

One thing that bothers me about local MCP servers is how casually we run third-party code through npx or uvx, giving it access to pretty much everything our user can access.

I wanted to see if there was a better way to distribute and run these tools without requiring Docker or a VM.

The idea is to package each MCP server with its runtime, dependencies and a permission manifest into an OCI artifact (I call it a can). Landlock and seccomp enforce the permissions at runtime.

So far, I've packaged 16 MCP servers and integrations, including GitHub, Context7, Kubernetes and Terraform. The builds are reproducible across Linux distributions.

It's still early. Signing and some important security features are missing, and the project hasn't been audited. The official registry is still private, but anyone can build cans locally.

I'm interested in taking this beyond MCP eventually, possibly towards an alternative Linux userland.

I'd love to find people who are interested in exploring this direction together.

[https://github.com/cantainer/cantainer](https://github.com/cantainer/cantainer)

[https://github.com/cantainer/cans](https://github.com/cantainer/cans)

Comments URL: [https://news.ycombinator.com/item?id=50726335](https://news.ycombinator.com/item?id=50726335)

Points: 1

── more in #ai-agents 4 stories · sorted by recency
── more on @cantainer 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-mcp-in-a-can…] indexed:0 read:1min 2026-12-02 · —