MCP server for Trino data warehouses. Query, analyze plans, and explore schemas.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
mcp-trino.txn2.com | Installation | Library Docs
A Model Context Protocol (MCP) server for Trino, enabling AI assistants to query and explore data warehouses with optional semantic context from metadata catalogs.
AI assistants excel at querying data but lack organizational context: which tables are trustworthy, what metrics mean, and which columns contain sensitive data. mcp-trino bridges this gap by connecting Trino to AI assistants through the MCP protocol, with an optional semantic layer that surfaces business metadata alongside query results.
mcp-trino is part of a broader suite of open-source MCP servers designed to work together as a composable data platform. Each component can run standalone or be combined to give AI assistants unified access to storage, query engines, and metadata catalogs.
Composable Architecture
Semantic Context
Multi-Cluster Connectivity
Secure Defaults
Claude Desktop is the GUI application for chatting with Claude. Install the mcp-trino extension to enable Trino queries in your conversations.
Option 1: One-Click Install (Recommended)
Download the .mcpb bundle for your Mac from the releases page and double-click to install:
| Mac Type | Chip | Download |
|---|---|---|
| MacBook Air/Pro (2020+), Mac Mini (2020+), iMac (2021+), Mac Studio | Apple M1, M2, M3, M4 (arm64) | mcp-trino_*_darwin_arm64.mcpb |
| MacBook Air/Pro (pre-2020), Mac Mini (pre-2020), iMac (pre-2021) | Intel (amd64) | mcp-trino_*_darwin_amd64.mcpb |
Tip: Not sure which chip you have? Click β "About This Mac". Look for "Chip" (Apple Silicon) or "Processor" (Intel).
Option 2: Manual Configuration
Add to your claude_desktop_config.json (find via Claude Desktop β Settings β Developer):
Claude Code is the terminal-based coding assistant. Add mcp-trino as an MCP server:
Or download and install manually:
Download pre-built binaries from the releases page. All releases are signed with Cosign and include SLSA provenance.
You can configure multiple Trino instances with different names:
| Tool | Description |
|---|---|
trino_query | Execute read-only SQL queries (SELECT, SHOW, DESCRIBE) with limit/timeout control |
trino_execute | Execute any SQL including write operations (INSERT, UPDATE, DELETE, CREATE, DROP) |
trino_explain | Get execution plans (logical/distributed/io/validate) |
trino_browse | Browse catalog hierarchy: list catalogs, schemas, or tables |
trino_describe_table | Get columns, sample data, and semantic context (if configured) |
trino_list_connections | List all configured server connections |
AI agents operate more reliably when they understand organizational context: not just table structures, but which datasets are production-ready, what business terms mean, and which columns require careful handling.
mcp-trino's semantic layer integrates with metadata catalogs to surface this context alongside query results:
| Metadata | Description |
|---|---|
| Descriptions | Business-friendly explanations of tables and columns |
| Ownership | Data stewards and technical owners |
| Tags & Domains | Classification labels and business domains |
| Glossary Terms | Links to formal business definitions |
| Data Quality | Freshness scores and quality metrics |
| Sensitivity | PII and sensitive data markers at column level |
| Lineage | Upstream and downstream data dependencies |
| Provider | Description |
|---|---|
| DataHub | Connect to DataHub's GraphQL API for enterprise metadata |
| Static Files | Load metadata from YAML or JSON files with hot-reload |
| Custom | Implement the semantic.Provider interface for any catalog |
See the Semantic Layer Documentation for configuration, caching, and custom provider development.
| Environment Variable | Description | Default |
|---|---|---|
TRINO_HOST | Trino server hostname | localhost |
TRINO_PORT | Trino server port | 443 (SSL) / 8080 |
TRINO_USER | Authentication username | (required) |
TRINO_PASSWORD | Authentication password | (optional) |
TRINO_CATALOG | Default catalog | memory |
TRINO_SCHEMA | Default schema | default |
TRINO_SSL | Enable HTTPS | true for remote hosts |
TRINO_SSL_VERIFY | Verify SSL certificates | true |
TRINO_TIMEOUT | Query timeout (seconds) | 120 |
TRINO_SOURCE | Client identifier | mcp-trino |
TRINO_ADDITIONAL_SERVERS | Additional servers (JSON) | (optional) |
Connect to multiple Trino servers from a single installation. Configure your primary server with the standard environment variables, then add additional servers via JSON:
Additional servers inherit credentials and settings from the primary server unless overridden:
Use the connection parameter in any tool to target a specific server:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-trino)<a href="https://allmcps.com/mcp/mcp-trino"><img src="https://allmcps.com/api/badge/mcp-trino?style=directory" alt="MCP Trino on AllMCPs" /></a>