下探测器mcp
   ](https://hub.docker.com/repository/docker/benjaminfourmauxb/downdetector-mcp)

基于HTTP 主控程序 服务器通过以下方式获取在线服务状态 下变频器.
为代理人工智能应用程序提供在线服务状态数据。
工具🛠
此MCP服务器中可用的工具列表
\[!重要\] 由于Downdetector网站最近发生了变化,恢复数据变得越来越困难。某些数据可能缺失。
搜索服务名称
用于检索与Downdetector中命名相同的正确服务名称(也称为 TechnicalServiceName 在MCP中)。
\[!提示\] 必须首先调用此命令,因为AI会得到正确的名称来使用 GetServiceStatus工具 避免在检索具有错误服务名称的数据时出错。
输入参数
| param | 描述 |
|---|---|
serviceName | 要搜索的服务名称 |
country | 在Downdetector网站的正确国家实例中搜索的Alpha-2国家代码 |
输出示例
使用参数调用工具:
serviceName:googlecountry:us
SearchWord: google
Results[4]{ServiceName,TechnicalName,Url,Category}:
Google,google,https://downdetector.com/status/google
Google Cloud,google-cloud,https://downdetector.com/status/google-cloud,search portals
Google Gemini,googlegemini,https://downdetector.com/status/googlegemini,ai platforms
Google Nest,google-nest,https://downdetector.com/status/google-nest,home automation securityGetServiceStatus
获取有关在线服务状态的数据。与报告最多的问题一样,报告的最后数量和基线。
输入参数
| param | 描述 |
|---|---|
technicalServiceName | 获取数据的技术服务名称 |
country | 在Downdetector网站的正确国家实例中搜索的Alpha-2国家代码 |
includeHistoricalReportData | 布尔值,用于检索过去24小时的历史图表点。默认情况下 false |
输出示例
使用参数调用工具:
technicalServiceName:googlegeminicountry:us
ServiceName: Google Gemini
Status: WARNING
MostReportedIssues[3]{Issue,Percentage}:
AI Generation,57
Website,24
App,20
ReportData[96]{Time,Report,Baseline}:
14:05 07/02/2026,8,2
15:05 07/02/2026,4,2
16:05 07/02/2026,3,1
...
LastReportData:
Time: 14:05 08/02/2026
Report: 25
Baseline: 5使用🚀
Docker(推荐)
来自Docker Hub
docker run -d -p 8080:8080 --name downdetector-mcp benjaminfourmauxb/downdetector-mcp:latest从源代码构建
docker build -t downdetector-mcp .运行容器
docker run -d -p 8080:8080 --name downdetector-mcp downdetector-mcp服务器将在以下位置可用 http://localhost:8080.
源代码
先决条件
- .NET 10 SDK
- PowerShell (Playwright CLI要求)
构建
dotnet build安装Playwright Chromium
构建完成后,安装Playwright使用的Chromium浏览器:
pwsh DowdetectorMCP.Server/bin/Debug/net10.0/playwright.ps1 install chromium\[!注意\] 此命令还安装Chromium所需的操作系统级依赖关系。您只需运行一次(或在Playwright版本更新后)。
跑
dotnet run --project DowdetectorMCP.Server服务器启动于 http://localhost:5057 默认情况下。
Visual Studio Copilot中的测试
在GitHub Copilot的“配置工具”页面上,添加一个MCP服务器。
在文件中 mcp.json 在VS Code环境中配置自定义MCP时,请输入以下设置:
{
"servers": {
"downdetector-mcp": {
"url": "http://localhost:5057/mcp",
"type": "http",
"trusted": true
}
},
"inputs": []
}瞧,你可以直接在你的副驾驶上使用这个MCP服务器。
运作原理🏗
此应用程序是内置的 C净值10 并使用SDK 模型上下文协议 以实现MCP协议。
项目 DowndetectorMCP.API.csproj 用于从Downdetector网站查询数据。
从Downdetector获取数据的唯一简单方法是模拟web浏览器。 \ 为此,Downdetector MCP。API使用 剧作家 端到端测试框架被转移到通过Chronium无头浏览器浏览DOM页面。
Downdetector使用Cloudflare来保护他们的网站免受机器人或DDoS攻击。多次请求网站可能会导致限速错误或被著名页面屏蔽”✅ 你是人吗?”。
为了减少发送到Donwdetector的请求数量,设置了一个缓存系统 工具搜索服务名称这个缓存拯救了这对夫妇 => result. \ 缓存记录的生存期为24小时。
拯救所有人是不可行的 technicalServiceName,因为服务的数量不是有限的(_“明天,一家新的人工智能公司可以诞生……”_).这就是为什么有一个专门的搜索服务工具。
所有输出的工具都使用 面向令牌的对象表示法(Toon)格式 以表示数据。这种类似CSV的格式可以通过删除冗余的字段名(如JSON)来减少输入令牌的数量(和推理输入时间)。
错误消息非常冗长,类似于人类的错误解释,用于指示代理附加了什么错误(Cloudflare速率限制达到,找不到服务…)。
贡献👨👨👧
感谢您的贡献! \ 如果你想添加新功能,不要犹豫。
请告诉我您是否使用我的MCP以及在哪个项目中使用。我会很感激的。
