ringbearer
Run one copy of each stdio MCP server and share it with every client over Streamable HTTP; crash restart, idle stop, dashboard.
ドキュメント
Several Claude Code or Codex sessions each start their own copy of every MCP server: five sessions and six servers means thirty processes. ringbearer replaces that with one process per server. It is 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.
Why
One copy, every sessionClaude Code, Codex, or any MCP client that speaks Streamable HTTP, at |
Self-healingCrashed servers restart by themselves (backoff from 1 s to 1 min), without touching the other servers. Client sessions stay open across the restart. |
Sleeps when idleWith |
A real dashboardAn overview at a glance, then one view each for servers, activity, analysis, clients, logs and settings, in English, French, German or Spanish, light or dark. State, RAM, CPU, logs and who calls what (per client). Start, stop, restart, add and edit servers. The Analysis view shows 24 hours to 45 days of usage: calls, errors, the size delivered by tool calls and by tool lists, slow and failing tools. It can compare two periods, list the tools never used, or group the failures by tool and message, with the repeated attempts. |
One static binaryNo runtime dependencies, for Windows and Linux. It installs as a per-user autostart (no admin rights). | |
An example, not a benchmark (one Windows machine, measured on 2026-11-30). 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, five sessions would need about 5 × 320 MB ≈ 1.6 GB. 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).
The dashboard during a CI run: two test servers, called by test clients built on the official TypeScript and Python MCP SDKs.
How it works
- Each server in the config gets one child process, started with its
command,argsandenv. - The child is initialized once, with the first client's
initializeparameters. 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 Clients view (and its More clients button) shows the snippet for each. Details, tokens and the full list: docs/clients.md.
Documentation
| Installing | Every install method, start at logon, updating, uninstalling, corporate machines |
| Connecting clients | Claude Code, Codex, Claude Desktop bridge, the client table, legacy SSE, protocol versions |
| Configuration | relay.json, commands and flags, file locations, dashboard, saving RAM |
| Security model | Access checks, tokens, verifying downloads, code signing |
| FAQ | Limitations, and why not another project |
| Development | Building from source, testing (CI only), releases |
Changelog · Contributing · Code of conduct · Questions: Discussions
Security
[!WARNING] 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.