Skip to main content
Glama
README.md
# ringbearer

[![ci](https://github.com/Unax2710/ringbearer/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Unax2710/ringbearer/actions/workflows/ci.yml)
[![release](https://img.shields.io/github/v/release/Unax2710/ringbearer)](https://github.com/Unax2710/ringbearer/releases/latest)
[![license](https://img.shields.io/github/license/Unax2710/ringbearer)](LICENSE)
[![go version](https://img.shields.io/github/go-mod/go-version/Unax2710/ringbearer)](https://github.com/Unax2710/ringbearer/blob/main/go.mod)
[![go reference](https://pkg.go.dev/badge/github.com/Unax2710/ringbearer.svg)](https://pkg.go.dev/github.com/Unax2710/ringbearer)
[![Unax2710/ringbearer MCP server](https://glama.ai/mcp/servers/Unax2710/ringbearer/badges/score.svg)](https://glama.ai/mcp/servers/Unax2710/ringbearer)

**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, macOS 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](https://github.com/Unax2710/ringbearer/blob/main/docs/configuration.md#saving-ram)).

![ringbearer dashboard: server card with sessions, calls, RAM and CPU, and the live activity list per client](https://raw.githubusercontent.com/Unax2710/ringbearer/main/docs/dashboard.png)

*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](https://github.com/Unax2710/ringbearer/blob/main/docs/clients.md#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 / macOS** (installs into `~/.local/bin`, no sudo, checks the SHA-256 checksum):

```sh
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):

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

**Windows with [Scoop](https://scoop.sh)** (update it with Scoop, not with `ringbearer update`: see [install.md](https://github.com/Unax2710/ringbearer/blob/main/docs/install.md#install-the-binary)):

```powershell
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](https://github.com/Unax2710/ringbearer/releases) instead, check the SHA-256 and the build attestation ([how](https://github.com/Unax2710/ringbearer/blob/main/docs/security-model.md#verifying-downloads-and-code-signing)), 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, LaunchAgent, or a scheduled task on Windows):

```sh
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](https://github.com/Unax2710/ringbearer/blob/main/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:

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

All fields (`env`, `${VAR}` secrets, `enabled`, `idleTimeout`): [docs/configuration.md](https://github.com/Unax2710/ringbearer/blob/main/docs/configuration.md).

## Connect your clients

**Claude Code and Codex:**

```sh
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:

```sh
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](https://github.com/Unax2710/ringbearer/blob/main/docs/clients.md).

## Documentation

- [Installing](https://github.com/Unax2710/ringbearer/blob/main/docs/install.md): every install method, start at logon, updating, uninstalling, corporate machines.
- [Connecting clients](https://github.com/Unax2710/ringbearer/blob/main/docs/clients.md): Claude Code, Codex, Claude Desktop bridge, the client table, legacy SSE, protocol versions.
- [Configuration](https://github.com/Unax2710/ringbearer/blob/main/docs/configuration.md): `relay.json`, commands and flags, file locations, dashboard, saving RAM.
- [Security model](https://github.com/Unax2710/ringbearer/blob/main/docs/security-model.md): access checks, tokens, verifying downloads, code signing.
- [FAQ](https://github.com/Unax2710/ringbearer/blob/main/docs/faq.md): limitations, and why not another project.
- [Development](https://github.com/Unax2710/ringbearer/blob/main/docs/development.md): building from source, testing (CI only), releases.
- [Changelog](https://github.com/Unax2710/ringbearer/blob/main/CHANGELOG.md), [Contributing](https://github.com/Unax2710/ringbearer/blob/main/CONTRIBUTING.md), [Code of conduct](https://github.com/Unax2710/ringbearer/blob/main/CODE_OF_CONDUCT.md). Questions: [Discussions](https://github.com/Unax2710/ringbearer/discussions).

[![ringbearer MCP server – quality and maintenance score on Glama](https://glama.ai/mcp/servers/Unax2710/ringbearer/badges/card.svg)](https://glama.ai/mcp/servers/Unax2710/ringbearer)

## 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](https://github.com/Unax2710/ringbearer/blob/main/docs/security-model.md). To report a vulnerability: [SECURITY.md](https://github.com/Unax2710/ringbearer/blob/main/SECURITY.md).

## License

[MIT](LICENSE)

TDQS

B3.3/5.0

Scored across 16 tools

Disambiguation4/5

Most tools target clearly distinct MCP features or demo actions. A few pairs overlap conceptually, especially the deprecated logging toggles versus trigger-log-messages and the subscription toggles versus trigger-resource-update, but the descriptions clarify the intended distinction.

Naming Consistency4/5

Names consistently use lowercase kebab-case with action-oriented prefixes such as get-, trigger-, and toggle-. The bare 'echo' and the longer 'gzip-file-as-resource' are minor deviations but still readable and predictable.

Tool Count4/5

Sixteen tools is slightly on the heavy side, but this appears to be a protocol/demo server where each tool showcases a distinct MCP capability. The count is reasonable for that purpose, though a few legacy/deprecated tools could be trimmed.

Completeness4/5

The surface covers a broad range of MCP protocol features: echo, annotations, env, headers, resources, resource links/references, structured content, progress, list changes, logging, and subscriptions. Some protocol areas such as sampling, elicitation, or prompt-specific operations are not represented, but the core demo surface is strong.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues