Could stdio MCP servers start only on tool calls and exit immediately after?
gelembjuk · reddit · 2026-07-24
The post proposes making stdio MCP servers ephemeral instead of persistent: start them only when a tool is called, let them advertise tools, handle the request, and exit.
The author argues that most MCP servers are stateless wrappers around APIs, so keeping 15+ processes resident wastes memory for little benefit. The tradeoff is a small startup delay, but the LLM call itself is usually the bottleneck. The main implementation caveat is that AI harness libraries would need to support this lifecycle.
Related event: On-Demand MCP Server Startup Saves Hundreds of MB of RAM(2 posts)→
More from coding & agent
- Grok Build adds workflows that fan tasks out across hundreds of agents — elonmusk · 2026-07-24
- Slashskills adds Codex and Cursor support after moving to a new domain — tushaarmehtaa · 2026-07-24
- Terminal-Bench gets praise for covering more coding tasks than most benchmarks — zainhas · 2026-07-24
- A practical ranking of Jina Reader, Crawl4AI, Browser Use and ScrapeGraphAI — eyishazyer · 2026-07-24
- Browser Use turns an LLM into a real browser driver for login-heavy scraping — eyishazyer · 2026-07-24
- Browser Use can scrape login walls, but it costs more than static crawlers — eyishazyer · 2026-07-24