{
  "markdown": "# Hydrolix MCP Server\n\n<!-- mcp-name: io.github.hydrolix/mcp-hydrolix -->\n\n[![PyPI - Version](https://img.shields.io/pypi/v/mcp-hydrolix)](https://pypi.org/project/mcp-hydrolix)\n[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_mcp--hydrolix-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect/mcp/install?name=mcp-hydrolix&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22--python%22%2C%223.13%22%2C%22--refresh-package%22%2C%22mcp-hydrolix%22%2C%22mcp-hydrolix%22%5D%2C%22env%22%3A%7B%22HYDROLIX_URL%22%3A%22%24%7Binput%3Ahydrolix_url%7D%22%2C%22HYDROLIX_USER%22%3A%22%24%7Binput%3Ahydrolix_user%7D%22%2C%22HYDROLIX_PASSWORD%22%3A%22%24%7Binput%3Ahydrolix_password%7D%22%7D%7D&inputs=%5B%7B%22id%22%3A%22hydrolix_url%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22Hydrolix%20URL%20%28e.g.%20https%3A%2F%2Fmycluster.hydrolix.live%29%22%7D%2C%7B%22id%22%3A%22hydrolix_user%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22Hydrolix%20username%22%7D%2C%7B%22id%22%3A%22hydrolix_password%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22Hydrolix%20password%22%2C%22password%22%3Atrue%7D%5D)\n[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_mcp--hydrolix-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=mcp-hydrolix&quality=insiders&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22--python%22%2C%223.13%22%2C%22--refresh-package%22%2C%22mcp-hydrolix%22%2C%22mcp-hydrolix%22%5D%2C%22env%22%3A%7B%22HYDROLIX_URL%22%3A%22%24%7Binput%3Ahydrolix_url%7D%22%2C%22HYDROLIX_USER%22%3A%22%24%7Binput%3Ahydrolix_user%7D%22%2C%22HYDROLIX_PASSWORD%22%3A%22%24%7Binput%3Ahydrolix_password%7D%22%7D%7D&inputs=%5B%7B%22id%22%3A%22hydrolix_url%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22Hydrolix%20URL%20%28e.g.%20https%3A%2F%2Fmycluster.hydrolix.live%29%22%7D%2C%7B%22id%22%3A%22hydrolix_user%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22Hydrolix%20username%22%7D%2C%7B%22id%22%3A%22hydrolix_password%22%2C%22type%22%3A%22promptString%22%2C%22description%22%3A%22Hydrolix%20password%22%2C%22password%22%3Atrue%7D%5D)\n\nAn MCP server for Hydrolix.\n\n## Quickstart\n\nGet up and running in a few minutes. This section covers Claude Desktop and Claude Code.\n\n### Step 1 — Prerequisites\n\nBefore you begin, make sure you have:\n\n- **Hydrolix credentials** — your cluster hostname plus either a username/password or a service account token. If you don't have these, ask your Hydrolix administrator.\n- **Claude Desktop** — download from [claude.ai/download](https://claude.ai/download).\n\n### Step 2 — Install the MCP server\n\nChoose the method that matches your setup:\n\n**Option A: Using uv (recommended)**\n\n[uv](https://docs.astral.sh/uv/) manages Python automatically and downloads mcp-hydrolix on demand, so no separate install step is needed. If you don't have uv, install it:\n\nmacOS / Linux:\n```bash\ncurl -LsSf https://astral.sh/uv/install.sh | sh\n```\n\nWindows (PowerShell):\n```powershell\npowershell -ExecutionPolicy ByPass -c \"irm https://astral.sh/uv/install.ps1 | iex\"\n```\n\n**Option B: Using pip**\n\nRequires Python 3.13+. If you need to install Python, download it from [python.org](https://www.python.org/downloads/).\n\n```bash\npip install mcp-hydrolix\n```\n\n### Step 3 — Configure Claude Desktop\n\n1. Open the Claude Desktop configuration file:\n   - **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`\n   - **Windows:** `%APPDATA%\\Claude\\claude_desktop_config.json`\n   - **Linux:** `~/.config/Claude/claude_desktop_config.json`\n\n2. Add the following entry to the `\"mcpServers\"` object (create the file with this content if it doesn't exist yet):\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-hydrolix\": {\n      \"command\": \"uvx\",\n      \"args\": [\n        \"--python\",\n        \"3.13\",\n        \"--refresh-package\",\n        \"mcp-hydrolix\",\n        \"mcp-hydrolix\"\n      ],\n      \"env\": {\n        \"HYDROLIX_URL\": \"https://<your-hydrolix-hostname>\",\n        \"HYDROLIX_USER\": \"<your-username>\",\n        \"HYDROLIX_PASSWORD\": \"<your-password>\"\n      }\n    }\n  }\n}\n```\n\nReplace `<your-hydrolix-hostname>`, `<your-username>`, and `<your-password>` with your actual credentials.\n\n> [!NOTE]\n> If you used Option B (pip), use `\"command\": \"mcp-hydrolix\"` with no `\"args\"` field instead.\n\n> [!TIP]\n> If the file already has other entries, add the `\"mcp-hydrolix\"` block inside the existing `\"mcpServers\"` object rather than replacing the whole file.\n\n> [!NOTE]\n> If you authenticate with a service account token instead of username/password, see [Authentication](#authentication).\n\n<details>\n<summary><strong>Command not found?</strong></summary>\n\nClaude Desktop launches without your shell's PATH, so it may not locate the binary even if it is installed. Find the full path and use it as the `\"command\"` value in the config.\n\n**Option A (uv):** find `uvx`:\n\n- **macOS / Linux:** `which uvx`\n- **Windows:** `where.exe uvx`\n\n**Option B (pip):** find `mcp-hydrolix`:\n\n- **macOS / Linux:** `which mcp-hydrolix`\n- **Windows:** `where.exe mcp-hydrolix`\n\nIf `which`/`where.exe` returns nothing, the binary isn't on your PATH. The cleanest fix is to switch to Option A (uv), which manages the Python environment and PATH for you.\n\n</details>\n\n### Step 4 — Restart Claude Desktop\n\nRestart the app to apply the configuration.\n\n> **macOS / Windows users:** Make sure to fully quit Claude before restarting. On macOS, press Cmd+Q or right-click the Dock icon and choose Quit. On Windows, use the system tray icon.\n\n### Step 5 — Verify it's working\n\n1. Open a new conversation in Claude Desktop. Look for a tools/hammer icon near the text input — this confirms the MCP server connected successfully.\n\n2. Try this prompt to confirm everything is working:\n\n   > Using your Hydrolix MCP tools, list the available databases.\n\nClaude should call the `list_databases` tool and return a list of databases from your cluster.\n\n---\n\n### Using Claude Code instead?\n\nIf you prefer the command line, make sure uv is installed (Option A from [Step 2](#step-2--install-the-mcp-server)), then run:\n\n```bash\nclaude mcp add --transport stdio hydrolix \\\n  --env HYDROLIX_URL=https://<your-hydrolix-hostname> \\\n  --env HYDROLIX_USER=<your-username> \\\n  --env HYDROLIX_PASSWORD=<your-password> \\\n  --env HYDROLIX_MCP_SERVER_TRANSPORT=stdio \\\n  -- uvx --python 3.13 --refresh-package mcp-hydrolix mcp-hydrolix\n```\n\nThen open Claude Code and test with the same prompt:\n\n> Using your Hydrolix MCP tools, list the available databases.\n\n### Using VS Code instead?\n\nClick the **Install in VS Code** badge at the top of this README for a one-click install. If you prefer the UI flow, open the Command Palette (**Cmd+Shift+P** / **Ctrl+Shift+P**), run **MCP: Add Server**, choose **Command (stdio)**, and reuse the `uvx ...` command and `env` block from [Step 3](#step-3--configure-claude-desktop).\n\n## Tools\n\n* `run_select_query`\n  * Execute SQL queries on your Hydrolix cluster.\n  * Input: `sql` (string): The SQL query to execute.\n\n* `list_databases`\n  * List all databases on your Hydrolix cluster.\n\n* `list_tables`\n  * List all tables in a database.\n  * Input: `database` (string): The name of the database.\n\n* `get_table_info`\n  * Get table metadata such as schema\n  * Input: `database` (string): The name of the database.\n  * Input: `table` (string): The name of the table.\n\n## Effective Usage\n\nDue 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:\n\n* 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 ...\")\n  - This encourages the model to use the MCP tools available and minimizes hallucinations.\n* 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.\n  - This prompts the model to write more efficient queries that take advantage of [primary key optimizations](https://hydrolix.io/blog/optimizing-latest-n-row-queries/)\n\n### Health Check Endpoint\n\nWhen running with HTTP or SSE transport, a health check endpoint is available at `/health`. This endpoint:\n- Returns `200 OK` with the Hydrolix query-head's Clickhouse version if the server is healthy and can connect to Hydrolix\n- Returns `503 Service Unavailable` if the server cannot connect to the Hydrolix query-head\n\nExample:\n```bash\ncurl http://localhost:8000/health\n# Response: OK - Connected to Hydrolix compatible with ClickHouse 24.3.1\n```\n\n## Configuration\n\nThe 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.\n\nThe recommended way to launch the Hydrolix MCP server is via the [`uv` project manager](https://github.com/astral-sh/uv), which will manage installing all other dependencies in an isolated environment.\n\n### Authentication\n\nThe server supports multiple authentication methods with the following precedence (highest to lowest):\n\n1. **Per-request Bearer token**: Service account token provided via `Authorization: Bearer <token>` header\n2. **Per-request GET parameter**: Service account token provided via `?token=<token>` query parameter\n3. **Environment-based credentials**: Credentials configured via environment variables\n   - Service account token (`HYDROLIX_TOKEN`), or\n   - Username and password (`HYDROLIX_USER` and `HYDROLIX_PASSWORD`)\n\nWhen 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.\n\n**Note: Using a service account token with a readonly role is recommended.**\n\nMCP Server definition using username and password (JSON):\n\n```json\n{\n  \"command\": \"uvx\",\n  \"args\": [\n    \"--python\",\n    \"3.13\",\n    \"--refresh-package\",\n    \"mcp-hydrolix\",\n    \"mcp-hydrolix\"\n  ],\n  \"env\": {\n    \"HYDROLIX_URL\": \"https://<hydrolix-host>\",\n    \"HYDROLIX_USER\": \"<hydrolix-user>\",\n    \"HYDROLIX_PASSWORD\": \"<hydrolix-password>\"\n  }\n}\n```\n\nMCP Server definition using service account token (JSON):\n\n```json\n{\n  \"command\": \"uvx\",\n  \"args\": [\n    \"--python\",\n    \"3.13\",\n    \"--refresh-package\",\n    \"mcp-hydrolix\",\n    \"mcp-hydrolix\"\n  ],\n  \"env\": {\n    \"HYDROLIX_URL\": \"https://<hydrolix-host>\",\n    \"HYDROLIX_TOKEN\": \"<hydrolix-service-account-token>\"\n  }\n}\n```\n\nMCP Server definition using username and password (YAML):\n\n```yaml\ncommand: uvx\nargs:\n- --python\n- \"3.13\"\n- --refresh-package\n- mcp-hydrolix\n- mcp-hydrolix\nenv:\n  HYDROLIX_URL: https://<hydrolix-host>\n  HYDROLIX_USER: <hydrolix-user>\n  HYDROLIX_PASSWORD: <hydrolix-password>\n```\n\nMCP Server definition using service account token (YAML):\n\n```yaml\ncommand: uvx\nargs:\n- --python\n- \"3.13\"\n- --refresh-package\n- mcp-hydrolix\n- mcp-hydrolix\nenv:\n  HYDROLIX_URL: https://<hydrolix-host>\n  HYDROLIX_TOKEN: <hydrolix-service-account-token>\n```\n\n### Configuration Example (Claude Desktop)\n\n1. Open the Claude Desktop configuration file located at:\n   - On macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`\n   - On Windows: `%APPDATA%/Claude/claude_desktop_config.json`\n\n2. Add a `mcp-hydrolix` server entry to the `mcpServers` config block to use username and password:\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-hydrolix\": {\n      \"command\": \"uvx\",\n      \"args\": [\n        \"--python\",\n        \"3.13\",\n        \"--refresh-package\",\n        \"mcp-hydrolix\",\n        \"mcp-hydrolix\"\n      ],\n      \"env\": {\n        \"HYDROLIX_URL\": \"https://<hydrolix-host>\",\n        \"HYDROLIX_USER\": \"<hydrolix-user>\",\n        \"HYDROLIX_PASSWORD\": \"<hydrolix-password>\"\n      }\n    }\n  }\n}\n```\n\nTo leverage service account use the following config block:\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-hydrolix\": {\n      \"command\": \"uvx\",\n      \"args\": [\n        \"--python\",\n        \"3.13\",\n        \"--refresh-package\",\n        \"mcp-hydrolix\",\n        \"mcp-hydrolix\"\n      ],\n      \"env\": {\n        \"HYDROLIX_URL\": \"https://<hydrolix-host>\",\n        \"HYDROLIX_TOKEN\": \"<hydrolix-service-account-token>\"\n      }\n    }\n  }\n}\n```\n\n3. Update the environment variable definitions to point to your Hydrolix cluster.\n\n4. (Recommended) Locate the command entry for `uvx` and replace it with the absolute path to the `uvx` executable. This ensures that the correct version of `uvx` is used when starting the server. You can find this path using `which uvx` or `where.exe uvx`.\n\n5. 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.\n\n### Configuration Example (Claude Code)\n\nTo configure the Hydrolix MCP server for Claude Code, run the following command:\n\n```bash\nclaude mcp add --transport stdio hydrolix \\\n  --env HYDROLIX_USER=<hydrolix-user> \\\n  --env HYDROLIX_PASSWORD=<hydrolix-password> \\\n  --env HYDROLIX_URL=https://<hydrolix-host> \\\n  --env HYDROLIX_MCP_SERVER_TRANSPORT=stdio \\\n  -- uvx --python 3.13 --refresh-package mcp-hydrolix mcp-hydrolix\n```\n\n### Environment Variables\n\nThe 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.\n\n#### Required Variables\n\nYou MUST set one of the following to identify the cluster:\n\n* `HYDROLIX_URL` *(recommended)*: The canonical public URL of your Hydrolix cluster, e.g. `https://mycluster.hydrolix.live`. For typical out-of-cluster deployments this single variable is sufficient — it supplies the host, port (scheme-default 443/80), and TLS settings for both the HTTP query endpoint and the REST `/version` probe.\n* `HYDROLIX_HOST` *(deprecated)*: The hostname of your Hydrolix server. Still honored for backwards compatibility but should be replaced by `HYDROLIX_URL`.\n\nWhen `HYDROLIX_MCP_SERVER_TRANSPORT` is `http` or `sse`, `HYDROLIX_URL` *specifically* is required (a forthcoming OAuth metadata endpoint would advertise it). `HYDROLIX_HOST` alone is not sufficient for these transports.\n\n#### Authentication Variables\nAt least one authentication method must be configured when using the stdio transport:\n\n* `HYDROLIX_TOKEN`: Service account token for environment-based authentication\n* `HYDROLIX_USER` and `HYDROLIX_PASSWORD`: Username and password for environment-based authentication (both must be provided together)\n\nIn summary:\n- For stdio, you MUST use HYDROLIX_TOKEN or HYDROLIX_USER+HYDROLIX_PASS (environmental credentials)\n- For http/sse, you MAY use HYDROLIX_TOKEN or HYDROLIX_USER+HYDROLIX_PASS (environmental credentials), but you may instead use per-request credentials.\n\nIf no credentials are provided via the environment or the request, the request will fail.\n\n#### Using Per-Request Authentication with HTTP Transport\n\nWhen 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.\n\nExample `mcpServers` configuration connecting to a remote HTTP server with per-request authentication:\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-hydrolix-remote\": {\n      \"url\": \"https://my-hydrolix-mcp.example.com/mcp?token=<service-account-token>\"\n    }\n  }\n}\n```\n\nExample minimal `.env` configuration for running your own HTTP server without environment credentials:\n\n```env\nHYDROLIX_URL=https://my-cluster.hydrolix.net\nHYDROLIX_MCP_SERVER_TRANSPORT=http\n```\n\nThough 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.\n\nNote: The bind host and port settings are only used when transport is set to \"http\" or \"sse\".\n\n#### Optional Variables\n\nSee **[docs/CONFIG.md](docs/CONFIG.md)** for 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).\n\n## Maintainers\n\nTasks that need operational privileges — running the end-to-end suite against a\nlive Hydrolix cluster, and cutting a release — are documented separately in\n[`MAINTAINERS.md`](MAINTAINERS.md).\n",
  "bytes": 16898,
  "sha": "e3454d6b041366c07736ed88af5199e837632de9bbb44d25c1353c3039875c54",
  "repo_slug": "hydrolix/mcp-hydrolix",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_hydrolix_mcp_hydrolix_7f1a4732/readme"
}