Hologres MCP Server Setup Guide

Mode 1: Using Local File

Step 1: Download the Repository

Clone the Hologres MCP Server repository from GitHub:

git clone https://github.com/aliyun/alibabacloud-hologres-mcp-server.git
 

Step 2: Configure MCP Client

Add the following configuration to the MCP client configuration file:

"mcpServers": {
  "hologres-mcp-server": {
  "command": "uv",
  "args": [
  "--directory",
  "/path/to/alibabacloud-hologres-mcp-server",
  "run",
  "hologres-mcp-server"
  ],
  "env": {
  "HOLOGRES_HOST": "host",
  "HOLOGRES_PORT": "port",
  "HOLOGRES_USER": "access_id",
  "HOLOGRES_PASSWORD": "access_key",
  "HOLOGRES_DATABASE": "database"
  }
  }
 }
 

Mode 2: Using PIP Mode

Step 1: Install MCP Server

Install the Hologres MCP Server package via pip:

pip install hologres-mcp-server
 

Step 2: Configure MCP Client

Add the following configuration to the MCP client configuration file:

"mcpServers": {
  "hologres-mcp-server": {
  "command": "uv",
  "args": [
  "run",
  "--with",
  "hologres-mcp-server",
  "hologres-mcp-server"
  ],
  "env": {
  "HOLOGRES_HOST": "host",
  "HOLOGRES_PORT": "port",
  "HOLOGRES_USER": "access_id",
  "HOLOGRES_PASSWORD": "access_key",
  "HOLOGRES_DATABASE": "database"
  }
  }
 }
 
Share this post: