home / mcp / hologres mcp server
Provides a universal interface between AI Agents and Hologres databases to retrieve metadata and run SQL operations.
Configuration
View docs{
"mcpServers": {
"aliyun-alibabacloud-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_DATABASE": "database",
"HOLOGRES_PASSWORD": "access_key"
}
}
}
}Hologres MCP Server provides a universal interface between AI Agents and Hologres databases. It lets AI Agents discover Hologres metadata and execute SQL operations through a straightforward MCP connection.
Connect your MCP client to the Hologres MCP Server to enable seamless communication with Hologres databases. You can run the server locally (Mode 1) or install it via Python (Mode 2) and then point your MCP client at the running instance. The server exposes a set of tools for querying metadata, executing SQL, and performing maintenance tasks against Hologres.
Prerequisites: you need a runtime for the chosen mode (see Mode 1 and Mode 2). Ensure you have access to a Hologres instance and the required environment variables when configuring the MCP client.
Mode 1: Using Local File installs the MCP server code locally and runs it from a directory you specify. Use this when you want to host the MCP server on your own machine and reference a local copy of the server code.
Mode 2a uses uv mode to run the server with the hologres-mcp-server entry. Mode 2b uses uvx mode to run the same server component directly by name. In both cases, you provide the HOLOGRES_HOST, HOLOGRES_PORT, HOLOGRES_USER, HOLOGRES_PASSWORD, and HOLOGRES_DATABASE environment variables to connect to your Hologres instance.
Run a SELECT query against the Hologres database to fetch data.
Run a SELECT query using serverless computing resources for scalable results.
Execute DML statements (INSERT, UPDATE, DELETE) in Hologres.
Execute DDL statements (CREATE, ALTER, DROP, COMMENT ON) in Hologres.
Collect and return statistics for tables in Hologres to aid optimization.
Retrieve the query plan for a SQL statement in Hologres.
Retrieve the execution plan for a SQL statement in Hologres.
Invoke a stored procedure in Hologres.
Create MaxCompute foreign tables in the Hologres database.
List all non-system schemas in the current Hologres database.
List all tables in a specified schema, including types like table, view, external table, or partitioned table.
Show the DDL script for a table, view, or external table in Hologres.