MCP健康服务器
MCP服务器生态系统的完整性监视器。 任何AI代理都可以使用这些工具来了解 实时了解其生态系统的真实状态。
______________________________________________________________________
它解决的问题
当AI代理的工具发生故障时,他们会默默地失败。
Agent calls tool → tool responds slowly or incorrectly → agent makes wrong decision
→ nobody knows whyMCP Health Server为任何代理提供完全可见性 在事情发生之前,进入其生态系统的状态。
______________________________________________________________________
可用工具
健康检查
实时验证MCP服务器的状态。 检测延迟、可用性和暴露的工具。 与可流式传输的http和SSE兼容。
check_health("https://my-server.com/mcp")
→ {
"status": "healthy",
"latency_ms": 226,
"tools_available": ["ping", "get_time", "get_random_metric"],
"uptime_24h": 99.5
}______________________________________________________________________
get_summary
单个呼叫中多个MCP服务器的状态。 并行运行所有检查。
get_summary([
"https://server-a.com/mcp",
"https://server-b.com/mcp"
])
→ {
"total": 2,
"healthy": 1,
"degraded": 1,
"unhealthy": 0,
"ecosystem_health_score": 50.0
}______________________________________________________________________
check_drift
检测服务器的行为是否已更改 与历史基线相比。
发现传统的逐渐退化 正常运行时间警报永远不会触发。
check_drift("https://my-server.com/mcp", baseline_days=7)
→ {
"drift_detected": false,
"baseline_avg_latency_ms": 93.7,
"current_latency_ms": 93.9,
"overall_severity": "NONE"
}______________________________________________________________________
calculate_blast_radius
计算特定服务停机时的级联影响。 显示哪些其他服务直接受到影响 间接地。
calculate_blast_radius(
"auth-mcp",
["data-mcp", "trading-mcp", "report-mcp"]
)
→ {
"directly_affected": ["data-mcp", "trading-mcp"],
"cascade_affected": ["report-mcp"],
"ecosystem_impact_percent": 100.0,
"severity": "CRITICAL"
}______________________________________________________________________
连接到您的代理
{
"mcpServers": {
"mcp-health": {
"url": "https://mcp-health-server.onrender.com/mcp"
}
}
}______________________________________________________________________
本地设置
# 1. Clone the repository
git clone https://github.com/caio313/mcp-health-server
cd mcp-health-server
# 2. Create virtual environment and install dependencies
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# 3. Configure environment variables
cp .env.example .env
# Edit .env with your DATABASE_URL
# 4. Initialize the database
python -c "import asyncio; from core.db import init_db; asyncio.run(init_db())"
# 5. Run the server
python main.py
# Available at: http://localhost:8000/mcp______________________________________________________________________
协议兼容性
支持两种MCP传输,无需额外配置:
streamable-http--现行标准SSE--服务器发送的事件
______________________________________________________________________
AI代理的技能
包括针对Claude和OpenCode的优化SKILL.md 它根据上下文自动编排工具。
要在OpenCode中激活它,请将SKILL.md复制到: ~/.config/opencode/skills/mcp-health.md
______________________________________________________________________
定价
| 计划 | 价格 | 限额 |
|---|---|---|
| 自由 | 0美元 | 100张支票/天 |
| 建造者 | 19美元/月 | 10000张支票/天 |
| 团队 | 49美元/月 | 无限制+电子邮件提醒 |
