Menu

1 / 6

My Mac Kept Freezing Because of 555 Idle MCP Servers

DEV Community: ai·Arnav Gupta·16 days ago
#nzuzxwoS
#devtoai#devto#dev#sessions#servers
Long article (931 words) — no AI summary yet.
Reading 0:00
15s threshold

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 sessions, or so I thought

TL;DR

Each agent session starts its own copy of every MCP server in its global config

Desktop agent apps keep old sessions alive for days, and their MCP servers stay up with them

My Mac had 94 sessions holding 555 MCP server processes

Moving servers into project configs and closing old sessions fixes most of it

prismor discover mcp --prune --stop ended 373 copies in 6 seconds and gave me back 21 GB of swap

1. What was running

My cleanup script flagged 287 processes. Most were two lines repeated about a hundred times each:

npm exec get-an-expert-agent@latest npm exec @microsoft/clarity-mcp-server

Enter fullscreen mode

Exit fullscreen mode

Both are MCP servers.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.