{"slug": "show-hn-mcp-in-a-can-running-mcp-servers-with-restricted-permissions", "title": "Show HN: MCP in a Can – running MCP servers with restricted permissions", "summary": "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.", "body_md": "I've been working on Cantainer, a small open-source project written in Rust.\n\nOne 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.\n\nI wanted to see if there was a better way to distribute and run these tools without requiring Docker or a VM.\n\nThe 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.\n\nSo far, I've packaged 16 MCP servers and integrations, including GitHub, Context7, Kubernetes and Terraform. The builds are reproducible across Linux distributions.\n\nIt'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.\n\nI'm interested in taking this beyond MCP eventually, possibly towards an alternative Linux userland.\n\nI'd love to find people who are interested in exploring this direction together.\n\n[https://github.com/cantainer/cantainer](https://github.com/cantainer/cantainer)\n\n[https://github.com/cantainer/cans](https://github.com/cantainer/cans)\n\nComments URL: [https://news.ycombinator.com/item?id=50726335](https://news.ycombinator.com/item?id=50726335)\n\nPoints: 1\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-mcp-in-a-can-running-mcp-servers-with-restricted-permissions", "canonical_source": "https://github.com/cantainer/cantainer", "published_at": "2026-12-02 07:45:54+00:00", "updated_at": "2026-12-02 08:15:49.849552+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "developer-tools", "ai-safety"], "entities": ["Cantainer", "Model Context Protocol", "GitHub", "Context7", "Kubernetes", "Terraform", "Landlock", "seccomp"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-mcp-in-a-can-running-mcp-servers-with-restricted-permissions", "markdown": "https://wpnews.pro/news/show-hn-mcp-in-a-can-running-mcp-servers-with-restricted-permissions.md", "text": "https://wpnews.pro/news/show-hn-mcp-in-a-can-running-mcp-servers-with-restricted-permissions.txt", "jsonld": "https://wpnews.pro/news/show-hn-mcp-in-a-can-running-mcp-servers-with-restricted-permissions.jsonld"}}