Docs · MCP router

MCP router

The MCP servers you add in magpie’s Library are normally written into each agent’s own config, one entry per server. With the MCP router on, each agent is given a single server named magpie instead, and magpie passes each call on to the Library server behind it. It is off by default.

Tools appear in the agent as server__tool. Only tools are served (no resources or prompts), and a tool you turned off in the Library is neither listed nor run.

Turn it on

  1. Open the pageGo to Library → MCP.
  2. Switch it onBelow the server list, turn on MCP router. Each agent that has Library servers ticked and can reach a server over HTTP (Streamable HTTP) gets one magpie entry at /mcp/magpie/hub/<agent> on magpie’s gateway, and those servers’ own entries are taken out of its config.
  3. Restart your agentsAn agent reads the change when it starts again.

Turning it off writes each server’s own entry back, removes only the magpie entry magpie wrote, and stops every server the router started. From the command line:

Terminal
magpie library mcp router on
magpie library mcp router off

magpie library lists which agents are given the router and which keep their own entries, with why.

Other apps

With the router on, the Other apps row shows an address ending in /mcp/magpie/hub, which serves every server in the Library. Connect… opens a sheet with a ready entry to copy for Cursor, VS Code, Windsurf or any app that takes a JSON MCP config; in the app window, Cursor and VS Code also have Add, which opens the app to confirm. An app on another computer needs a gateway key, as every request from your network does (see Remote magpie).

Command servers run on this computer. Anyone holding a gateway key on your network can call them through the router, with your rights here. Only share keys with people you trust.

Agents that keep their own entries

These agents keep each server’s own entry, and the Library page says which and why:

When to use it