MCP Hubv1.0.1

Set up your MCP servers once. Use them in every client.

A local hub that manages all your MCP servers in one place, tests them, and serves them bundled behind a single endpoint to Claude Code, Claude Desktop, Codex, Copilot, Cursor and VS Code.

git clone https://github.com/endorfin/mcp-hub.git && cd mcp-hub && python3 app.py

Python 3.11+ · no dependencies · macOS, Linux, Windows · MIT license

Clients

     

    MCP Hub
    Compact mode
    Tool definitions per request
    0

    Servers

      Call logthrough the hub, with client and duration

      Live demo with example data: switch servers, pick a profile, turn on compact mode.

      One hub instead of six config files

      Every MCP client keeps its own list of servers. Add a server and you edit four config files; rotate a token and you hunt it down in all of them, usually in plain text. MCP Hub turns that around: servers live in one place, secrets stay in the keychain, and every client gets a single entry pointing at the hub.

      Connect every client with one click

      Settings → Clients finds Claude Code, Claude Desktop, Codex, Cursor, VS Code and Copilot CLI on your machine and adds the hub to each, writing a backup of the file first. By hand, every client needs exactly one entry.

      Bring your existing servers along

      Paste what you already have: JSON from Claude, Cursor or VS Code, TOML from Codex, or mcp add commands. The hub detects the format, shows a preview, and can remove the servers from the old client in the same step.

      No tokens in plain text

      One click on the lock moves a value into the keychain. Remote servers with OAuth only need their URL.

      servers.json only holds a reference. The value comes from:

      • macOS keychain
      • Secret Service on Linux
      • Windows Credential Manager
      • 1Password CLI
      • Environment variables
      GRAFANA_SERVICE_ACCOUNT_TOKEN – env of grafana
      glsa_7XqV3bN0pLmT29dKe8sYw4cZ_1f9a0b2c

      • ${op://Private/Grafana/token} 1Password CLI
      • Bearer ${env:GITHUB_TOKEN} environment of the hub

      Remote server with OAuth – HTTP · mcp.sentry.dev
      sentry

      Secrets in tool calls stay out of the log

      Tool calls carry more than you think: a file with an .env, an error message with a connection string. The hub checks arguments and responses of every call for its own tokens and known key formats such as GitHub, AWS, Stripe or OpenAI keys, JWTs and passwords in URLs. In the log they only appear masked, and the statistics count every hit.

      Per server you decide whether the agent gets the value or only the marker. The upstream server itself is never affected.

      filesystemread_text_file1 secret · github-token
      Call log
      
                  
      The agent receives
      
                  
      Hide secrets from the agent

      Nothing reaches your agents unreviewed

      Agents read every tool description as part of their prompt. The hub remembers what you approved: if a server changes a tool later or adds a new one, the hub holds it back until you have looked at the change. The same goes for prompts, resource templates and server instructions.

      A scanner flags typical signs of tool poisoning on the way: hidden instructions, invisible characters, references to credential files like ~/.ssh. A flagged tool is never trusted automatically.

      githubcreate_issue

        Compact mode: 300 tokens instead of 60,000

        Clients load every tool definition into their context on every request. At /mcp/compact they get three tools instead and find the rest by searching, locally, without an index or a model. Each client picks its mode by its URL.

        All tools on /mcp≈ 60,000 tokens
        Compact on /mcp/compact≈ 300 tokens

        Tool definitions per request with 200 tools, as in the README.

        search_toolsfinds tools by what you want to do
        describe_toolfull description and input schema of one tool
        call_toolcalls a tool by name with its arguments

        See which tools flood the context

        Every tool response lands in the agent's context, and a single page snapshot can easily take ten thousand tokens. The hub records the size of each response. The statistics show the response volume, the median per server and the five tools with the largest responses, with an estimate in tokens.

        Largest responsesmedian per call

        Profiles, each with its own endpoint

        A profile remembers which servers and tools are on. Switch in one click and connected clients get the new tool list live. Every profile also has its own URL, so Copilot can work with “Frontend” only while Claude Code gets everything.

        An endpoint can also be limited to reading tools, or to tools that delete nothing, based on the tools’ own annotations.

        Claude Code127.0.0.1:4747/mcp
        Copilot CLI127.0.0.1:4747/p/Frontend/mcp
        Codex127.0.0.1:4747/p/Ops/mcp/compact
        Reviewer agent127.0.0.1:4747/p/Review/mcpread-only

        Servers that are off in the hub start on demand for a profile endpoint and stop again after 10 idle minutes.

        Six color schemes, light and dark

        Default, Slate, Graphite, Lavender, Coffee and Teal, each in light and dark, with the interface in English or German. Try them right here: this page uses the same schemes as the app.

        Appearance

        Management, test bench and log in one window

        Servers with tags, status and usage; an inspector to call any tool by hand; a call log that shows which client called what, how long it took, how large the response was and what came back.

        Restarts on its own
        Crashed servers come back after 2, 4, 8, 16 and 32 seconds; clients hear about it through list_changed.
        Live updates
        Changes reach Claude Code, VS Code and Claude Desktop, through the bundled bridge, without reconnecting.
        Inspector
        Connect to a server directly and call tools, resources and prompts with form or JSON input.
        Statistics
        Calls, error rate, median and p95 per server, response volume, and the slowest and largest tools, over the last 5,000 calls.
        Local only
        Listens on 127.0.0.1 and rejects foreign origins and DNS rebinding.
        Updates with one click
        A chip in the header shows a new release; the hub updates and restarts itself.
        Starts at login
        LaunchAgent on macOS, systemd user service on Linux, scheduled task on Windows.
        No baggage
        Python standard library, one process, no build step. Tested in CI on all three platforms.

        Running in two minutes

        Python 3.11 or newer is all it needs. Nothing to build, nothing to install with pip.

        1. Install and run

          Clone the repository or download the latest release, then open the interface at http://127.0.0.1:4747.

          git clone https://github.com/endorfin/mcp-hub.git
          cd mcp-hub && python3 app.py
        2. Add servers

          Click + → “Import…” and pick an installed client to take over its servers, or paste an existing configuration. “Add server…” creates one by hand.

        3. Connect your clients

          Settings → Clients → “Connect clients”, or add the one entry by hand:

          claude mcp add --scope user --transport http mcp-hub http://127.0.0.1:4747/mcp
        4. Start at login

          Stop the hub from step 1 and register it, so your clients find it after a reboot.

        One entry per client. Everything else lives in the hub.

        Open source under the MIT license. Clone it, read the code, open an issue.