HyperDX exposes a Model Context Protocol (MCP) server that lets AI assistants query your observability data, manage dashboards, and explore data sources directly.
- A running HyperDX instance (see CONTRIBUTING.md for local development setup, or DEPLOY.md for self-hosted deployment)
- A Personal API Access Key — find yours in the HyperDX UI under Team Settings > API Keys > Personal API Access Key
The MCP server is available at the /api/mcp path on your HyperDX instance. For local development this is:
http://localhost:8080/api/mcp
Replace localhost:8080 with your instance's host and port if you've customized the defaults.
The MCP server uses the Streamable HTTP transport with Bearer token authentication. In the examples below, replace <your-hyperdx-url>
with your instance URL (e.g. http://localhost:8080).
claude mcp add --transport http hyperdx <your-hyperdx-url>/api/mcp \
--header "Authorization: Bearer <your-personal-access-key>"opencode mcp add --transport http hyperdx <your-hyperdx-url>/api/mcp \
--header "Authorization: Bearer <your-personal-access-key>"Add the following to .cursor/mcp.json in your project (or your global Cursor settings):
{
"mcpServers": {
"hyperdx": {
"url": "<your-hyperdx-url>/api/mcp",
"headers": {
"Authorization": "Bearer <your-personal-access-key>"
}
}
}
}The MCP Inspector is useful for interactively testing and debugging the server.
cd packages/api && yarn dev:mcpThen configure the inspector:
- Transport Type: Streamable HTTP
- URL:
<your-hyperdx-url>/api/mcp - Authentication: Header
Authorizationwith valueBearer <your-personal-access-key> - Click Connect
Any MCP client that supports Streamable HTTP transport can connect. Configure it with:
- URL:
<your-hyperdx-url>/api/mcp - Header:
Authorization: Bearer <your-personal-access-key>
| Tool | Description |
|---|---|
hyperdx_list_sources |
List all data sources and database connections, including column schemas and attribute keys |
hyperdx_query |
Query observability data (logs, metrics, traces) using builder mode, search mode, or raw SQL |
hyperdx_get_dashboard |
List all dashboards or get full detail for a specific dashboard |
hyperdx_save_dashboard |
Create or update a dashboard with tiles (charts, tables, numbers, search, markdown) |
hyperdx_delete_dashboard |
Permanently delete a dashboard and its attached alerts |
hyperdx_query_tile |
Execute the query for a specific dashboard tile to validate results |