Hydrolix
Hydrolix time-series datalake integration providing schema exploration and query capabilities to LLM-based workflows.
Hydrolix MCP Server
An MCP server for Hydrolix.
Tools
-
run_select_query- Execute SQL queries on your Hydrolix cluster.
- Input:
sql(string): The SQL query to execute.
-
list_databases- List all databases on your Hydrolix cluster.
-
list_tables- List all tables in a database.
- Input:
database(string): The name of the database.
-
get_table_info- Get table metadata such as schema
- Input:
database(string): The name of the database. - Input:
table(string): The name of the table.
Effective Usage
Due to the wide variety in LLM architectures, not all models will proactively use the tools above, and few will use them effectively without guidance, even with the carefully-constructed tool descriptions provided to the model. To get the best results out of your model while using the Hydrolix MCP server, we recommend the following:
- Refer to your Hydrolix database by name and request tool usage in your prompts (e.g., "Using MCP tools to access my Hydrolix database, please ...")
- This encourages the model to use the MCP tools available and minimizes hallucinations.
- Include time ranges in your prompts (e.g., "Between December 5 2023 and January 18 2024, ...") and specifically request that the output be ordered by timestamp.
- This prompts the model to write more efficient queries that take advantage of primary key optimizations
Health Check Endpoint
When running with HTTP or SSE transport, a health check endpoint is available at /health. This endpoint:
- Returns
200 OKwith the Hydrolix query-head's Clickhouse version if the server is healthy and can connect to Hydrolix - Returns
503 Service Unavailableif the server cannot connect to the Hydrolix query-head
Example:
curl http://localhost:8000/health
# Response: OK - Connected to Hydrolix compatible with ClickHouse 24.3.1
Configuration
The Hydrolix MCP server is configured using a standard MCP server entry. Consult your client's documentation for specific instructions on where to find or declare MCP servers. An example setup using Claude Desktop is documented below.
The recommended way to launch the Hydrolix MCP server is via the uv project manager, which will manage installing all other dependencies in an isolated environment.
Authentication
The server supports multiple authentication methods with the following precedence (highest to lowest):
- Per-request Bearer token: Service account token provided via
Authorization: Bearer <token>header - Per-request GET parameter: Service account token provided via
?token=<token>query parameter - Environment-based credentials: Credentials configured via environment variables
- Service account token (
HYDROLIX_TOKEN), or - Username and password (
HYDROLIX_USERandHYDROLIX_PASSWORD)
- Service account token (
When multiple authentication methods are configured, the server will use the first available method in the precedence order above. Per-request authentication is only available when using HTTP or SSE transport modes.
Note: Using a service account token with a readonly role is recommended.
MCP Server definition using username and password (JSON):
{
"command": "uv",
"args": [
"run",
"--with",
"mcp-hydrolix",
"--python",
"3.13",
"mcp-hydrolix"
],
"env": {
"HYDROLIX_HOST": "<hydrolix-host>",
"HYDROLIX_USER": "<hydrolix-user>",
"HYDROLIX_PASSWORD": "<hydrolix-password>"
}
}
MCP Server definition using service account token (JSON):
{
"command": "uv",
"args": [
"run",
"--with",
"mcp-hydrolix",
"--python",
"3.13",
"mcp-hydrolix"
],
"env": {
"HYDROLIX_HOST": "<hydrolix-host>",
"HYDROLIX_TOKEN": "<hydrolix-service-account-token>"
}
}
MCP Server definition using username and password (YAML):
command: uv
args:
- run
- --with
- mcp-hydrolix
- --python
- "3.13"
- mcp-hydrolix
env:
HYDROLIX_HOST: <hydrolix-host>
HYDROLIX_USER: <hydrolix-user>
HYDROLIX_PASSWORD: <hydrolix-password>
MCP Server definition using service account token (YAML):
command: uv
args:
- run
- --with
- mcp-hydrolix
- --python
- "3.13"
- mcp-hydrolix
env:
HYDROLIX_HOST: <hydrolix-host>
HYDROLIX_TOKEN: <hydrolix-service-account-token>
Configuration Example (Claude Desktop)
-
Open the Claude Desktop configuration file located at:
- On macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - On Windows:
%APPDATA%/Claude/claude_desktop_config.json
- On macOS:
-
Add a
mcp-hydrolixserver entry to themcpServersconfig block to use username and password:
{
"mcpServers": {
"mcp-hydrolix": {
"command": "uv",
"args": [
"run",
"--with",
"mcp-hydrolix",
"--python",
"3.13",
"mcp-hydrolix"
],
"env": {
"HYDROLIX_HOST": "<hydrolix-host>",
"HYDROLIX_USER": "<hydrolix-user>",
"HYDROLIX_PASSWORD": "<hydrolix-password>"
}
}
}
}
To leverage service account use the following config block:
{
"mcpServers": {
"mcp-hydrolix": {
"command": "uv",
"args": [
"run",
"--with",
"mcp-hydrolix",
"--python",
"3.13",
"mcp-hydrolix"
],
"env": {
"HYDROLIX_HOST": "<hydrolix-host>",
"HYDROLIX_TOKEN": "<hydrolix-service-account-token>"
}
}
}
}
-
Update the environment variable definitions to point to your Hydrolix cluster.
-
(Recommended) Locate the command entry for
uvand replace it with the absolute path to theuvexecutable. This ensures that the correct version ofuvis used when starting the server. You can find this path usingwhich uvorwhere.exe uv. -
Restart Claude Desktop to apply the changes. If you are using Windows, ensure Claude is stopped completely by closing the client using the system tray icon.
Configuration Example (Claude Code)
To configure the Hydrolix MCP server for Claude Code, run the following command:
claude mcp add --transport stdio hydrolix \
--env HYDROLIX_USER=<hydrolix-user> \
--env HYDROLIX_PASSWORD=<hydrolix-password> \
--env HYDROLIX_HOST=<hydrolix-host> \
--env HYDROLIX_MCP_SERVER_TRANSPORT=stdio \
-- uv run --with mcp-hydrolix --python 3.13 mcp-hydrolix
Environment Variables
The following variables are used to configure the Hydrolix connection. These variables may be provided via the MCP config block (as shown above), a .env file, or traditional environment variables.
Required Variables
HYDROLIX_HOST: The hostname of your Hydrolix server
Authentication Variables
At least one authentication method must be configured when using the stdio transport:
HYDROLIX_TOKEN: Service account token for environment-based authenticationHYDROLIX_USERandHYDROLIX_PASSWORD: Username and password for environment-based authentication (both must be provided together)
In summary:
- For stdio, you MUST use HYDROLIX_TOKEN or HYDROLIX_USER+HYDROLIX_PASS (environmental credentials)
- For http/sse, you MAY use HYDROLIX_TOKEN or HYDROLIX_USER+HYDROLIX_PASS (environmental credentials), but you may instead use per-request credentials.
If no credentials are provided via the environment or the request, the request will fail.
Optional Variables
HYDROLIX_PORT: The port number of your Hydrolix server- Default:
8088 - Usually doesn't need to be set unless using a non-standard port
- Default:
HYDROLIX_VERIFY: Enable/disable SSL certificate verification- Default:
"true" - Set to
"false"to disable certificate verification (not recommended for production)
- Default:
HYDROLIX_DATABASE: Default database to use *Default: None (uses server default)- Set this to automatically connect to a specific database
HYDROLIX_MCP_SERVER_TRANSPORT: Sets the transport method for the MCP server.- Default:
"stdio" - Valid options:
"stdio","http","sse". This is useful for local development with tools like MCP Inspector.
- Default:
HYDROLIX_MCP_BIND_HOST: Host to bind the MCP server to when using HTTP or SSE transport- Default:
"127.0.0.1" - Set to
"0.0.0.0"to bind to all network interfaces (useful for Docker or remote access) - Only used when transport is
"http"or"sse"
- Default:
HYDROLIX_MCP_BIND_PORT: Port to bind the MCP server to when using HTTP or SSE transport- Default:
"8000" - Only used when transport is
"http"or"sse"
- Default:
For MCP Inspector or remote access with HTTP transport:
HYDROLIX_HOST=localhost
HYDROLIX_USER=default
HYDROLIX_PASSWORD=myPassword
HYDROLIX_MCP_SERVER_TRANSPORT=http
HYDROLIX_MCP_BIND_HOST=0.0.0.0 # Bind to all interfaces
HYDROLIX_MCP_BIND_PORT=4200 # Custom port (default: 8000)
When using HTTP transport, the server will run on the configured port (default 8000). For example, with the above configuration:
- MCP endpoint:
http://localhost:4200/mcp - Health check:
http://localhost:4200/health
Using Per-Request Authentication with HTTP Transport
When using HTTP or SSE transport, you can omit environment-based credentials and instead provide authentication per-request. This is useful for multi-user scenarios or with clients that don't support running MCP servers locally.
Example mcpServers configuration connecting to a remote HTTP server with per-request authentication:
{
"mcpServers": {
"mcp-hydrolix-remote": {
"url": "https://my-hydrolix-mcp.example.com/mcp?token=<service-account-token>"
}
}
}
Example minimal .env configuration for running your own HTTP server without environment credentials:
HYDROLIX_HOST=my-cluster.hydrolix.net
HYDROLIX_MCP_SERVER_TRANSPORT=http
Though not part of the MCP specification, many MCP clients allow adding headers to MCP-issued requests. When this is possible, we recommend configuring the MCP client to pass a service account token via the Authorization: Bearer <sa-token-here> header instead of as a query parameter for greater security.
Note: The bind host and port settings are only used when transport is set to "http" or "sse".
相關伺服器
Memory-Plus
a lightweight, local RAG memory store to record, retrieve, update, delete, and visualize persistent "memories" across sessions—perfect for developers working with multiple AI coders (like Windsurf, Cursor, or Copilot) or anyone who wants their AI to actually remember them.
Unity Catalog MCP Server
An MCP server that allows LLM agents to seamlessly execute functions within Unity Catalog.
MCP PGVector Server
Provides semantic search capabilities for PostgreSQL databases using the pgvector extension, with support for multiple embedding providers.
CData eBay MCP Server
A read-only MCP server for querying live eBay data. Requires a separately licensed CData JDBC Driver for eBay.
Loki MCP Server
An MCP server for querying logs from Grafana Loki.
Gremlin
Interact with any Gremlin-compatible graph database using natural language, with support for schema discovery, complex queries, and data import/export.
Metabase Server
Integrate with Metabase to query databases and visualize data. Requires Metabase URL and API key for authentication.
Octagon
Deliver real-time investment research with extensive private and public market data.
Seatable
A comprehensive Model Context Protocol (MCP) server for SeaTable that exposes end‑to‑end database capabilities (schema introspection, CRUD, querying, linking, select option management, and file attachment stubs) through 18+ rigorously defined tools.
MCP-PostgreSQL-Ops
MCP-PostgreSQL-Ops is a professional MCP server for PostgreSQL database operations, monitoring, and management. Supports PostgreSQL 12-17 with comprehensive database analysis, performance monitoring, and intelligent maintenance recommendations through natural language queries.