MCP服务器-网站状态检测工具
一个MCP服务器,允许用户通过查询isitdownrightnow.com来检查某个网站是否出现宕机情况,提供状态信息以及最近宕机事件的详细信息。
可用工具 (1 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
get_website_status 1 个参数 需填 1 项
Check the status of a website. This function takes a root domain as input and checks whether the website is up or down by making a request to isitdownrightnow.com Args: root_domain (str): The root domain of the website to check. Returns: str: A message indicating whether the website is up or down, or if the status could not be determined.
必填参数:root_domain
服务介绍
mcp-server-isitdown
一个通过查询 www.isitdownrightnow.com 来检查网站是否当前处于停机状态的MCP服务器。
概览
此MCP服务器提供了一个简单的工具,用于检查某个网站是否正在经历停机,并可以提供一些关于最近停机事件的信息。
工具
已实现以下工具:
get_website_status: 检查网站当前是否处于停机状态。输入:root_domain(字符串): 要检查的网站的根域名(例如 "example.com")输出: 一条字符串消息,指示网站是正常运行还是停机,以及最后一次记录的停机信息
安装
注意:此包目前未发布到公共仓库。仅支持从源码安装。
从源码安装
# Clone the repository
git clone https://github.com/yourusername/mcp-server-isitdown.git
cd mcp-server-isitdown
# Using uv (recommended)
uv pip install -e .
# Using pip
pip install -e .
Claude Desktop 的配置
将此配置添加到您的 claude_desktop_config.json 文件中:
"isitdown": {
"command": "/path/to/uv",
"args": [
"--directory",
"/path/to/cloned/repo/src",
"run",
"mcp_server_isitdown"
]
}
使用
作为独立的MCP服务器运行
# Using the installed script
mcp-server-isitdown
# Using the Python module
python -m mcp_server_isitdown
与Claude for Dekstop 示例用法:
- "维基百科现在是否停机?"
- "Reddit 上次停机是什么时候?"
作为库使用
from mcp_server_isitdown.server import get_website_status
# Check if a website is down (async function)
async def check_website():
result = await get_website_status("example.com")
print(result) # Prints status message with up/down status
开发
# Type checking
uvx mypy .
# Run all pre-commit hooks
uv pre-commit run --all-files
# Install in development mode
uv pip install -e ".[dev]"
# Run the Inspector
mcp dev src/mcp_server_isitdown/server.py
构建
# Build the package
uv build
# Install the built package
uv pip install dist/mcp_isitdown_service-*.whl
许可证
MIT