McpHub

io.github.John0KingPublished by GitHub account John0Kingv0.0.1.1Updated Oct 24, 2026

MCP bridge that folds multiple MCP servers' capabilities into a few fixed tools for AI tools.

Overview

AI-generated overview

McpHub is a local MCP bridge that folds the tools, prompts and resources of several upstream MCP servers into a few fixed tools for an AI assistant.

What you can do
List the tools, prompts and resources of all configured upstream MCP servers, optionally filtered by kind, through list_mcp_capabilities. Look up the full calling details and parameter schema of one capability by its qualified serverName.capabilityName name. Invoke any upstream capability by qualified name with arguments, passing the call through to the right server. Run as a stdio process or as an HTTP endpoint on a chosen port, reading a shared configuration file.
When to use it
Useful when an assistant should reach many MCP servers through one connection instead of registering each server separately, or when you want a single place to list and call capabilities across servers.
Requirements
Runs locally as a .NET process (dotnet run or the dnx NuGet package). Needs a configuration file listing upstream servers, either passed with --config or auto-discovered from mcp.json, .mcp.json, .vscode/mcp.json or claude_desktop_config.json. Upstream servers may need their own commands, environment variables and headers.
Before you install
The configuration file can hold upstream API keys and Authorization headers, and supports environment variable substitution, so keep it out of shared or versioned locations. Calls are passed through to upstream servers, so any write, send or delete those servers perform happens through McpHub. HTTP mode listens on a local port; restrict who can reach it.

Installation

In SourceWeft

  1. Open McpHub in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

McpHub

MCP bridge -- folds the capabilities (tools / prompts / resources) of multiple MCP servers into 4 fixed tools, exposed uniformly to AI tools.

Quick Start

stdio mode (default)

bash
dotnet run --project src/McpHub -- --config examples/mcp-hub.config.json

Configure in your AI tool's mcp.json:

json
{  "servers": {    "mcp-hub": {      "command": "dotnet",      "args": [        "run",        "--project", "path/to/McpHub",        "--", "--config", "path/to/mcp-hub.config.json"      ]    }  }}

HTTP mode

bash
dotnet run --project src/McpHub -- --http --port 8080 --config examples/mcp-hub.config.json

Client connects to http://localhost:8080/ (Streamable HTTP).

CLI Options

OptionAliasDescriptionDefault
--config-cPath to the MCP configuration fileAuto-discovered
--http-Use HTTP (Streamable HTTP) transportstdio
--port-HTTP mode listening port8080
--workspace-wWorkspace folder for ${workspaceFolder} substitutionCurrent directory
--verbose-Output verbose diagnostic logs to stderrOff

暴露的 3 个 Tool

Tool说明
list_mcp_capabilities列出所有上游 MCP server 的可用能力(tools/prompts/resources),可选 kind 过滤
describe_mcp_capability查询某个能力的完整调用方式(参数 schema 等),输入限定名 serverName.capabilityName
call_mcp_capability实际调用某个能力,传入限定名 + arguments

配置文件格式

兼容 VS Code 族(servers 键)和 Claude/Cursor 族(mcpServers 键),自动推断 transport 类型:

json
{  "servers": {    "filesystem": {      "command": "npx",      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path"],      "env": { "API_KEY": "..." }    },    "remote-server": {      "type": "http",      "url": "https://example.com/mcp",      "headers": { "Authorization": "Bearer xxx" }    }  }}

支持变量替换:

  • ${workspaceFolder} — 工作区目录
  • ${env:VAR_NAME} — 环境变量

配置文件发现顺序(未指定 --config 时):

  1. --config 显式指定
  2. 当前目录 mcp.json
  3. 当前目录 .mcp.json
  4. .vscode/mcp.json
  5. claude_desktop_config.json

架构

AI 工具  ←stdio/http→  McpHub  ←stdio/http→  多个上游 MCP Server                         │                         ├── list_mcp_capabilities  → 聚合所有 server 的 tools/prompts/resources                         ├── describe_mcp_capability → 透传 schema 详情                         └── call_mcp_capability     → 透传调用

详见 设计文档。

Source: README.md at commit 36f0fd0

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.0.1.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts