Skip to main content

mcp-switchboard-hub

The server half of mcp-switchboard.

It accepts outbound WebSocket tunnels from machines running local stdio MCP servers, speaks MCP to each tunnelled server, and re-serves every tool from one place:

  • /mcp — Streamable HTTP MCP endpoint for consumers (n8n, agents), also available scoped per machine (/mcp/host/{label}) or per server (/mcp/host/{label}/server/{server}).
  • / — a web console to browse connections, servers and tools, call any tool by hand, and read back every call.
  • /api/* — the JSON API behind the console.
  • /metrics — Prometheus.
  • Loki export and a SQLite call log.

Running

pip install mcp-switchboard-hub
MCP_SWITCHBOARD_TUNNEL_TOKEN=... mcp-switchboard-hub

It listens on two ports on purpose: the tunnel endpoint (default 127.0.0.1:8097) is the only thing meant to face the internet and always requires a bearer token, while the console, API, /mcp and /metrics live on a second listener (default 127.0.0.1:8099) that binds loopback and is unauthenticated by default.

Everything is configured through MCP_SWITCHBOARD_* environment variables, read from the environment or a .env file. Any value that starts with / and points at an existing regular file is replaced by that file's contents, so secrets can be passed as paths without separate *_FILE variables.

See the main README for the full picture, and docs/PROTOCOL.md for the tunnel wire format.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_switchboard_hub-0.2.0.tar.gz (54.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_switchboard_hub-0.2.0-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_switchboard_hub-0.2.0.tar.gz.

File metadata

  • Download URL: mcp_switchboard_hub-0.2.0.tar.gz
  • Upload date:
  • Size: 54.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.15

File hashes

Hashes for mcp_switchboard_hub-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d4db446cf08c3001e034aca59834b42015adf1dcc35eeef86bb5f38a2dd0bab7
MD5 5b2ae61b676544d87ca61fb3ab3ca4c6
BLAKE2b-256 28362c4d8d2f29e3681e7b6abcf7d2caee36f912125d8ebe7cd312062663d209

See more details on using hashes here.

File details

Details for the file mcp_switchboard_hub-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_switchboard_hub-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0493f823fb8bb8c68eb4143cfc06076e3371757424258a1ef37ced6f2abaf3d
MD5 cacfdd25371fd340c059a9b8eb4e08aa
BLAKE2b-256 935fe1f7789ea5e6767001f13c7a7b5c8818259ee35d167b970f14f86251811c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page