Skip to main content
Glama

Hologres MCP Server

Official
by aliyun

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> - 获取具有间隔和指定行数的失败查询日志历史记录。

提示

目前无

Install Server
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. 配置
    1. 方式一:使用本地文件
    2. 模式 2:使用 PIP 模式
  2. 成分
    1. 工具
    2. 资源
    3. 提示

Related MCP Servers

  • -
    security
    F
    license
    -
    quality
    A server that allows AI models to interact with PostgreSQL databases through a standardized protocol, providing database schema information and SQL query execution capabilities.
    Last updated -
    1
    JavaScript
  • A
    security
    A
    license
    A
    quality
    Enables AI models to interact with PostgreSQL databases through a standardized interface, supporting operations like queries, table manipulation, and schema inspection.
    Last updated -
    5
    477
    5
    JavaScript
    MIT License
  • -
    security
    F
    license
    -
    quality
    A powerful server that enables AI agents to interact with MySQL databases, execute SQL queries, and manage database content through a simple interface.
    Last updated -
    22
    5
    JavaScript
    • Apple
  • -
    security
    A
    license
    -
    quality
    Enables AI agents to interact with PostgreSQL databases through the Model Context Protocol, providing database schema exploration, table structure inspection, and SQL query execution capabilities.
    Last updated -
    13
    Python
    MIT License
    • Linux
    • Apple

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aliyun/alibabacloud-hologres-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server