MCP-Hub-MCP Server
MCP-концентратор-MCP-сервер
Концентрационный сервер, который подключается к другим серверам MCP (Model Context Protocol) и управляет ими.
Обзор
Этот проект создает сервер-концентратор MCP, который может подключаться к другим серверам MCP, перечислять их инструменты и выполнять их. Он особенно полезен для обхода ограничения MCP Cursor на 40 инструментов. Даже за пределами Cursor он помогает сократить ошибки ИИ, скрывая редко используемые инструменты.
Related MCP server: MCP Hub MCP Server
Основные характеристики
Автоматическое подключение к другим серверам 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"
]
}
}
}Примечание: Убедитесь, что вы выполнили сборку проекта (например, npm run build или pnpm build ), чтобы существовал dist/index.js .
Системная подсказка (или правила курсора)
Before processing a user's request, you must use the "list_all_tools" command to identify which tools are available.Это гарантирует, что помощник на основе искусственного интеллекта всегда будет проверять доступные инструменты, прежде чем пытаться их использовать.
Установка и запуск
Требования
Node.js 18.0.0 или выше
npm, пряжа или 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.
Формат: <type>(<scope>): <description>
Примеры:
feat: add new hub connection featurefix: resolve issue with server timeoutdocs: update API documentationchore: update dependencies
Типы:
feat: Новая функция (увеличение версии Minor)fix: исправление ошибки (повышение версии PATCH)docs: Изменения только в документацииstyle: Изменения, не влияющие на смысл кода.refactor: изменение кода, которое не исправляет ошибку и не добавляет функциюperf: Изменение кода, повышающее производительностьtest: Добавление отсутствующих тестов или исправление существующих тестовchore: изменения в процессе сборки или вспомогательных инструментах
Критические изменения: добавьте BREAKING CHANGE: в нижний колонтитул коммита, чтобы вызвать ОСНОВНОЕ обновление версии.
Технологический стек
Node.js
Машинопись
@modelcontextprotocol/sdk (версия: ^1.9.0)
зод (версия: ^3.22.4)
Лицензия
Массачусетский технологический институт
Available Tools
2 toolscall-toolC
Call a specific tool from a specific server
Inputs: serverName (required), toolName (required), toolArgs (required).
list-all-toolsA
List all available tools from all connected servers. Before starting any task based on the user's request, always begin by using this tool to get a list of any additional tools that may be available for use.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have completely distinct purposes with no overlap: one is for calling specific tools from servers, while the other is for listing all available tools. An agent can easily tell them apart as they serve different functions in the tool management workflow.
The tool names follow a consistent verb_noun pattern (call-tool, list-all-tools) with clear actions and objects. The hyphenated style is used consistently, though 'list-all-tools' includes a modifier ('all') which is a minor deviation from a pure verb_noun structure.
With only 2 tools, the server feels thin for its apparent purpose of managing MCP tools across servers. While it covers basic operations (call and list), more comprehensive tool management (e.g., discover servers, configure connections) is missing, making the scope underdeveloped.
The tool surface is severely incomplete for managing an MCP hub. It lacks essential operations such as discovering or connecting to servers, managing server configurations, or handling errors. The two tools provide only minimal functionality, leaving significant gaps that will hinder agent workflows.
Related MCP Connectors
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
An MCP server that integrates with Discord to provide AI-powered features.
AI tool directory MCP server, live since July 2026. Tools, agents, models, companies, services.
MCP server for hub documentation, generated by doc2mcp.
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-
- AlicenseAqualityDmaintenanceA hub server that connects to and manages other MCP (Model Context Protocol) servers.761MIT
- AlicenseNot gradedqualityFmaintenanceA configurable MCP server wrapper for Cursor that eliminates tool count limits when using the Model Context Protocol.12GPL 3.0
- AlicenseNot gradedqualityDmaintenanceA meta-server that aggregates multiple MCP servers into a single interface, reducing token usage by 98%+ through progressive tool discovery and direct code execution that processes data between tools without consuming context window space.10Apache 2.0