Skip to main content
Glama

MCP-Hub-MCP サーバー

他の MCP (Model Context Protocol) サーバーに接続して管理するハブ サーバー。

概要

このプロジェクトは、他のMCPサーバーに接続し、ツールをリストアップして実行できるMCPハブサーバーを構築します。これは、Cursorの40ツールというMCP制限を回避するのに特に役立ちます。Cursor外でも、使用頻度の低いツールを非表示にすることでAIのミスを減らすのに役立ちます。

Related MCP server: MCP-Hub-MCP Server

主な特徴

  • 設定ファイルによる他のMCPサーバーへの自動接続

  • 接続されたサーバーで利用可能なツールを一覧表示する

  • 接続されたサーバー上のツールを呼び出し、結果を返す

構成

mcp.jsonに以下を追加します:

npxの使用

{
  "mcpServers": {
    "other-tools": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-hub-mcp",
        "--config-path",
        "/Users/username/mcp.json"
      ]
    }
  }
}

システムプロンプト(またはカーソルルール)

Before processing a user's request, you must use the "list_all_tools" command to identify which tools are available.

これにより、AI アシスタントは、ツールを使用する前に常に利用可能なツールを確認するようになります。

インストールと実行

要件

  • Node.js 18.0.0以上

  • npm、yarn、またはpnpm

インストール

# Clone repository
git clone <repository-url>
cd mcp-hub-mcp

# Install dependencies
npm install
# or
yarn install
# or
pnpm install

建てる

npm run build
# or
yarn build
# or
pnpm build

走る

npm start
# or
yarn start
# or
pnpm start

開発モード

npm run dev
# or
yarn dev
# or
pnpm dev

設定ファイル

MCP-Hub-MCPサーバーは、Claude Desktop形式の設定ファイルを使用して他のMCPサーバーに自動的に接続します。設定ファイルは、以下の方法で指定できます。

  1. 環境変数: MCP_CONFIG_PATH環境変数を設定ファイルのパスに設定します

  2. コマンドライン引数: --config-pathオプションを使用して設定ファイルのパスを指定します

  3. デフォルトパス: 現在のディレクトリのmcp-config.jsonファイルを使用します

設定ファイルの形式:

{
  "mcpServers": {
    "serverName1": {
      "command": "command",
      "args": ["arg1", "arg2", ...],
      "env": { "ENV_VAR1": "value1", ... }
    },
    "serverName2": {
      "command": "anotherCommand",
      "args": ["arg1", "arg2", ...]
    }
  }
}

例:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/Users/username/Desktop",
        "/Users/username/Downloads"
      ]
    },
    "other-server": {
      "command": "node",
      "args": ["path/to/other-mcp-server.js"]
    }
  }
}

使用法

MCP-Hub-MCP サーバーは次のツールを提供します。

1. list-all-tools

接続されているすべてのサーバーからのツールのリストを返します。

{
  "name": "list-all-tools",
  "arguments": {}
}

2. call-tool

特定のサーバー上のツールを呼び出します。

  • serverName : ツールを呼び出すMCPサーバーの名前

  • toolName : 呼び出すツールの名前

  • toolArgs : ツールに渡す引数

{
  "name": "call-tool",
  "arguments": {
    "serverName": "filesystem",
    "toolName": "readFile",
    "toolArgs": {
      "path": "/Users/username/Desktop/example.txt"
    }
  }
}

コミットメッセージの規約

このプロジェクトは、自動バージョン管理と CHANGELOG 生成のためにConventional Commitsに従います。

形式: <type>(<scope>): <description>

例:

  • feat: add new hub connection feature

  • fix: resolve issue with server timeout

  • docs: update API documentation

  • chore: update dependencies

種類:

  • feat :新機能(マイナーバージョンアップ)

  • fix :バグ修正(PATCHバージョンのアップ)

  • docs : ドキュメントのみの変更

  • style : コードの意味に影響を与えない変更

  • refactor : バグを修正したり機能を追加したりしないコード変更

  • perf : パフォーマンスを向上させるコード変更

  • test : 不足しているテストを追加したり、既存のテストを修正したりする

  • chore : ビルドプロセスまたは補助ツールの変更

重大な変更: コミット フッターにBREAKING CHANGE:を追加して、メジャー バージョンをアップグレードします。

技術スタック

  • Node.js

  • タイプスクリプト

  • @modelcontextprotocol/sdk (バージョン: ^1.9.0)

  • ゾッド(バージョン: ^3.22.4)

ライセンス

マサチューセッツ工科大学

Available Tools

7 tools
call-toolCall ToolA

Call a specific tool from a specific server. TIP: Use find-tools first to discover the tool and get the correct serverName and toolName

Inputs: toolArgs (required), toolName (required), serverName (required).

find-toolsFind ToolsA

Use this tool to find best tools by searching with keywords or regex patterns. If you don't have a specific tool for a task, this is the best way to discover what tools are available.

Inputs: pattern (required), searchIn, caseSensitive.

find-tools-in-serverFind Tools in ServerB

Find tools matching a pattern in a specific MCP server (returns name and description only)

Inputs: pattern (required), serverName (required), searchIn, caseSensitive.

get-toolGet Tool SchemaA

Get complete schema for a specific tool from a specific server, including inputSchema. TIP: Use find-tools first to discover the tool and get the correct serverName and toolName

Inputs: toolName (required), serverName (required).

list-all-toolsList All ToolsA

List ALL available tools from all connected servers. NOTE: For better performance, use find-tools with keywords first. Only use this when you need to see everything or if find-tools didn't find what you need

Inputs: no named parameters.

list-all-tools-in-serverList Tools in ServerA

List ALL tools from a specific MCP server (returns name and description only)

Inputs: serverName (required).

list-serversList ServersB

List all connected MCP servers

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 7 tools

    Disambiguation4/5

    Most tools are clearly distinct by scope (global vs per-server, discovery vs schema vs invocation). Minor overlap exists between list-all-tools and find-tools, but the descriptions explicitly guide usage.

    Naming Consistency5/5

    All tool names follow a consistent kebab-case verb-noun pattern, with clear modifiers like -in-server to indicate scope. The naming is uniform and predictable.

    Tool Count5/5

    Seven tools is well-scoped for a meta-server that manages other MCP servers. Each tool covers a distinct operation without redundancy or bloat.

    Completeness5/5

    The surface covers the full workflow: discover servers, list tools, search tools, inspect schemas, and call tools. No obvious dead ends or missing critical operations for the stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A central hub that aggregates multiple MCP resource servers into a single unified interface, enabling users to access tools and capabilities from multiple backend servers through one connection point.
      202
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      MCP Hub aggregates and proxies multiple Model Context Protocol servers into a unified Streamable HTTP interface. It allows users to combine diverse stdio, SSE, and HTTP-based servers while providing tool namespacing, health monitoring, and secure authentication.
      497 npm
      -