After 300 users broke things, we moved each user's MCP servers into their own VM
mintdump · reddit · 2026-11-03
An AI ops assistant for small teams shares an architecture postmortem: for months they ran users' stdio MCP servers (Postgres, filesystem, community ones) as processes on a shared backend pool. At 300 users, three things broke in one month:
- A community server leaked memory and took down a node hosting 40 other users' servers;
- A filesystem server was configured wider than intended and could see beyond one user's folder;
- They pulled the latest npm version of every server at startup, so anything published that morning ran for every user.
New architecture: each user gets a small Linux VM; stdio servers run inside it next to the agent (still stdio, no extra network hop). A bad server only affects one user, and a filesystem server can safely see the whole machine since it only holds that user's data.
Practices they'd repeat: keep vendor-hosted remote servers remote; pin server versions and bake them into snapshots, never install from npm at runtime; keep OAuth refresh tokens on their side, giving the VM only short-lived tokens; servers restart with the machine, so state goes to disk.
Biggest lesson: MCP servers are just code you run on behalf of your users — once treated that way, most of the scary stuff disappeared.
More from coding & agent
- Screaming Frog SEO Spider v25 ships JSON config and MCP tooling for AI-driven crawls — 5le · 2026-11-03
- pixelfx: open-source repo packs 244 code-driven pixel art effects plus a Claude Code skill to generate more — JafarNajafov · 2026-11-03
- MCP server dev shares 4 best practices for writing tool descriptions (and test tools) — Mobil_Blood3david177 · 2026-11-03
- Founder hands SaaS directory submissions to his own AI app SteerCamp to test it — pramodk73 · 2026-11-03
- Defer: a fully deterministic LLM inference engine with bit-for-bit reproducible output — iyioioio · 2026-11-03
- Managing dozens of parallel Claude Code/Codex sessions: a dev's Feishu-bot workaround — yihui_indie · 2026-11-03