mcplexer

MCPlexer Documentation

MCPlexer is a directory-scoped MCP gateway that sits between your AI client and multiple downstream MCP servers. It provides routing, authentication, tool namespacing, approval workflows, and audit logging — all from a single configuration.

architecture
┌─────────────┐ │ AI Client │ Claude Desktop, Cursor, Windsurf, etc. │ (MCP Host) │ └──────┬───────┘ │ stdio / HTTP / socket ▼ ┌──────────────────────────────────────────┐ │ MCPlexer Gateway │ │ │ │ ┌──────────┐ ┌────────┐ ┌───────────┐ │ │ │ Routing │ │ Auth │ │ Approvals│ │ │ │ Engine │ │ Scopes │ │ & Audit │ │ │ └──────────┘ └────────┘ └───────────┘ │ └──┬──────┬──────┬──────┬──────┬───────────┘ │ │ │ │ │ ▼ ▼ ▼ ▼ ▼ ┌──────┐┌──────┐┌──────┐┌──────┐┌──────┐ │GitHub││Linear││ Click││ Sentry││ Your │ │ MCP ││ MCP ││ Up ││ MCP ││ MCP │ │Server││Server││ MCP ││Server││Server│ └──────┘└──────┘└──────┘└──────┘└──────┘

Key Concepts

ConceptDescription
WorkspaceA directory-scoped security context. Each workspace has a root path and a default policy (allow or deny).
Downstream ServerAn MCP server instance (stdio or HTTP) that MCPlexer manages. Each gets a unique namespace prefix.
Route RuleMaps a workspace + path glob + tool pattern to a downstream server, auth scope, and policy.
Auth ScopeA credential container — environment variables, HTTP headers, or OAuth tokens injected into downstream calls.
NamespaceTool names are always prefixed as {namespace}__{toolname} to prevent collisions across servers.
PolicyEither allow or deny. Deny-first evaluation means explicit denies always win.

How It Works

  1. Your AI client connects to MCPlexer via stdio, HTTP, or Unix socket
  2. MCPlexer discovers tools from all configured downstream servers
  3. When a tool call arrives, the routing engine matches it to the correct downstream
  4. Auth scopes inject credentials before forwarding the request
  5. Approval workflows gate sensitive operations
  6. Every call is audit logged with full redaction of secrets

Documentation

Getting Started

  • Quickstart — Install, configure, and make your first tool call
  • Concepts — Architecture, request lifecycle, and transport modes

Platform Support

Desktop app: macOS (Apple Silicon and Intel). Linux via make electron-package-linux. Windows is not supported. CLI: macOS, Linux, and anywhere Go compiles to.

Configuration

Core Concepts

Features

Operations