StarRocks 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

  • Provides access to system information through a proc-like interface, allowing exploration of node status, database details, and system metrics similar to the Linux /proc filesystem.

  • Enables execution of SQL queries against StarRocks databases using Python, supporting both read operations (SELECT queries) and write operations (DDL/DML commands).

Starrocks 공식 MCP 서버

StarRocks MCP 서버는 AI 어시스턴트와 StarRocks 데이터베이스 간의 브리지 역할을 하며, 복잡한 설정이나 구성 없이도 직접 SQL을 실행하고 데이터베이스를 탐색할 수 있습니다.

구성

MCP 서버 구성

지엑스피1

mcp-server-starrocks가 Python 패키지(dev env)로 설치되지 않은 경우 로컬 디렉토리를 사용하여 실행할 수 있습니다.

{ "mcpServers": { "mcp-server-starrocks": { "command": "uv", "args": [ "--directory", "path/to/mcp-server-starrocks", "run", "mcp-server-starrocks" ], "env": { "STARROCKS_HOST": "default localhost", "STARROCKS_PORT": "default 9030", "STARROCKS_USER": "default root", "STARROCKS_PASSWORD": "default empty" } } } }

구성 요소

도구

  • read_query
    • ResultSet을 반환하는 SELECT 쿼리 또는 명령을 실행합니다.
  • write_query
    • ResultSet이 없는 DDL/DML 또는 기타 StarRocks 명령을 실행합니다.

자원

직접 자원

  • starrocks:///databases
    • StarRocks의 모든 데이터베이스를 나열합니다.

리소스 템플릿

  • starrocks:///{db}/{table}/schema
    • SHOW CREATE TABLE을 사용하여 테이블의 스키마를 가져옵니다.
  • starrocks:///{db}/tables
    • 특정 데이터베이스의 모든 테이블을 나열합니다
  • proc:///{+path}
    • StarRocks가 linux /proc와 유사하게 노출하는 시스템 내부 정보
    • 일반적인 경로는 다음과 같습니다.
      • /frontends - FE 노드의 정보를 보여줍니다.
      • /backends - 이 SR이 클라우드 네이티브 배포가 아닌 경우 BE 노드의 정보를 표시합니다.
      • /compute_nodes - 이 SR이 클라우드 네이티브 배포인 경우 CN 노드의 정보를 표시합니다.
      • /dbs - 데이터베이스 정보를 보여줍니다
      • /dbs/<DB_ID> - 데이터베이스 ID별로 데이터베이스 정보를 표시합니다.
      • /dbs/<DB_ID>/<TABLE_ID> - 데이터베이스 ID별로 테이블 정보를 보여줍니다.
      • /dbs/<DB_ID>/<TABLE_ID>/partitions - 데이터베이스 ID 및 테이블 ID별 파티션 정보를 표시합니다.
      • /transactions - 데이터베이스별 거래 정보를 보여줍니다.
      • /transactions/<DB_ID> - 데이터베이스 ID별 거래 정보를 보여줍니다.
      • /transactions/<DB_ID>/running - 데이터베이스 ID별로 실행 중인 트랜잭션 정보를 표시합니다.
      • /transactions/<DB_ID>/finished - 데이터베이스 ID별로 완료된 거래 정보를 보여줍니다.
      • /jobs - 작업 정보를 보여줍니다
      • /statistic - 각 데이터베이스의 통계를 보여줍니다.
      • /tasks - 모든 일반 작업의 총 수와 실패한 작업 수를 표시합니다.
      • /cluster_balance - 부하 분산 정보를 표시합니다.
      • /routine_loads - 루틴 로드 정보를 보여줍니다.
      • /colocation_group - Colocate Join 그룹의 정보를 표시합니다.
      • /catalog - 카탈로그 정보를 보여줍니다

프롬프트

없음

-
security - not tested
A
license - permissive license
-
quality - not tested

AI 어시스턴트와 StarRocks 데이터베이스 사이의 브리지 역할을 하여 복잡한 설정이나 구성 없이도 직접 SQL을 실행하고 데이터베이스를 탐색할 수 있습니다.

  1. Configuration
    1. Components
      1. Tools
      2. Resources
      3. Prompts
    ID: mgys7ofvs0