SuperAPI AI Directory

mcp-hydrolix

🎖️ 🐍 ☁️ - Hydrolix time-series datalake integration with schema exploration and query capabilities.

Open website

About this tool

Purpose

mcp-hydrolix is an MCP (Model Context Protocol) server for Hydrolix, used to let MCP-enabled AI clients (such as Claude Desktop, Claude Code, VS Code) connect to the Hydrolix time-series data lake for database and table schema exploration as well as SQL queries.

Main capabilities

The server provides the following tools:

  • run_select_query: Executes a SQL query on the Hydrolix cluster. Inputs include query (the SQL query string to execute), max_cells (optional, the result cell budget, i.e., rows x columns; when the server sets an upper limit, the caller can only lower this value), purpose (required, explains the reason for the query, and is recorded together with the query as hdx_query_comment). A trailing FORMAT clause is removed, and the server chooses the transport format.
  • list_databases: Lists all databases on the Hydrolix cluster.
  • list_tables: Lists all tables in a database. The input is database (database name).
  • get_table_info: Gets table metadata (such as schema). The inputs are database (database name) and table (table name).

Usage

Prerequisites

Hydrolix credentials are required (cluster hostname, and username/password or service account token), as well as Claude Desktop (downloadable from claude.ai/download).

Installation

Option A (recommended): Use uv. uv automatically manages Python and downloads mcp-hydrolix as needed, with no separate installation step required. If uv is not installed, install it first. Option B: Use pip. Requires Python 3.13+.

Configure Claude Desktop

Open the Claude Desktop configuration file: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux: ~/.config/Claude/claude_desktop_config.json Add an mcp-hydrolix entry to the "mcpServers" object, replacing <your-hydrolix-hostname>, <your-username>, <your-password> with the actual credentials. If using the pip method, use "command": "mcp-hydrolix" without the "args" field. If the file already has other entries, add it within the existing "mcpServers" object rather than replacing the entire file. If using service account token authentication, see the authentication section. Note: Claude Desktop starts without the shell's PATH, so it may not find the binary. You need to find the full path and use it as the "command" value. For the uv method, find uvx: on macOS/Linux use which uvx, on Windows use where.exe uvx; for the pip method, find mcp-hydrolix: on macOS/Linux use which mcp-hydrolix, on Windows use where.exe mcp-hydrolix. If which/where.exe returns nothing, the cleanest fix is to switch to the uv method.

Restart and verify

Restart the Claude Desktop app to apply the configuration. macOS/Windows users need to fully quit Claude and restart it (on macOS press Cmd+Q or right-click the Dock icon and choose Quit; on Windows use the system tray icon). Open a new conversation and check whether there is a tools/hammer icon near the text input to confirm the MCP server connected successfully. You can try the prompt: Using your Hydrolix MCP tools, list the available databases. Claude should call the list_databases tool and return the list of databases in the cluster.

Use Claude Code

If you prefer the command line, make sure uv is installed (Option A), then run the corresponding command, then open Claude Code and test with the same prompt.

Use VS Code

Click the Install in VS Code badge at the top of the README for one-click installation. Or open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P), run MCP: Add Server, select Command (stdio), and reuse the uvx ... command and env block.

Suggestions for Effective Use

Due to differences in LLM architectures, not all models will proactively use the above tools, and even with carefully constructed tool descriptions, few models can use them effectively without guidance. Suggestions: in the prompt, reference the Hydrolix database by name and request the use of tools (for example, "Using MCP tools to access my Hydrolix database, please ..."), to encourage the model to use MCP tools and reduce hallucinations; include a time range in the prompt (for example, "Between December 5 2023 and January 18 2024, ...") and explicitly request sorting by timestamp, to prompt the model to write more efficient queries that leverage primary key optimization.

Health Check Endpoint

When using HTTP or SSE transport, the /health endpoint is available: if the server is healthy and can connect to Hydrolix, it returns 200 OK along with the Clickhouse version from the Hydrolix query head; if it cannot connect to the query head, it returns 503 Service Unavailable.

Authentication

The server supports multiple authentication methods, in descending order of priority:

  1. Per-request Bearer token: provide the service account token via the Authorization: Bearer <token> header.
  2. Per-request GET parameter: provide the service account token via the ?token=<token> query parameter.
  3. Environment-based credentials: configured via environment variables, service account token (HYDROLIX_TOKEN), or username and password (HYDROLIX_USER and HYDROLIX_PASSWORD). When multiple authentication methods are configured, the server uses the first available method in the priority order. Per-request authentication is only available when using HTTP or SSE transport mode. The ?token= form is suitable for clients that cannot send headers; in deployments where all clients send the Authorization header, HYDROLIX_ALLOW_TOKEN_QUERY_PARAM=false can be set. It is recommended to use a service account token with a read-only role.

Environment Variables

One of the following must be set to identify the cluster:

  • HYDROLIX_URL (recommended): the canonical public URL of the Hydrolix cluster, for example https://mycluster.hydrolix.live。对于典型的集群外部署,此单一变量足够——它提供主机、端口(方案默认 443/80) as well as the TLS settings for the HTTP query endpoint and the REST /version probe.
  • HYDROLIX_HOST (deprecated): The hostname of the Hydrolix server. Still retained for backward compatibility, but should be replaced with HYDROLIX_URL. HYDROLIX_URL is especially required when HYDROLIX_MCP_SERVER_TRANSPORT is http or sse (the upcoming OAuth metadata endpoint will advertise it). HYDROLIX_HOST alone is not sufficient for these transports. When using the stdio transport, at least one authentication method must be configured:
  • HYDROLIX_TOKEN: A service account token for environment-based authentication.
  • HYDROLIX_USER and HYDROLIX_PASSWORD: The username and password for environment-based authentication (both must be provided). For stdio, HYDROLIX_TOKEN or HYDROLIX_USER+HYDROLIX_PASS (environment credentials) must be used. For http/sse, HYDROLIX_TOKEN or HYDROLIX_USER+HYDROLIX_PASS (environment credentials) can be used, but per-request credentials can also be used instead. If credentials are provided neither in the environment nor in the request, the request will fail. When using the HTTP or SSE transport, environment-based credentials can be omitted and authentication can be provided per request instead. This is suitable for multi-user scenarios or clients that do not support running the MCP server locally. Although it is not part of the MCP specification, many MCP clients allow adding headers to requests sent to MCP. If feasible, it is recommended to configure the MCP client to pass the service account token via the Authorization: Bearer <sa-token-here> header rather than a query parameter, to improve security. Note: The bind host and port settings are only used when the transport is set to "http" or "sse". For more endpoint overrides, deprecated variable aliases, and the full set of optional tuning variables (timeouts, query SETTINGS overrides, result truncation, HTTP/SSE worker tuning, proxy, metrics, and escape hatches), see docs/CONFIG.md. Tasks requiring operator privileges (running the end-to-end suite against a live Hydrolix cluster, and publishing releases) are documented in MAINTAINERS.md.

When to use

Suitable for scenarios where an AI client needs to access the Hydrolix time-series data lake via the MCP protocol, explore database and table schemas, and execute SQL queries, and is especially suitable for users of Claude Desktop, Claude Code, or VS Code.

Limitations

Requires Hydrolix credentials; the pip method requires Python 3.13+; Claude Desktop starts without a shell PATH, so the full path to the binary may need to be specified; per-request authentication is only supported for the HTTP or SSE transports; the stdio transport must use environment credentials; if credentials are not provided, the request will fail.