Skip to main content
Glama

Trino MCP Server

Servidor Trino MCP

Este repositorio proporciona un servidor MCP (Modelo-Control-Protocolo) que le permite enumerar y consultar tablas a través de Trino usando Python.

Descripción general

  • MCP: MCP es un protocolo para conectar modelos de IA, datos y herramientas. Este servidor MCP de ejemplo proporciona:
    • Una lista de tablas Trino como recursos MCP
    • Capacidad de leer el contenido de la tabla a través de MCP
    • Una herramienta para ejecutar consultas SQL arbitrarias contra Trino
  • Trino: Un motor de consultas SQL rápido y distribuido para el análisis de big data. Este servidor utiliza el cliente Python de Trino (trino.dbapi) para conectarse a un host, catálogo y esquema de Trino.

Requisitos

  • Python 3.9+ (o una versión compatible con mcp, trino y asyncio)
  • trino (el controlador Python para Trino)
  • mcp (la biblioteca de Python Modelo-Control-Protocolo)

Configuración

El servidor lee los detalles de la conexión de Trino desde las variables de entorno:

VariableDescripciónPor defecto
TRINO_HOSTNombre de host o IP del servidor Trinolocalhost
TRINO_PORTPuerto del servidor Trino8080
TRINO_USERNombre de usuario Trinorequerido
TRINO_PASSWORDContraseña de Trino (opcional, depende de su configuración de autenticación)(vacío)
TRINO_CATALOGCatálogo predeterminado a utilizar (por ejemplo, hive , tpch , postgresql , etc.)requerido
TRINO_SCHEMAEsquema predeterminado a utilizar (por ejemplo, default , public , etc.)requerido

Uso

{ "mcpServers": { "trino": { "command": "uv", "args": [ "--directory", "<path_to_mcp_server_trino>", "run", "mcp_server_trino" ], "env": { "TRINO_HOST": "<host>", "TRINO_PORT": "<port>", "TRINO_USER": "<user>", "TRINO_PASSWORD": "<password>", "TRINO_CATALOG": "<catalog>", "TRINO_SCHEMA": "<schema>" } } } }
-
security - not tested
A
license - permissive license
-
quality - not tested

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.

Un servidor MCP que permite enumerar y consultar tablas Trino usando Python, proporcionando acceso a recursos de datos a través del Protocolo Modelo-Control.

  1. Descripción general
    1. Requisitos
      1. Configuración
        1. Uso

          Related MCP Servers

          • A
            security
            F
            license
            A
            quality
            An MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.
            Last updated -
            39
            28
            • Apple
          • -
            security
            A
            license
            -
            quality
            A server that helps people access and query data in databases using the Query Runner with integration of the Model Context Protocol (MCP) Python SDK. Support databases including PostgreSQL Redshift MySQL Microsoft SQL Server Google APIs Amazon Web Services (via boto3) CockroachDB SQLite
            Last updated -
            26
            Python
            GPL 3.0
            • Linux
            • Apple
          • -
            security
            -
            license
            -
            quality
            An MCP server that enables natural language interaction with Apache Iceberg data lakehouses, allowing users to query table metadata, schemas, and properties through Claude, Cursor, or other MCP clients.
            Last updated -
            31
            Python
            Apache 2.0
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that provides seamless integration with Trino and Iceberg, enabling data exploration, querying, and table maintenance through a standard interface.
            Last updated -
            14
            Python
            Apache 2.0

          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/Dataring-engineering/mcp-server-trino'

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