Trino MCP Server

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

  • Mentioned as a possible catalog type that can be used with Trino through the MCP server

  • Mentioned as a possible catalog type that can be used with Trino through the MCP server

  • Allows users to list tables, read table contents, and execute arbitrary SQL queries against a Trino database through an MCP server

트리노 MCP 서버

이 저장소는 Python을 사용하여 Trino를 통해 테이블을 나열하고 쿼리할 수 있는 MCP(모델-제어-프로토콜) 서버를 제공합니다.

개요

  • MCP: MCP는 AI 모델, 데이터 및 도구를 연결하는 프로토콜입니다. 이 예시 MCP 서버는 다음을 제공합니다.
    • MCP 리소스로서의 Trino 테이블 목록
    • MCP를 통해 테이블 내용을 읽을 수 있는 기능
    • Trino에 대한 임의의 SQL 쿼리를 실행하기 위한 도구
  • Trino: 빅데이터 분석을 위한 빠른 분산 SQL 쿼리 엔진입니다. 이 서버는 Trino의 Python 클라이언트(trino.dbapi)를 사용하여 Trino 호스트, 카탈로그 및 스키마에 연결합니다.

요구 사항

  • Python 3.9 이상(또는 mcp, trino, asyncio와 호환되는 버전)
  • trino(Trino용 Python 드라이버)
  • mcp(모델-제어-프로토콜 Python 라이브러리)

구성

서버는 환경 변수에서 Trino 연결 세부 정보를 읽습니다.

변하기 쉬운설명기본
TRINO_HOSTTrino 서버 호스트 이름 또는 IPlocalhost
TRINO_PORT트리노 서버 포트8080
TRINO_USER트리노 사용자 이름필수의
TRINO_PASSWORDTrino 비밀번호(선택 사항, 인증 설정에 따라 다름)(비어 있는)
TRINO_CATALOG사용할 기본 카탈로그(예: hive , tpch , postgresql 등)필수의
TRINO_SCHEMA사용할 기본 스키마(예: default , public 등)필수의

용법

지엑스피1

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

Python을 사용하여 Trino 테이블을 나열하고 쿼리할 수 있는 MCP 서버로, 모델 제어 프로토콜을 통해 데이터 리소스에 대한 액세스를 제공합니다.

  1. Overview
    1. Requirements
      1. Configuration
        1. Usage
          ID: m94exir35y