Mcp Daemon Diet
Description
One shared MCP daemon per machine instead of a stdio copy in every agent session: recipe, autostart templates for Windows/macOS/Linux, a watchdog that will not blind your live sessions, and the measurements to prove it
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
mcp-daemon-diet
**One shared MCP daemon per machine, instead of a copy in every agent session.**
Works with any MCP server and any MCP client. Nothing here is specific to one integration - it is the recipe, the launcher and autostart templates for all three operating systems, a watchdog that will not make things worse, two measurement scripts, and thirteen gotchas we paid for in production.
Built and run at [Palo Alto AI Research Lab](https://github.com/tonydzi/tonydzi), where a fleet of Claude sessions across five machines talks to its MCP servers through exactly this setup.
The problem
An MCP server registered as `stdio` is spawned **per client session**. Ten parallel agent sessions means ten copies of the same server: ten times the memory, ten connections to whatever it talks to, ten holders of the same lock.
What we measured on one laptop, 2026-08-01 to 08-03:
| server | copies | summed RSS |
|---|---|---|
| telegram | ~9 | ~2.7 GB |
| mongodb | ~26 | ~3.0 GB |
| n8n | ~15 | ~2.9 GB |
| ~15 | ~1.5 GB | |
launcher wrappers (npx/cmd) |
~60 | ~5 GB |
**Read those numbers honestly.** Summing RSS over-counts: copies share code pages, so the operating system is not holding that many distinct bytes and you will not get that many back. What is exact is the copy count - and that each copy is an independent client of the upstream service, with its own socket, its own lock and its own session.
Measure your own machine before you believe anyone's table, including this one:
python scripts/mcp_diet_measure.py
If it prints `copies 1` everywhere, you have nothing to fix. That is also what a converted machine looks like: on our hub the same script now reports one `telegram` and one `n8n` process serving every open session.
The fix, in one line
Run the server once, bound to `127.0.0.1:PORT`, and point every client at the URL:
"mcpServers": { "telegram": { "type": "sse", "url
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11