Skip to main content
Glama

umcp (Unified MCP)

umcp solves MCP configuration sprawl by aggregating multiple upstream MCP servers behind one server entry.

Core features:

  • Aggregation with namespaced tools mapped to MCP-safe names: {category}_{provider}_{tool}

  • Tool aliasing via config (upstream + optional alias)

  • Round-robin env rotation (string[] values rotate per invocation)

  • Transport bridging:

    • umcp serve transport: stdio or Streamable HTTP

    • upstream transport: stdio, sse, or streamable-http

Install

npm install
npm test
npm run build

Install directly from GitHub:

npm install github:grittyninja/umcp

Run once with npx from GitHub:

npx github:grittyninja/umcp --help

Related MCP server: Mavryn

Config source of truth

umcp uses one JSONC file:

  • Default path: ~/.config/umcp/umcp.jsonc

  • Only .jsonc is supported.

  • On first run, umcp auto-creates this file with detailed placeholders.

Schema file in this repo:

  • umcp.config.schema.json

Example:

  • examples/umcp.config.jsonc

Hosted schema URL:

  • https://raw.githubusercontent.com/grittyninja/umcp/main/umcp.config.schema.json

CLI

umcp serve [--transport stdio|http] [--host 127.0.0.1] [--port 8787] [--path /mcp] [--config /path/to/umcp.jsonc]
umcp validate [--config /path/to/umcp.jsonc]
umcp dry-run [--config /path/to/umcp.jsonc]

Compatibility flags:

umcp --validate
umcp --dry-run

Before vs After

Before (3 separate servers in host config):

{
  "mcpServers": {
    "brave": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-brave-search"],
      "env": { "BRAVE_API_KEY": "..." }
    },
    "tavily": {
      "command": "npx",
      "args": ["-y", "tavily-mcp"],
      "env": { "TAVILY_API_KEY": "..." }
    },
    "linear": {
      "url": "https://linear-mcp.example.com/mcp"
    }
  }
}

After (single umcp entry):

{
  "mcpServers": {
    "umcp": {
      "command": "npx",
      "args": ["-y", "github:grittyninja/umcp", "serve", "--transport", "stdio"]
    }
  }
}

Your host then sees tools like:

  • web_search_brave_search

  • web_search_tavily_search

  • project_mgmt_linear_add_task

Naming rules

To keep names deterministic and MCP-compatible:

  • category names must match [a-zA-Z0-9_-]+

  • provider names must match [a-zA-Z0-9_-]+

  • tool aliases must match [a-zA-Z0-9_-]+

  • exported tool names are generated as {category}_{provider}_{tool} and must match ^[a-zA-Z0-9_-]{1,64}$

If an auto-discovered upstream tool name contains unsupported characters (for example .), umcp requires an explicit tools mapping with a valid alias.

Round-robin env rotation

In env, use either:

  • "KEY": "single-value"

  • "KEY": ["value-1", "value-2", "value-3"]

Array values rotate per invocation. State is in-memory and resets on process restart.

Structured logs

Logs are emitted as JSON lines to stderr:

  • config.loaded, config.created

  • provider.connected, provider.disconnected

  • tool.discovered, tool.registered, tool.called

  • env.rotated

  • dry_run.complete

  • config.invalid

Troubleshooting

If an upstream stdio provider uses npm/npx and your npm cache has ownership issues (for example EACCES under ~/.npm/_cacache), umcp auto-applies a fallback cache directory at ~/.cache/umcp/npm whenever no cache is configured or the configured cache is not writable.

You can also force this per provider in env:

"env": {
  "NPM_CONFIG_CACHE": "/Users/yan/.cache/umcp/npm"
}

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Centralized MCP control plane that proxies multiple upstream MCP servers with tool namespacing, filtering, policy enforcement, audit logging, and health checks.
      2 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Aggregates multiple MCP servers behind a single endpoint, letting MCP clients access all their tools through one URL and token while namespacing tools to avoid collisions.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables clients to connect once and access the union of multiple backend MCP servers' tools through a single unified interface, with namespaced tool routing, capability search, and health isolation.
      MIT