WM

warpdev/mcp-hub-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

61 stars 10 forks 品質 76 トレンド 13MIT

warpdev/mcp-hub-mcp は [https://github.com/warpdev/mcp-hub-mcp.] からインポートされた MCP サーバー候補です

概要

warpdev/mcp-hub-mcp は [https://github.com/warpdev/mcp-hub-mcp.] からインポートされた MCP サーバー候補です

概要(AI 翻訳)

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

概要

このプロジェクトでは、複数のMCP(モデルコンテキストプロトコル)サーバーに接続し、複数のMCPサーバーを単一のインターフェイスで管理するMCPハブサーバーを構築します。 必要なときにのみそれらを接続できるようにすることで、過度のコンテキスト使用と汚染を防ぐことができます(例えば、アトラスシアンMCP、Playwright MCP)。 これにより、AIの間違いを軽減し、アクティブなツールセットを集中管理し、パフォーマンスを向上させることができます。

主な特長

  • 設定ファイルを介して他のMCPサーバーへの自動接続
  • 接続されたサーバー上の利用可能なツールのリスト
  • 接続されたサーバーでツールを呼び出し、結果を返す

設定

[mcp.jsonにこれを追加します。

###npx を使う

インストールと実行

要件

  • Node.js 18.0.0以上
  • npm、ヤーン、またはpnpm

インストール

ビルド

実行

###開発モード

設定ファイル

MCP-Hub-MCP サーバーは、Claude デスクトップ フォーマットの設定ファイルを使用して、他の MCP サーバーに自動的に接続します。 設定ファイルを次の方法で指定できます。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP-Hub-MCP Server

A hub server that connects to and manages other MCP (Model Context Protocol) servers.

Overview

This project builds an MCP hub server that connects to and manages multiple MCP (Model Context Protocol) servers through a single interface. It helps prevent excessive context usage and pollution from infrequently used MCPs (e.g., Atlassian MCP, Playwright MCP) by allowing you to connect them only when needed. This reduces AI mistakes and improves performance by keeping the active tool set focused and manageable.

Key Features

  • Automatic connection to other MCP servers via configuration file
  • List available tools on connected servers
  • Call tools on connected servers and return results

Configuration

Add this to your mcp.json:

Using npx

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

Installation and Running

Requirements

  • Node.js 18.0.0 or higher
  • npm, yarn, or pnpm

Installation

# Clone repository
git clone 
cd mcp-hub-mcp

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

Build

npm run build
# or
yarn build
# or
pnpm build

Run

npm start
# or
yarn start
# or
pnpm start

Development Mode

npm run dev
# or
yarn dev
# or
pnpm dev

Configuration File

The MCP-Hub-MCP server uses a Claude Desktop format configuration file to automatically connect to other MCP servers. You can specify the configuration file in the following ways:

  1. Environment variable: Set the MCP_CONFIG_PATH environment variable to the configuration file path
  2. Command line argument: Use the --config-path option to specify the configuration file path
  3. Default path: Use mcp-config.json file in the current directory

Configuration file format:

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

Example:

{
  "mcpServers": {
    "filesystem": {
GitHub で README 全文を見る

インストール

npx -y mcp-hub-mcp --config-path /Users/username/mcp.json
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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