Trino MCP Server
About
Securely interact with Trino databases to list tables, read data, and execute SQL queries.
Details
- Author
- dataring-engineering
- GitHub stars
- 18
- Downloads
- 167
- Categories
- Database, Other
- Tags
- #sql, #analytics
Jump to
- Lists Trino tables as MCP resources.
- Reads table contents through MCP.
- Provides a tool for arbitrary SQL queries.
- Connects to any Trino host, catalog, and schema.
- Uses the official Trino Python driver (trino.dbapi).
Configure connection via environment variables (TRINO_HOST, TRINO_PORT, TRINO_USER, TRINO_PASSWORD, TRINO_CATALOG, TRINO_SCHEMA), then add the server to your MCP client configuration using uv as the command. The server reads these variables at startup and connects to the specified Trino host, catalog, and schema.
This repository provides an MCP (Model-Control-Protocol) server that allows you to list and query tables via Trino using Python.
- MCP: MCP is a protocol for bridging AI models, data, and tools. This example MCP server provides:
- A list of Trino tables as MCP resources
- Ability to read table contents through MCP
- A tool for executing arbitrary SQL queries against Trino
- Python 3.9+ (or a version compatible with mcp, trino, and asyncio)
- trino (the Python driver for Trino)
- mcp (the Model-Control-Protocol Python library)
The server reads Trino connection details from environment variables:
{ "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>" } } } }
Official MCP server for dbt (data build tool) providing integration with dbt Core/Cloud CLI, project metadata discovery, model information, and semantic layer querying capabilities.
Query and analyze data with MotherDuck and local DuckDB
An MCP server for querying and interacting with AWS Athena.
Access Google BigQuery to understand dataset structures and execute SQL queries.
A secure, self-hosted Model Context Protocol (MCP) server for Google BigQuery. Hard table allowlists, per-query scan ceilings, built-in rate limiting, and predictable costs on Cloud Run. Works with Claude, ChatGPT, Cursor, Gemini, and any MCP-compatible AI agent.
A read-only MCP server for SAP BusinessObjects BI, powered by the CData JDBC Driver.
An MCP server for interacting with a ClickHouse database.
A Node.js server for querying ClickHouse databases.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





