Hologres MCP Server

Official

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.

Integrations

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

홀로그레스 MCP 서버

Hologres MCP 서버는 AI 에이전트와 Hologres 데이터베이스 간의 범용 인터페이스 역할을 합니다. AI 에이전트와 Hologres 간의 원활한 통신을 지원하여 AI 에이전트가 Hologres 데이터베이스 메타데이터를 검색하고 SQL 작업을 실행할 수 있도록 지원합니다.

구성

모드 1: 로컬 파일 사용

다운로드

Github에서 다운로드

지엑스피1

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/<간격>/<행_한도> - 지정된 간격과 행 수를 포함하여 실패한 쿼리 로그 기록을 가져옵니다.

프롬프트

지금은 없음

You must be authenticated.

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

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
ID: rds5y1z8q6