AI万址

Hydrolix MCP服务器

Hydrolix MCP服务器是一个用于连接和查询Hydrolix集群的工具,支持多种认证方式和客户端配置。

Hydrolix MCP服务器是 hydrolix 开发的 MCP 服务器:Hydrolix MCP服务器是一个用于连接和查询Hydrolix集群的工具,支持多种认证方式和客户端配置。接入两步走:pip install mcp-hydrolix,再把下文配置粘进客户端 mcpServers 段重启即可。

它是干什么的

先把话说清楚:Hydrolix MCP服务器不是又一个大模型,而是一个标准的 MCP 服务器。装好之后,你的 AI 客户端多出一组新工具,模型可以按需调用。Hydrolix MCP服务器是一个用于连接和查询Hydrolix集群的工具,支持多种认证方式和客户端配置

项目数据
开发者hydrolix
Star11
收藏0
质量等级B
平台分类数据库
部署标签本地部署、数据库连接、SQL查询
仓库mcp-hydrolix

核心能力

  • 本地部署(平台标签)
  • 数据库连接(平台标签)
  • SQL查询(平台标签)

适合谁用

两类人最该装:一是想让 AI 直接查询、分析业务数据的数据和后端工程师;二是已经在用 MCP 生态、想按需拼装能力的折腾型用户。反过来,如果你只需要偶尔手动用它背后的服务,直接开网页就行,不必上 MCP。

完整安装配置步骤

动手前确认环境齐了:

  • Python 3.10+ 与 pip(个别仓库要求 3.11+,以 README 为准)。
  • 一个支持 MCP 的客户端:Claude Desktop、Cursor、Cline、Windsurf 任选其一。
  • 对应平台的 API Key(第 2 步要用)。

第 1 步:安装Hydrolix MCP服务器

终端里任选一条(不同安装方式,效果等价):

bash
pip install mcp-hydrolix
claude mcp add --transport stdio hydrolix \

第 2 步:写入 MCP 配置

先把凭证准备好:HYDROLIX_TOKEN。拿不到后面全白搭。

Claude Desktop 的配置文件路径:macOS 在 ~/Library/Application Support/Claude/claude_desktop_config.json,Windows 在 %APPDATA%\Claude\claude_desktop_config.json;Cursor 则是 ~/.cursor/mcp.json(或项目级 .cursor/mcp.json)。把下面这段并进 mcpServers 段(注意是并进外层大括号,别整个文件替换):

方式 1(任选一份):

bash
### Step 3 — Configure Claude Desktop

1. 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`

2. Add the following entry to the `"mcpServers"` object (create the file with this content if it doesn't exist yet):

方式 2(pip 安装走这份):

bash
Replace `<your-hydrolix-hostname>`, `<your-username>`, and `<your-password>` with your actual credentials.

> [!NOTE]
> If you used Option B (pip), use `"command": "mcp-hydrolix"` with no `"args"` field instead.

> [!TIP]
> If the file already has other entries, add the `"mcp-hydrolix"` block inside the existing `"mcpServers"` object rather than replacing the whole file.

> [!NOTE]
> If you authenticate with a service account token instead of username/password, see [Authentication](#authentication).

<details>
<summary><strong>Command not found?</strong></summary>

Claude 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.

**Option A (uv):** find `uvx`:

- **macOS / Linux:** `which uvx`
- **Windows:** `where.exe uvx`

**Option B (pip):** find `mcp-hydrolix`:

- **macOS / Linux:** `which mcp-hydrolix`
- **Windows:** `where.exe mcp-hydrolix`

If `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.

</details>

### Step 4 — Restart Claude Desktop

Restart the app to apply the configuration.

> **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.

### Step 5 — Verify it's working

1. Open a new conversation in Claude Desktop. Look for a tools/hammer icon near the text input — this confirms the MCP server connected successfully.

2. Try this prompt to confirm everything is working:

   > Using your Hydrolix MCP tools, list the available databases.

Claude should call the `list_databases` tool and return a list of databases from your cluster.

方式 3(任选一份):

bash
### Using Claude Code instead?

If you prefer the command line, make sure uv is installed (Option A from [Step 2](#step-2--install-the-mcp-server)), then run:

改完保存。Windows 用户注意:如果 commandnpx 起不来,换成 npx.cmd 再试。

第 3 步:重启并验证

完全退出客户端再打开(是托盘里真正退出,不是关窗口)。工具列表里出现Hydrolix MCP服务器的工具即接入成功;调用报错的话,先查下面的坑点清单。

容易踩的坑

  • Key 填了但没生效:多半填在了 args 而不是 env 段。客户端日志里看到 Environment variable HYDROLIX_TOKEN not set 就是这个原因。
  • 改了配置没反应:客户端只重启了窗口没退进程。macOS 按 Cmd+Q,Windows 检查托盘。
  • JSON 报错打不开客户端:多半是最后多个逗号。粘进任何 JSON 校验器里查一遍再保存。

常见问题

Q

Hydrolix MCP服务器免费吗?

A

代码在 GitHub(https://github.com/hydrolix/mcp-hydrolix)开放获取。个别功能依赖第三方服务时费用另算,看仓库 LICENSE 和定价页。

Q

Hydrolix MCP服务器能用在 Cursor / Cline 吗?

A

能。MCP 是通用协议,同一份 mcpServers 配置在这些客户端之间基本通用,只是配置文件位置不同。

Q

API Key 从哪拿?

A

去对应平台的开发者控制台申请,填进配置的 env 段。Key 泄露记得直接去平台吊销,别只改本地文件。

Q

需要外网或代理吗?

A

拉包和调用官方 API 需要能访问 GitHub 与对应服务域名,内网环境先测 git ls-remote 和接口连通性。