Project address:https://github.com/Omega-JS-Stack/omega/tree/main/packages/mcp-router
Purpose Omega MCP Router is intended for sessions that need to connect to multiple upstream MCP servers at the same time. A conventional MCP client that declares five servers must pay the cost for five servers: each server is started, and each server's full tool schema occupies the context window from the first token. This router instead uses a single stdio MCP server to proxy multiple upstream servers, tool schemas come from an on-disk cache, upstream processes are lazily started only on the first tool invocation that actually needs them, and a session can enable or disable upstreams for itself without touching disk or restarting anything.
Key capabilities
- A single MCP endpoint aggregates multiple upstream servers, reducing startup and context overhead in multi-server scenarios.
- Tools are exposed to clients as <upstream>__<tool>; in Claude Code they appear as names such as mcp__mcp-router__chrome-devtools__click.
- Upstream processes start on demand; a child process is shut down after 15 minutes without a call, together with what it started, and the next call starts a new child process. In-progress calls are not shut down; calls that arrive during shutdown are handled by the new child process rather than failing. When the host exits due to a signal or by closing the router's stdin, the router shuts down all upstreams, waits for a grace period to terminate what they started, and then exits.
- Session-level meta-tools: router__list_upstreams lists each upstream, on-disk enabled state, whether locked, whether active in the current session, number of cached tools, and the pid and idle time idle_ms when the child process is running; router__enable_upstream {name, env?} enables an upstream for the current session, unless already locked; env sets variables on the child process and restarts a running child process to make them take effect; router__disable_upstream {name} disables and stops the child process without modifying disk; router__refresh_upstream {name} starts it once, re-reads the tool list, and caches it.
- On-demand upstreams are not visible before a session requests them, so servers with many tools incur no cost until they are needed.
- Four default configurations are provided with the package (the material does not expand on the specific list).
Configuration and overlays Configuration has two layers, and only one of them is written: the in-package servers/<name>/config.json is the read-only default; after installation by a consumer it is located in node_modules; the user override layer is located at ~/.omega/mcp-router/servers/<name>/config.json, and ~/.omega/mcp-router/.env stores secrets.
The merge is shallow and field-level: top-level keys of override-layer entries override package entries, and the remaining content is retained.
"locked": true prevents an upstream from being woken. omega-mcp enable rejects it and points out that field with exit code 1 unless --force is passed; the in-session router__enable_upstream cannot override it at all. Disabling, removing, and refreshing a locked upstream are still allowed: the lock targets waking, not shutting down. A name that exists only in the override layer is a user-private upstream; no operation forks the defaults, and upgrading the package does not overwrite user override entries. omega-mcp manages the registry; each command reads the merged view and writes to the override layer.
Usage The router itself is a stdio MCP server. Registering the router with a client is not the CLI's responsibility: the omega Claude plugin declares it once in its .mcp.json. The omega Claude plugin launches the router directly from its bundled monorepo checkout directory; on a bare clone, bin installs its own dependencies on first launch, so users need no installation step, and developers editing the checkout directory also do not need to publish.
An upstream's command, args, and env can carry ${NAME} placeholders, which are resolved first from ~/.omega/mcp-router/.env and then from environment variables, so tokens go in .env rather than in configuration files. ${NAME:-default} uses the same lookup order, falling back to the literal default value when all lookups miss; optional values no longer need to be wrapped in sh -c commands; other shell forms (such as ${VAR:+…}) are passed through unchanged. The reserved name ${MCP_ROUTER_ROOT} is always resolved to the package root before any .env or environment lookup, so that in-package upstreams can point to launcher scripts shipped with the package, regardless of where the package is installed. The full guide is in docs/mcp-router/index.md in the OMEGA monorepo, covering architecture, launcher, plugin wiring, and alreadyknown gaps.
Use cases Suitable for scenarios where multiple upstream servers are connected in a single MCP session and where you want to reduce tool schema context usage and process startup overhead; suitable for use in Claude Code through the omega Claude plugin; also suitable for development and local use where upstreams need to be temporarily started and stopped at the session level while retaining on-disk default configuration and private override configuration.
Limitations and Licensing Licensed under the Elastic License 2.0. The source code can be used and modified for free; a license key can unlock paid features in production deployments and remove attribution (local development and test payments are always free); @omega.js/mcp-router may not be provided to third parties as a hosted or managed service. The material does not provide specific pricing, charging plans, supported platforms, installation commands, a default upstream list, or performance metrics.