A local gateway shares one MCP setup across 24 AI clients and cuts context use

kydude · reddit · 2026-07-21

A developer built a local gateway that lets 24 AI clients share one MCP setup, with one click per client and no manual config-file editing. The motivation is simple: the same MCP servers had to be added separately in Claude Desktop, Cursor, Codex, and other clients, each with its own config format and duplicated keys. The gateway keeps servers in one place, stores keys in the OS keychain, and lets every client point to the same local endpoint. Its second feature is **lazy tool discovery**. Instead of dumping the full server catalog into context, it exposes four meta-tools and lets the agent search on demand. Reported benchmark results: - 3 servers: 179k tokens flat vs 47k with lazy discovery - 6 servers: 472k tokens flat vs 40k with lazy discovery - The author says flat discovery scales poorly, while lazy discovery stays roughly constant The project is free, MIT-licensed, local-first, and currently supports 24 clients.

Original post →

More from coding & agent

coding & agent channel →