Atlas / MCP servers / aliyun / Hologres

HologresSAFE

mcp/aliyun/hologres
Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
31 24r · 4w · 3d
Transport
sse · stdio · streamable-http
License
Apache-2.0
Stars
37
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

English | 中文

Hologres MCP Server serves as a universal interface between AI Agents and Hologres databases. It enables seamless communication between AI Agents and Hologres, helping AI Agents retrieve Hologres database metadata and execute SQL operations.

Configuration

Mode 1: Using Local File

Download

Download from Github

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

MCP Integration

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

Installation

Install MCP Server using the following package:

pip install hologres-mcp-server

MCP Integration

Add the following configuration to the MCP client configuration file:

Use uv mode

{
"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"
}
}
}
}

Use uvx mode

{
"mcpServers": {
"hologres-mcp-server": {
Read from source at commit 9dcd2fddeca9OBSERVED · 2026-10-08
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add hologres_mcp_server --env ALIBABA_CLOUD_ACCESS_KEY_ID=${ALIBABA_CLOUD_ACCESS_KEY_ID} --env ALIBABA_CLOUD_ACCESS_KEY_SECRET=${ALIBABA_CLOUD_ACCESS_KEY_SECRET} --env ALIBABA_CLOUD_SECURITY_TOKEN=${ALIBABA_CLOUD_SECURITY_TOKEN} --env HOLOGRES_PASSWORD=${HOLOGRES_PASSWORD} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "hologres_mcp_server": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "ALIBABA_CLOUD_ACCESS_KEY_ID": "${ALIBABA_CLOUD_ACCESS_KEY_ID}",
        "ALIBABA_CLOUD_ACCESS_KEY_SECRET": "${ALIBABA_CLOUD_ACCESS_KEY_SECRET}",
        "ALIBABA_CLOUD_SECURITY_TOKEN": "${ALIBABA_CLOUD_SECURITY_TOKEN}",
        "HOLOGRES_PASSWORD": "${HOLOGRES_PASSWORD}"
      }
    }
  }
}
03

Exposed tools (31)

24 read · 4 write · 3 destructive. Blast radius: 3 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
analyze_hg_query_by_idreadAnalyze a specific query
call_hg_procedurereadCall a stored procedure in Hologres database.
execute_hg_ddl_sqldestructiveExecute (CREATE, ALTER, DROP) SQL statements to CREATE, ALTER, or DROP tables, views, procedures, GUCs etc. in Hologres database.
execute_hg_dml_sqldestructiveExecute (INSERT, UPDATE, DELETE, REFRESH DYNAMIC TABLE) SQL to insert, update, delete data, and refresh dynamic tables in Hologres database.
execute_hg_select_sqlwriteExecute SELECT SQL to query data from Hologres database.
execute_hg_select_sql_with_serverlesswriteUse Serverless Computing resources to execute SELECT SQL to query data in Hologres database. When the error like
gather_hg_table_statisticswriteExecute the ANALYZE TABLE command to have Hologres collect table statistics, enabling QO to generate better query plans.
get_hg_dynamic_table_refresh_historyreadGet refresh history for a specific Dynamic Table, including duration, status, and latency.
get_hg_execution_planreadGet actual execution plan with runtime statistics for a SQL query in Hologres database.
get_hg_guc_configreadGet the current value of a GUC (Grand Unified Configuration) parameter.
get_hg_lock_diagnosticsreadDiagnose lock contention by showing blocking and waiting queries. Useful for identifying lock waits that cause query hangs.
get_hg_query_planreadGet query plan for a SQL query in Hologres database.
get_hg_table_info_trendreadGet table storage trend from hg_table_info, showing daily storage size, file count, and row count changes. Data is T+1, retained for 30 days.
get_hg_table_propertiesreadGet table properties including distribution_key, clustering_key, segment_key, bitmap_columns, dictionary_columns, binlog settings, etc.
get_hg_table_shard_inforeadGet table
get_hg_table_storage_sizereadGet storage size details of a table, including total size, data, index, and metadata breakdown.
get_hg_warehouse_statusreadGet detailed running status and scaling progress of a computing group (warehouse).
list_hg_active_queriesreadList currently active queries and connections from pg_stat_activity. Useful for monitoring running queries and finding PIDs to cancel.
list_hg_data_masking_rulesreadList all data masking rules configured via hg_anon extension, including column-level and user-level masking labels.
list_hg_dynamic_tablesreadList all Dynamic Tables with their status, freshness settings, and last refresh info.
list_hg_external_databasesreadList all External Databases (federated databases for Lakehouse acceleration). Requires Hologres V3.0+.
list_hg_query_queuesreadList all Query Queues and their classifiers, showing concurrency limits, queue sizes, and routing rules. Requires Hologres V3.0+.
list_hg_recyclebinreadList all tables in the Hologres recycle bin (dropped tables that can be restored).
list_hg_schemasreadList all schemas in the current Hologres database, excluding system schemas.
list_hg_tables_in_a_schemareadList all tables in a specific schema in the current Hologres database, including their types (table, view, foreign table, partitioned table).
list_hg_warehousesreadList all computing groups (warehouses) in the Hologres instance, including their CPU, memory, cluster count, and status.
manage_hg_classifierdestructiveCreate or drop a classifier for a Query Queue. Use set_hg_query_queue_property to configure classifier rules after creation. Requires Hologres V3.0+.
rebalance_hg_warehousewriteTrigger shard rebalancing for a computing group to eliminate data skew across nodes.
restore_hg_table_from_recyclebinreadRestore a dropped table from the Hologres recycle bin. Only works if the table is still in the recycle bin.
show_hg_table_ddlreadShow DDL script for a table, view, or foreign table in Hologres database.
switch_hg_warehousereadSwitch the current session
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
none-observed
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (4)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
execute_hg_ddl_sql, execute_hg_dml_sql, manage_hg_classifier
Why it matters. 3 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.hidden_file · CWE-1104
.gitlab-ci.yml
.gitlab-ci.yml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
tests/integration/.test_mcp_client_env_example
.test_mcp_client_env_example
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
tests/requirements.txt
mcp, python-dotenv, psycopg
Why it matters. 3 requirement(s) not pinned with ==
Fix. pin exact versions

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha 9dcd2fddeca9full audit observations/trust-audit/mcp-server/aliyun__hologres.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-089dcd2fddeca9SAFEB89first audit
06

Questions

What tools does Hologres expose?

31 in total: 24 read-only, 4 that write, and 3 that can delete or overwrite (execute_hg_ddl_sql, execute_hg_dml_sql, manage_hg_classifier). Every one is listed on this page with its risk.

Is Hologres safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 3 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Hologres need?

It reads ALIBABA_CLOUD_ACCESS_KEY_ID, ALIBABA_CLOUD_ACCESS_KEY_SECRET, ALIBABA_CLOUD_SECURITY_TOKEN and HOLOGRES_PASSWORD from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Hologres run?

It speaks sse, stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as hologres_mcp_server at 1.0.2.

How current is this page?

The grade is for one exact copy of the source (9dcd2fddeca9), read on 2026-10-08. The repository is watched and re-audited when it changes.

Advertisement