MCP-Hub-MCP Server
MCP-Hub-MCP サーバー
他の MCP (Model Context Protocol) サーバーに接続して管理するハブ サーバー。
概要
このプロジェクトは、他のMCPサーバーに接続し、ツールをリストアップして実行できるMCPハブサーバーを構築します。これは特に、Cursorの40ツールというMCP制限を回避するのに役立ちます。Cursor外でも、使用頻度の低いツールを非表示にすることでAIのミスを減らすのに役立ちます。
Related MCP server: Cursor MCP Installer
主な特徴
設定ファイルによる他のMCPサーバーへの自動接続
接続されたサーバー上で利用可能なツールを一覧表示する
接続されたサーバー上のツールを呼び出し、結果を返す
構成
mcp.jsonに以下を追加します:
npxの使用
{
"mcpServers": {
"mcp-hub": {
"command": "npx",
"args": [
"-y",
"mcp-hub-mcp",
"--config-path",
"/path/to/your/mcp-hub-config.json"
]
}
}
}Node を使用する (例: ローカル開発または直接実行用)
npxローカルの変更を取得していない場合、またはビルドしたサーバーを直接実行したい場合は、次のように設定できます。
{
"mcpServers": {
"mcp-hub": {
"command": "node",
"args": [
"/path/to/your/mcp-hub-mcp/dist/index.js",
"--config-path",
"/path/to/your/mcp-hub-config.json"
]
}
}
}注: dist/index.jsが存在するように、プロジェクトをビルドしたことを確認してください (例: npm run buildまたはpnpm build )。
システムプロンプト(またはカーソルルール)
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サーバーに自動的に接続します。設定ファイルは、以下の方法で指定できます。
環境変数:
MCP_CONFIG_PATH環境変数を設定ファイルのパスに設定しますコマンドライン引数:
--config-pathオプションを使用して設定ファイルのパスを指定しますデフォルトパス: 現在のディレクトリの
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 featurefix: resolve issue with server timeoutdocs: update API documentationchore: update dependencies
種類:
feat:新機能(マイナーバージョンアップ)fix:バグ修正(PATCHバージョンのアップ)docs: ドキュメントのみの変更style: コードの意味に影響を与えない変更refactor: バグを修正したり機能を追加したりしないコード変更perf: パフォーマンスを向上させるコード変更test: 不足しているテストを追加したり、既存のテストを修正したりするchore: ビルドプロセスまたは補助ツールの変更
重大な変更: コミット フッターにBREAKING CHANGE:を追加して、メジャー バージョンをアップグレードします。
技術スタック
Node.js
タイプスクリプト
@modelcontextprotocol/sdk (バージョン: ^1.9.0)
ゾッド(バージョン: ^3.22.4)
ライセンス
マサチューセッツ工科大学
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server implementation that standardizes how AI applications access tools and context, providing a central hub that manages tool discovery, execution, and context management with a simplified configuration system.13
- AlicenseAqualityCmaintenanceA Model Context Protocol (MCP) server for Cursor IDE that simplifies the installation and configuration of other MCP servers.31177MIT
- AlicenseAqualityCmaintenanceA hub server that connects to and manages other MCP (Model Context Protocol) servers.74462MIT
- AlicenseNot gradedqualityFmaintenanceA configurable MCP server wrapper for Cursor that eliminates tool count limits when using the Model Context Protocol.2210GPL 3.0
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
Hosted MCP server to manage a restaurant menu from AI agents - 39 tools over the DuckHub API.
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tpavelek/mcp-hub-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server