Cutting AI-Agent Server Memory by 5 GB by Yutaro T.Cutting AI-Agent Server Memory by 5 GB by Yutaro T.

Cutting AI-Agent Server Memory by 5 GB

Portfolio project
Yutaro T.

The challenge

A shared Mac server ran ten AI-agent profiles. Each profile started its own copies of the same MCP tool servers, and the machine was running out of memory.

What I did

Pooled six MCP servers behind mcp-proxy so the profiles share them
Added rollback and verification scripts so the change could be undone safely

Result

Processes: 164 → 62
Memory used: 8.34 GB → 3.35 GB
Free memory: 7.9 GB → 15 GB

Stack

Python, Shell, mcp-proxy, PM2

0 likes · 0 views · Nov 12, 2026

Freed 5 GB of memory on a shared AI-agent server. Ten agent profiles each ran their own copies of the same MCP tool servers, so I pooled six of them behind mcp-proxy: 164 processes / 8.34 GB down to 62 / 3.35 GB.

Timeline

Aug 25, 2026 - Aug 25, 2026

Tags