hetrixmcp
Enables interacting with the HetrixTools API v3 to manage blacklists, uptime monitors, status pages, scheduled maintenance, and server agents via natural language.
README
hetrixmcp
A Model Context Protocol server for the HetrixTools API v3, built with FastMCP.
Requirements
- Python 3.14+
- uv for package management
- A HetrixTools API token
Setup
# Install dependencies
uv sync
# Set your HetrixTools API token
export HETRIXTOOLS_API_TOKEN="your-api-token-here"
The token is read from the HETRIXTOOLS_API_TOKEN environment variable and validated on startup. Get one from your HetrixTools account settings.
Running
# Option 1: Direct execution (stdio transport)
uv run python server.py
# Option 2: FastMCP CLI (stdio transport)
uv run fastmcp run server.py
# Option 3: HTTP transport
uv run fastmcp run server.py --transport http --port 8000
Available Tools
20 tools across 13 HetrixTools API areas:
Account
get_account_limits— current usage and limits
Contact Lists
list_contact_lists— list contact lists (paginated)
Blacklists
list_blacklists— RBLs checked by the platformlist_blacklist_monitors— list blacklist monitors (filtered/paginated)get_blacklist_report— report for a specific monitor
Uptime Monitors
list_uptime_monitors— list uptime monitors (filtered/paginated)get_uptime_report— uptime report for a monitorlist_downtimes— downtimes for a monitor (paginated)get_location_fail_log— fail log for a specific locationlist_warning_policies— list warning policies for a monitorupdate_warning_policies— update warning policies for a monitor
Status Pages
list_status_pages— list status pagesadd_monitors_to_status_page— add monitors to a status pageremove_monitors_from_status_page— remove monitors from a status page
Scheduled Maintenance
list_scheduled_maintenance— list maintenance windowscreate_scheduled_maintenance— create a maintenance windowdelete_scheduled_maintenance— delete a maintenance window
Server Agents
get_server_agent— get server agent infoupdate_server_agent— update server agent settingsdelete_server_agent— delete a server agent
Architecture
client.py— async HetrixTools API client (httpx.AsyncClient) with bearer auth, error handling for 400/401/403/404/429, and a pagination helperserver.py— FastMCP server exposing all tools with type hints, docstrings, and lifespan-managed HTTP client
Claude Desktop / MCP Client Configuration
Add to your MCP client config:
{
"mcpServers": {
"hetrixtools": {
"command": "uv",
"args": ["run", "--directory", "/path/to/hetrixmcp", "python", "server.py"],
"env": {
"HETRIXTOOLS_API_TOKEN": "your-api-token-here"
}
}
}
}
Error Handling
Non-2xx responses raise HetrixToolsError with the HTTP status code and a descriptive message. Common errors:
| Status | Meaning |
|---|---|
| 400 | Bad request — check parameters |
| 401 | Unauthorized — invalid or missing API token |
| 403 | Forbidden — insufficient permissions |
| 404 | Not found — resource does not exist |
| 429 | Rate limited — retry later |
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。