About
mcp聚合和路由
README
项目简介
Aduib MCP Router 是一个多MCP聚合路由器,支持多种MCP协议,旨在简化MCP服务器的管理和使用。
使用
- MCP配置
{ "mcpServers": { "aduib-mcp-router":{ "command": "uvx", "args": ["aduib-mcp-router"], "env": { "MCP_CONFIG_PATH": "./config.json" } } } } - json配置
{ "time": { "command": "uvx", "args": [ "mcp-server-time" ] }, "aduib_server": { "type": "sse", "url": "http://10.0.0.169:5002", "headers": { "Authorization": "Bearer $2b$12$WB2YoxB5CQtPbqN35UDso.of2n7BmDvvQpxmIUdKe2VHO.MAY1u26" } } }
配置项
环境变量
| 变量名 | 默认值 | 说明 |
|---|---|---|
MCP_CONFIG_PATH |
- | MCP 服务器配置文件路径(本地路径或远程 URL) |
ROUTER_HOME |
~/.aduib_mcp_router |
路由器主目录 |
缓存配置
| 变量名 | 默认值 | 说明 |
|---|---|---|
MCP_CACHE_TTL |
300 | 服务器特征缓存有效期(秒) |
MCP_CACHE_STALE_TTL |
600 | 过期缓存仍可用的最大时间(秒) |
MCP_ENABLE_AUTO_REFRESH |
true | 是否启用后台自动刷新 |
缓存采用 Stale-While-Revalidate 策略:
- 缓存有效期内直接返回缓存数据
- 缓存过期但未超过 stale TTL 时,立即返回旧数据并在后台刷新
- 完全过期后同步刷新
健康检查配置
| 变量名 | 默认值 | 说明 |
|---|---|---|
MCP_HEALTH_CHECK_INTERVAL |
30 | 健康检查间隔(秒) |
MCP_HEALTH_CHECK_TIMEOUT |
10 | 健康检查超时(秒) |
MCP_MAX_CONSECUTIVE_FAILURES |
3 | 连续失败次数阈值 |
MCP_AUTO_RECONNECT |
true | 自动重连开关 |
MCP_RECONNECT_DELAY |
5 | 重连延迟(秒) |
连接配置
| 变量名 | 默认值 | 说明 |
|---|---|---|
MCP_CONNECTION_TIMEOUT |
600 | SSE/HTTP 连接超时(秒) |
MCP_REFRESH_INTERVAL |
1800 | 配置刷新间隔(秒) |
Playground
Playground 是一个内置的可视化调试界面,用于快速体验和验证多 MCP Server 的聚合效果。通过单页交互式工具面板,可以:
- 浏览当前路由器已加载的所有远程工具、资源和提示词
- 查看工具的名称、描述、输入 Schema 等详细信息
- 实时查看各 MCP 服务器的健康状态
- 在界面上直接触发调用,快速验证路由链路是否可用
- 观察返回数据,支持导出执行历史
访问地址:http://localhost:<port>/playground

开发
- 安装环境
pip install uv # Or on macOS brew install uv # Or on Windows choco install uv - 安装依赖
uv sync --dev
Installing Aduib Mcp Router
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/chaorenex1/aduib-mcp-routerFAQ
Is Aduib Mcp Router MCP free?
Yes, Aduib Mcp Router MCP is free — one-click install via Unyly at no cost.
Does Aduib Mcp Router need an API key?
No, Aduib Mcp Router runs without API keys or environment variables.
Is Aduib Mcp Router hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Aduib Mcp Router in Claude Desktop, Claude Code or Cursor?
Open Aduib Mcp Router on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Aduib Mcp Router with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
