ringbearer

Run one copy of each stdio MCP server and share it with every client over Streamable HTTP; crash restart, idle stop, dashboard.

Documentation

ringbearer

ci release license go version go reference Unax2710/ringbearer MCP server

One MCP to rule them all. A small relay that runs one shared copy of each of your stdio MCP servers and serves it to every client session over Streamable HTTP.

If you run several Claude Code or Codex sessions, each session usually starts its own copy of every MCP server. Five sessions and six servers means thirty processes. ringbearer replaces that with one process per server.

  • One copy per server, shared by every session (Claude Code, Codex, or any MCP client that speaks Streamable HTTP), at http://127.0.0.1:8802/servers/<name>/mcp. Claude Desktop, which only runs stdio servers, reaches the same copies through a small built-in bridge.
  • Crashed servers restart by themselves (with a backoff from 1 s to 1 min), without touching the other servers. Client sessions stay open across the restart.
  • Idle servers can sleep: with idleTimeout, a server starts on first use and stops after a quiet period.
  • A dashboard shows state, RAM, CPU, logs and who calls what (per client), and lets you start, stop, restart, add and edit servers.
  • A single static binary with no runtime dependencies, for Windows and Linux. It installs as a per-user autostart (no admin rights).

An example (one Windows machine, measured on 2026-11-30; an example, not a benchmark): four stdio servers behind the relay. One awake copy of each uses about 107 MB (Azure DevOps), 82–95 MB (a filesystem server for an Obsidian vault), 58–71 MB (a private .NET database server) and 65 MB (Freshservice, .NET): about 320 MB for the set. The relay itself uses 13–24 MB. Clients connected at the same time: several Claude Code sessions, Claude Desktop (chat and agent mode) and Codex. Without the relay, every client session starts its own copy of every server, so five sessions would need about 5 × 320 MB ≈ 1.6 GB, against about 320 MB plus the relay. With idleTimeout set to 15m, a server nobody calls is stopped (0 MB) until the next call, which waits for it to start (see Saving RAM).

ringbearer dashboard: server card with sessions, calls, RAM and CPU, and the live activity list per client

The dashboard during a CI run: one test server, called by test clients built on the official TypeScript and Python MCP SDKs.

How it works

 Claude Code ----+
 Claude Code ----+   HTTP    +-------------------------------+  stdio   +---------------------+
 Codex ----------+---------->| ringbearer     127.0.0.1:8802 |--------->| filesystem (1 copy) |
 Claude Desktop  |           |  /servers/<name>/mcp          |--------->| postgres   (1 copy) |
   > bridge -----+           |  /         dashboard          |--------->| fetch      (1 copy) |
                             |  /admin/*  admin API          |          +---------------------+
                             +-------------------------------+
  • Each server in the config gets one child process, started with its command, args and env.
  • The child is initialized once, with the first client's initialize parameters. Later sessions get the cached result, and their requests are multiplexed onto the same child: ringbearer rewrites request ids and progress tokens so sessions never see each other's traffic.
  • ringbearer relays raw JSON-RPC and has no MCP SDK inside: unknown methods and extensions pass through. Supported protocol revisions: Protocol versions.
  • Each server's stderr goes to its own log file. Relay events (starts, exits, restarts, config changes) go to relay.log.

Install

Linux (installs into ~/.local/bin, no sudo, checks the SHA-256 checksum):

curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/Unax2710/ringbearer/main/install.sh | sh

Windows (PowerShell 5.1 or later; installs into %LOCALAPPDATA%\Programs\ringbearer, no admin):

irm https://raw.githubusercontent.com/Unax2710/ringbearer/main/install.ps1 | iex

Windows with Scoop (update it with Scoop, not with ringbearer update: see install.md):

scoop bucket add ringbearer https://github.com/Unax2710/ringbearer
scoop install ringbearer/ringbearer

Managed or corporate machines: security software often flags a script piped into a shell. Download the archive and checksums.txt from the releases page instead, check the SHA-256 and the build attestation (how), and put ringbearer on your PATH. Release binaries are not code-signed yet.

Then register it to start at logon, for the current user (systemd user unit on Linux, or a scheduled task on Windows):

ringbearer install

It prints the dashboard URL (http://127.0.0.1:8802/) and the config and log paths. Other install methods, autostart details, updating and uninstalling: docs/install.md.

Add your servers

Open the dashboard and press Add server, or edit relay.json (path printed by install). The relay picks up changes within a few seconds. A minimal config:

{
  "mcpServers": {
    "fetch": { "command": "uvx", "args": ["mcp-server-fetch"] }
  }
}

All fields (env, ${VAR} secrets, enabled, idleTimeout): docs/configuration.md.

Connect your clients

Claude Code and Codex:

ringbearer connect claude
ringbearer connect codex

This registers every enabled server at user scope through the client's own CLI; it never edits the clients' config files. connect claude replaces a user-scope entry with the same name without asking (try -dry-run first). Then restart your sessions, and remove the per-session copies of these servers from your client config.

Claude Desktop only runs stdio servers, so it goes through ringbearer bridge. Quit it completely first (from the tray or menu bar), then:

ringbearer import desktop    # copy Desktop's own stdio servers into relay.json
ringbearer connect desktop   # point Desktop's entries at the relay

Other clients (Cursor, VS Code, Windsurf, Gemini CLI, Zed, Cline and more): the dashboard's Connect a client button shows the snippet for each. Details, tokens and the full list: docs/clients.md.

Documentation

ringbearer MCP server – quality and maintenance score on Glama

Security

ringbearer runs the commands in its config, so whoever can change the config can run programs as you. By default it listens on 127.0.0.1:8802, refuses any other address without a token, and blocks DNS rebinding and cross-site requests from web pages; on loopback without a token, local programs are trusted. One relay is one identity: every client shares the same server processes and credentials. Details: Security model. To report a vulnerability: SECURITY.md.

License

MIT