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_HOST | Trino 서버 호스트 이름 또는 IP | localhost |
TRINO_PORT | 트리노 서버 포트 | 8080 |
TRINO_USER | 트리노 사용자 이름 | 필수의 |
TRINO_PASSWORD | Trino 비밀번호(선택 사항, 인증 설정에 따라 다름) | (비어 있는) |
TRINO_CATALOG | 사용할 기본 카탈로그(예: hive , tpch , postgresql 등) | 필수의 |
TRINO_SCHEMA | 사용할 기본 스키마(예: default , public 등) | 필수의 |
용법
지엑스피1
This server cannot be installed
Python을 사용하여 Trino 테이블을 나열하고 쿼리할 수 있는 MCP 서버로, 모델 제어 프로토콜을 통해 데이터 리소스에 대한 액세스를 제공합니다.