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. 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 Comments: 0