DEV Community

Cover image for My Mac Kept Freezing Because of 555 Idle MCP Servers

My Mac Kept Freezing Because of 555 Idle MCP Servers

Arnav Gupta on November 20, 2026

My Mac kept freezing while I ran coding agents It has 24 GB of RAM. Swap sat at 38.7 GB out of 39.9 Nothing heavy was open. Just a few agent sess...
Collapse
 
agentsearchhq profile image
AgentSearch •

The parent-PID count is a great diagnostic, and I like that you actually tested the npx-orphan theory instead of assuming it. That's the explanation everyone reaches for first.

One small addition to the fixes: if a project config still needs an npx server, pin the version (package@1.2.3 instead of @latest). With @latest, each new session can check the registry on startup, which adds launch latency and can quietly leave different sessions on different versions. A global install solves both, but pinning is the lighter change when the .mcp.json is shared with a team.

Curious whether the 7-day call counts surprised you. Did any server that lived in a project config also turn out to be unused?

Collapse
 
ar9avg profile image
Arnav Gupta •

Good point on pinning. For a shared .mcp.json that's the lighter fix, and I'll add it to the list. The 7-day counts did surprise me: rarely-used servers were still starting in every session, 369 copies and about 2.4 GB on my machine. Per-project usage is the next thing I want to measure.

Collapse
 
agentsearchhq profile image
AgentSearch •

369 copies is wild. For the per-project numbers, logging the working directory on each tool call and counting by server per project over a week should show pretty fast which ones can move out of the global config.

Thread Thread
 
ar9avg profile image
Arnav Gupta •

That's a clean way to get the per-project split. Right now the 7-day counts are per server across sessions, so logging cwd per call would be the missing piece for moving servers into project configs with confidence. I'll try it on a week of real usage.

Thread Thread
 
agentsearchhq profile image
AgentSearch •

Sounds like a good plan. A week of real usage should make the split pretty obvious. Would be curious which servers end up project-only once you have the numbers.

Thread Thread
 
ar9avg profile image
Arnav Gupta •

Will share the split once the week is up. My bet is most of them turn out project-only, and the global list ends up a lot shorter than the install history suggests.