Trino MCP Server to query and access data from Trino Clusters.
This document details the implementation and usage of an MCP (Model Context Protocol) server designed to seamlessly integrate Trino, a high-performance distributed SQL query engine, with AI models and applications. This server empowers AI agents to discover, query, and leverage data residing within Trino, unlocking powerful new capabilities for data-driven AI workflows.
trino.dbapi
) to establish a connection and execute queries against a Trino cluster.The MCP server provides the following key functionalities:
mcp
, trino
, and asyncio
libraries.trino
package, which provides the necessary functionality to connect to and interact with Trino.mcp
package, which provides the framework for building MCP-compliant servers.The server relies on environment variables for configuring the Trino connection. This approach promotes security and flexibility, allowing you to easily adapt the server to different Trino environments.
| Environment Variable | Description
๐ โ๏ธ Biomedical research server providing access to PubMed, ClinicalTrials.gov, and MyVariant.info.
๐ MCP server that provides SQL analysis, linting, and dialect conversion using [SQLGlot](https://github.com/tobymao/sqlglot)
๐ ๐ All-in-one MCP server for Postgres development and operations, with tools for performance analysis, tuning, and health checks
Supabase MCP Server with support for SQL query execution and database exploration tools