Hologres MCP Server

Official
by aliyun

Integrations

  • Enables downloading the Hologres MCP Server source code for local integration.

Hologres MCP 服务器

Hologres MCP Server 是 AI Agent 与 Hologres 数据库之间的通用接口,它实现了 AI Agent 与 Hologres 之间的无缝通信,帮助 AI Agent 获取 Hologres 数据库元数据并执行 SQL 操作。

配置

方式一:使用本地文件

下载

从 Github 下载

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

在MCP客户端配置文件中添加如下配置:

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

模式 2:使用 PIP 模式

安装

使用以下软件包安装 MCP 服务器:

pip install hologres-mcp-server
MCP 集成

在MCP客户端配置文件中添加如下配置:

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

成分

工具

  • execute_select_sql :在 Hologres 服务器上执行 SELECT SQL 查询
  • execute_dml_sql :在 Hologres 服务器上执行 DML(INSERT、UPDATE、DELETE)SQL 查询
  • execute_ddl_sql :在 Hologres 服务器上执行 DDL(CREATE、ALTER、DROP)SQL 查询
  • gather_table_statistics :收集表统计信息
  • get_query_plan :获取查询计划
  • get_execution_plan :获取执行计划

资源

内置资源
  • hologres:///schemas :获取数据库中的所有模式
资源模板
  • hologres:///{schema}/tables :列出模式中的所有表
  • hologres:///{schema}/{table}/partitions :列出分区表的所有分区
  • hologres:///{schema}/{table}/ddl :获取表 DDL
  • hologres:///{schema}/{table}/statistic :显示收集的表统计信息
  • system:///{+system_path} :系统路径包括:
    • missing_stats_tables - 显示缺少统计数据的表。
    • stat_activity - 显示当前正在运行的查询的信息。
    • query_log/latest/<row_limits> - 获取具有指定行数的最新查询日志历史记录。
    • query_log/user/<user_name>/<row_limits> - 获取具有行限制的特定用户的查询日志历史记录。
    • query_log/application/<application_name>/<row_limits> - 获取具有行限制的特定应用程序的查询日志历史记录。
    • query_log/failed//<row_limits> - 获取具有间隔和指定行数的失败查询日志历史记录。

提示

目前无

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

一个通用接口,使 AI 代理能够与 Hologres 数据库通信,从而允许它们检索数据库元数据并执行 SQL 操作。

  1. Configuration
    1. Mode 1: Using Local File
    2. Mode 2: Using PIP Mode
  2. Components
    1. Tools
    2. Resources
    3. Prompts

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    Allows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.
    Last updated -
    1
    360
    Python
    MIT License
    • Linux
    • Apple
  • -
    security
    F
    license
    -
    quality
    Enables AI assistants to interact with Metabase databases and dashboards, allowing users to list and execute queries, access data visualizations, and interact with database resources through natural language.
    Last updated -
    9
    JavaScript
    • Apple
  • -
    security
    F
    license
    -
    quality
    Enables AI assistants to interact with Metabase, providing access to dashboards, questions, databases, and tools for executing queries and viewing data through natural language.
    Last updated -
    JavaScript
    • Apple
  • A
    security
    A
    license
    A
    quality
    Acts as a bridge between AI assistants and StarRocks databases, allowing for direct SQL execution and database exploration without requiring complex setup or configuration.
    Last updated -
    5
    17
    Python
    Apache 2.0

View all related MCP servers

ID: rds5y1z8q6