MCP-Hub-MCP Server
MCP-中心-MCP服务器
连接并管理其他 MCP(模型上下文协议)服务器的中心服务器。
概述
该项目构建了一个 MCP 中心服务器,可以连接到其他 MCP 服务器,列出其工具并执行它们。它对于绕过 Cursor 40 个工具的 MCP 限制特别有用。即使在 Cursor 之外,它也可以隐藏不常用的工具,从而帮助减少 AI 错误。
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.这确保了 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 生成。
格式: <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
TypeScript
@modelcontextprotocol/sdk(版本:^1.9.0)
zod(版本:^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