mcprig
by akrhin
README.md
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="design/mcprig/logo-hand-dark.png">
<img src="design/mcprig/logo-hand-light.png" width="220" alt="mcprig">
</picture>
</p>
# mcprig
One static Go binary that serves many MCP servers through a single MCP endpoint, with a web panel.
[](https://github.com/akrhin/mcprig/releases) [](LICENSE) [](go.mod)
A client that talks to a dozen MCP servers pays for a dozen tool lists in its
context before it asks anything. mcprig puts them behind ten meta-tools, groups
servers into named sets, runs each set as its own process with its own port and
key, and manages the whole registry from a web panel.
**Documentation:** [docs](docs/index.md) — install, configuration, CLI, panel,
meta-tools, architecture. Русский: [docs/ru](docs/ru/index.md).
- Ten meta-tools instead of a whole tool catalogue
- One endpoint, one key per named set
- Registry, keys and live call tail in the panel
- Set composition, import/export, and a ready-to-paste agent prompt built from a set's tools
- Sandbox for stdio servers, OAuth for remote ones
- One static binary, no runtime dependencies
## Quick start
Release archives cover linux and darwin on amd64 and arm64. Linux amd64:
```bash
curl -LO https://github.com/akrhin/mcprig/releases/download/v0.9.0/mcprig_0.9.0_linux_amd64.tar.gz
tar -xzf mcprig_0.9.0_linux_amd64.tar.gz
MCPRIG_PASSWORD=change-me ./mcprig panel
```
Open <http://localhost:9091>, sign in as `admin`, add a server, add a set that
contains it, press **Start**, then issue a key for the set. The panel shows the
token once; save it where only you can read it:
```bash
umask 077; printf '%s' '<token>' > demo.key
```

*The panel: a set starts, its 25 tools appear, a key is issued; the call from the agent lands in the live tail.*
Docker works the same way, with no Go toolchain needed:
`docker pull ghcr.io/akrhin/mcprig:latest` (`latest-full` adds node and python for
`npx`/`uvx` downstreams). systemd units, archive contents and the state
directory: [docs/en/install.md](docs/en/install.md).
## Connect a client
`init` prints a fragment for the client's own config file and never edits it:
```bash
./mcprig init --client claude --set demo \
--remote http://127.0.0.1:9100/mcp --key-file ./demo.key
```
```json
{
"mcpServers": {
"mcprig-demo": {
"type": "http",
"url": "http://127.0.0.1:9100/mcp",
"headers": {
"Authorization": "Bearer <token>"
}
}
}
}
```
`--client opencode` prints `mcp` JSON, `--client codex` prints a TOML table. The
port in an endpoint is the set's own: the set header shows it as a chip and the
top bar prints the full endpoint
([docs/en/panel.md](docs/en/panel.md#what-it-shows)). For a
client that spawns the binary itself, drop `--remote` and pass `--config` with
that set's `servers.json` instead: the fragment then runs `mcprig stdio` with no
port and no key. The panel writes a set's config into its state directory —
`$MCPRIG_DATA_DIR/sets/demo/servers.json`, with `MCPRIG_DATA_DIR` defaulting to
`~/.local/state/mcprig` — while `~/.config/mcprig/sets/demo/servers.json` is the
file the `mcprig-set@` systemd unit runs
([docs/en/install.md](docs/en/install.md#state-on-disk)). Both forms with real
output: [docs/en/cli.md](docs/en/cli.md#init).
## Architecture
Client → one set endpoint → ten meta-tools (six work with servers, four serve
resources and prompts) → the downstream servers of that set.
The panel supervises one `mcprig serve` process per set, so a restart or a crash
of one set leaves the others serving. Every picture below opens interactively
(themes, zoom, PNG/SVG export) by a click on it, and the spec it is generated
from sits next to it as `.json`.
<details>
<summary>Architecture: client, set, servers, panel, state files</summary>
[](docs/diagrams/mcprig.architecture.en.html)
</details>
<details>
<summary>With a proxy and without: what the context pays, what the operator gets</summary>
[](docs/diagrams/mcprig.why.en.html)
</details>
<details>
<summary>What one binary does: serve, protect, observe, operate</summary>
[](docs/diagrams/mcprig.capabilities.en.html)
</details>
How it compares with other proxies and where it stays weaker:
[docs/en/alternatives.md](docs/en/alternatives.md).
| | mcprig | Docker MCP Gateway | MetaMCP | 1mcp | sparfenyuk/mcp-proxy |
| --- | --- | --- | --- | --- | --- |
| delivery | one static Go binary | Docker CLI plugin, servers as containers | compose with Postgres | npm, Node | Python, PyPI |
| many servers behind one endpoint | yes, one per set | yes | yes, a namespace per endpoint | yes | no, one server per process |
| what the client sees | ten meta-tools | the whole catalogue | the whole catalogue | the whole catalogue, or three lazy tools | the whole catalogue |
| web panel | yes | no, Docker Desktop | yes | not in the docs | no |
| sandbox for stdio servers | bubblewrap | container isolation | not stated | not stated | no |
| state on 2026-12-02 | active | active | archived 2026-11-12 | active | active |
Rows come from each project's own README, not from a running instance; "not
stated" means the README does not describe it. Sources and caveats:
[docs/en/alternatives.md](docs/en/alternatives.md).
## Configuration
A set is one `servers.json` in the lazy-mcp format, read as-is: `servers[]` with
`command` or `url`, plus `env`, `headers`, `sandbox`, `transport`,
`permissions`. The panel writes the same file for the sets it runs, so a config
made by hand and one made in the browser are not two formats.
`"sandbox": {}` puts a stdio server under `bubblewrap`: read-only root, no
`/home`, no network, `prlimit` limits. A server tagged `untrusted` cannot start
without it. Field reference and what the sandbox does not limit:
[docs/en/configuration.md](docs/en/configuration.md).
## Security defaults
A set with no `authToken` refuses to start unless it is explicitly open; the
panel password is constant-time compared with rate limiting per IP; tokens are
returned in full once and as a prefix afterwards. Auth modes, host policy,
permission rules, limits and the 4 MiB body cap:
[docs/en/configuration.md](docs/en/configuration.md) and
[docs/en/panel.md](docs/en/panel.md).
## Release builds
Since `0.8.0` there is one product and one build. Version `0.7.0` shipped as two
builds, **baseline** and **improved**; that is history, described in
[docs/en/release-0.7.0.md](docs/en/release-0.7.0.md).
## Status
Pre-1.0, single operator: one panel, one password, no per-user roles. CLI help
and log lines are Russian.
Issues and pull requests follow [CONTRIBUTING.md](CONTRIBUTING.md). Security
reports: [SECURITY.md](SECURITY.md).
## License
MIT, see [LICENSE](LICENSE).
---
[English](README.md) · [Русский](README.ru.md)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues