Switchboard
Allows managing GitHub repositories with configurable permissions (e.g., write access but delete_repo blocked).
Enables Gmail integration with configurable read/write/full access.
Allows read-only access to Notion pages and databases.
Provides Slack integration that can be toggled off or set to specific permissions.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Quickstart · Architecture · Connectors · Security · CLI · Docs
What it is
Switchboard is a gateway that sits between your agent clients (Claude Code, Claude Desktop, Codex, Antigravity and others) and the MCP servers and app connectors they use.
Clients talk to one endpoint on 127.0.0.1:8088 (streamable HTTP) or through a stdio bridge. Every call is checked against a per-client policy, gated by owner presence where it matters, and written to a hash-chained audit log.
Credentials live in a local encrypted vault. Nothing is hosted for you.
Related MCP server: MCPGate
Why
Hosted tool routers | MCP Switchboard | |
Where tokens live | Their cloud | Your machine (local vault) |
Who can call what | Account-level | Per client, per server, per tool, with a scope ceiling |
Approving risky calls | Dashboard click | Owner presence (Windows Hello where available) |
Audit | Vendor logs | Local hash-chained log you can verify |
Cost | Subscription | Free, Apache-2.0 |
Trade-off | Zero setup, many prebuilt apps | You bring your own OAuth apps and keys; connector coverage is smaller |
The honest cost is setup: each provider needs an OAuth app or key that you own. See docs/connectors/OWNER_SETUP.md and the cost comparison in docs/PROVIDER_COST_COMPARISON.md. Feature-by-feature positioning against a hosted hub is in docs/COMPOSIO-PARITY.md.
Architecture
flowchart LR
subgraph Clients
A1[Claude Code]
A2[Claude Desktop]
A3[Codex]
A4[Antigravity / dsh]
end
A1 & A2 & A3 & A4 -->|stdio| B[switchboard bridge<br/>--client id]
B -->|HTTP + client key| G
A3 -.->|HTTP mode| G
subgraph G["Gateway 127.0.0.1:8088"]
direction TB
P1[Client key check] --> P2[Policy<br/>allow / deny, scope ceiling]
P2 --> P3[Owner presence<br/>approval gate]
P3 --> P4[Audit chain<br/>+ secret scrubbing]
end
G --> C1[Connector toolkits<br/>local, per provider]
G --> C2[Mounted MCP servers<br/>npx / binary / remote]
C1 --> V[(Encrypted vault)]
C1 --> X[Provider APIs]Details, module by module: docs/ARCHITECTURE.md and docs/architecture/.
Quickstart
Requires Node >= 22.12. Windows gets the full owner-presence flow (Windows Hello); other platforms fall back to a typed challenge at the gateway console, which the threat model rates as weaker.
# 1. install and build
git clone https://github.com/Mas-AI-Official/mcp-switchboard.git
cd mcp-switchboard
npm install
npm run build
# 2. create a starter config and the home directory
node dist/cli.js init
# 3. start the gateway (127.0.0.1:8088)
node dist/cli.js serve
# 4. in another terminal: register a client and wire it up
node dist/cli.js client add claude-code
node dist/cli.js install claude-code --dry-run # preview, changes nothing
node dist/cli.js install claude-code # back up, write, probe
# 5. verify
node dist/cli.js doctor
node dist/cli.js list # governed tool listswitchboard and mcp-switchboard are the installed binary names (npm link or a global install exposes them); the examples above call node dist/cli.js directly.
Supported install targets: claude-code, claude-desktop, codex, antigravity, dsh, plus gemini, cursor and vscode.
Default mode is the stdio bridge (switchboard bridge --client <id>), which authenticates as that client. --mode http points the client at the gateway URL instead. --scope project writes the project-local config.
Rollback: switchboard uninstall <client> removes only the Switchboard entry, after taking a backup.
Connectors
A connector is a local toolkit: provider auth definition, connected accounts held in the vault, and a generated MCP server per toolkit. Provider definitions are data, not code.
Provider definitions | Toolkit overlays | Notes |
|
| Google consent screen must be out of Testing or refresh tokens expire in 7 days |
| none | Needs your own Meta app |
| none | Media generation; see owner setup |
|
| OAuth app you create |
| none | See owner setup |
| n/a | Reference MCP server ( |
The list above is read from src/connectors/providers/ and src/connectors/toolkits/. A definition existing is not the same as a proven live integration: switchboard coverage counts a row as working only when an owner-run probe proved it. Per-platform steps, limits and checks: docs/connectors/OWNER_SETUP.md. Rules every connector must follow: docs/CONNECTOR_CONTRACT.md.
Connect one provider:
printf '%s' '<client-id>' | node dist/cli.js vault set myapp_client_id
printf '%s' '<client-secret>' | node dist/cli.js vault set myapp_client_secret
node dist/cli.js authconfig add <provider> --client-id-ref myapp_client_id --client-secret-ref myapp_client_secret
node dist/cli.js connect <provider> --account work
node dist/cli.js accounts probe <provider>/work
node dist/cli.js link <client> <toolkit> # let a client use that toolkitToken or key providers skip the app: switchboard connect <provider> --token-stdin.
Local connectors (no subscription)
A hosted tool router signs you in to Gmail, YouTube, Slack and the rest once, keeps the tokens in its cloud and charges a subscription. Switchboard does the same job locally: you connect each provider once with an OAuth app or key that you own, the tokens are sealed in your local vault, and every agent you link reaches them through the one governed endpoint. No subscription, no third party in the path, and nothing leaves your machine except the calls to the provider itself.
Register your app at the provider (a shared app is impossible for an open-source program): docs/connectors/OWNER_SETUP.md has the steps and the limits, per platform.
Connect:
switchboard connect <provider>, or press Connect on the dashboard's Connectors page. An account is stored only after the provider's identity probe passes.Toolkits:
switchboard toolkits sync <provider>thenswitchboard toolkits enable <toolkit>(or the toggle on the Connectors page) mounts the provider's API as agent tools. Generated definitions live on your machine and are never committed.Link clients:
switchboard link <client> <toolkit> --max-scope write --account <account>decides which agent may use what, and as which account. It edits theclients:section (the one access table;unlinkandlinksare its counterparts), so the gateway asks you to be present first, exactly as forclient add. Calls that publish, send or delete need your approval, and the approval is bound to the account and to the exact request (method, host, path, body), so an approval for one account cannot run as another.
Curated and seeded providers. The 13 curated definitions (Google, Meta, LinkedIn, TikTok, X, Slack, Notion, GitHub,
ElevenLabs, Linear, Higgsfield, Buffer) are written and checked by hand. Beside them ship 594 seeds: candidate
definitions of long-tail providers, derived from the authentication settings of the MIT-licensed
Activepieces community pieces (facts only, never piece code; see
NOTICE). A seed enables Connect and nothing more: it is marked unverified_seed, has no toolkits and no identity
probe, and it is never counted as working. A curated definition always wins over a seed of the same name, and
writing your own <SWITCHBOARD_HOME>/providers/<slug>.json replaces one.
Honest counts. Only a row proven live by an owner-run probe is called working (switchboard coverage). A registered
provider, a mapped action or a seed is not a working one.
switchboard providers list --seeds # curated and seeded providers, with their authentication modes
switchboard providers show <provider> # what to create at the provider, redirect URIs, assumptions for a seed
switchboard dashboard login # then open #/connectors: search, filter, Connect, accounts, toolkit on/off
node scripts/verify-connectors-seed.mjs # the oracle: seeds validate, curated wins, a seed never reports workingArchitecture and security rules: docs/architecture/LOCAL_TOOLKITS.md. File-by-file notes: docs/architecture/CONNECTORS.md.
Security model
Per-client keys. Each client has its own key.
client addandclient rotateon a running gateway require an owner presence check;client rmdoes not, since revoking is always safe. Key files are user-scope protected (DPAPI on Windows, mode 0600 elsewhere).Policy per client per tool. Every call is classified
read < write < full, checked against the server ceiling and the client'smax_scopeandmax_risk. Per-toolenabled: falseis a hard deny. Upstream hints can only tighten a scope, never loosen it.Owner presence. High-risk calls wait for an out-of-band approval (
switchboard approvals) that only the running gateway signs, after a presence check (Windows Hello where available).Kill switch.
switchboard kill onrefuses every tool call, resource read and prompt get; turning it off needs presence.Audit.
audit.logis a SHA-256 hash chain;switchboard audit verifyreports the first break. Write and full calls log an attempt row first and fail closed.Secret hygiene. Audit rows, errors and CLI output pass through a secret scrub (exact handled values, then token shapes). I/O capture in logs is off by default.
Network guard. Outbound connector calls go through a guarded fetch with a host lock (
src/netguard.ts).
What it does not do: it does not isolate two processes running as the same OS user, it has no multi-tenant mode, and it does not host anything publicly. See docs/THREAT_MODEL.md for the full boundary and residual risks.
CLI reference
Global option: -c, --config <path> (default switchboard.config.yaml). Run switchboard <command> --help for flags.
Command | Purpose |
| Create a starter config and home directory |
| Run the gateway (transports come from config) |
| Run only the HTTP endpoint and web console |
| Check environment, config and credentials |
| Mount every server and print the governed tool list |
| Register or remove Switchboard in an MCP client (preview, backup, probe, rollback) |
| Relay a client's stdio to the gateway, authenticating as that client |
| Register clients and manage their keys |
| Keys for the HTTP |
| Grant or inspect which client may use which toolkit |
| Connect provider accounts and register OAuth apps |
| Browse providers and toolkits; honest working counts |
| Locally stored secrets |
| List, show, approve or deny calls waiting for the owner |
| Walk the audit hash chain |
| Global kill switch |
| Named, switchable views over servers and tools |
| Tunnel |
| Detect a local OpenAI-compatible server for the offline council |
Protocol and compatibility
Built on MCP SDK v2. The gateway serves protocol 2026-07-28 and also the handshake-era protocols 2025-11-25, 2025-06-18 and 2025-03-26, so older clients keep working. Details: docs/MCP_SWITCHBOARD_BASELINE.md.
Verification
Correctness is checked by deterministic oracles: scripts that compute their own verdict and exit non-zero on failure, with no model in the loop. The current run is 46 oracles, 4373 checks, all passing.
npm run build
node scripts/run-oracles.mjs # all oracles, one table, sandboxed HOME
node scripts/run-oracles.mjs --only bridge,vault # a subset
npm run verify # build + npm audit + chain; stops at first failureEach oracle runs with a throwaway HOME and SWITCHBOARD_HOME, and provider keys scrubbed from its environment. What the oracles do and do not prove: docs/VALIDATION.md.
Documentation
Doc | Read it for |
Components and the single tool-call data flow | |
Trust boundaries, mitigations, residual risk | |
Rules every connector follows | |
Operating and recovering a deployment | |
Oracles, commands, what they prove | |
As-built baseline of this branch | |
Cost of providers vs hosted routers | |
Feature parity against a hosted hub | |
Phases shipped and planned | |
Problem and positioning | |
Per-platform OAuth app and key setup |
Status
Version 0.1.0, branch vnext/governed-hub. Alpha: the gateway, policy, presence, audit and bridge are covered by the oracles above; connector coverage grows as owners prove rows live. Planned work is in docs/ROADMAP.md.
License
Apache-2.0. See NOTICE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
One MCP endpoint for your company's tools, with per-person sign-in, policy and audit.
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
Open-source MCP gateway with per-agent tool permissions, call approvals and tool-change review.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA centralized gateway and router that integrates multiple MCP servers into a single endpoint with built-in policy enforcement and secret management. It features a Web GUI for managing tool access, audit logs, and multi-environment configurations across various sub-servers.-
- AlicenseNot gradedqualityDmaintenanceMCPGate aggregates multiple MCP servers into a single unified endpoint, enabling centralized tool management with granular filtering, automatic namespacing, and observability. Features a real-time web dashboard and optional PostgreSQL-backed audit trails for monitoring and controlling AI tool access across local and remote deployments.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceA self-hosted MCP hub that unifies multiple MCP server configurations behind a single local endpoint, with a web dashboard for management, live tool-call logging, and per-person access tokens.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables centralized management, proxying, and aggregation of multiple MCP servers behind unified endpoints, with a web GUI, server groups, tool filtering, and lifecycle controls.Apache 2.0