
Mcp Trino
io.github.txn2Published by GitHub account txn2v0.2.1Updated Oct 24, 2026
MCP server for Trino data warehouses. Query, analyze plans, and explore schemas.
Overview
A local MCP server that connects an AI assistant to Trino data warehouses to run SQL, inspect query plans, and browse schemas.
- What you can do
- Run read-only SQL queries and any SQL including writes through separate query and execute tools, with row limits and timeouts. Inspect logical, distributed, I/O and validation execution plans. Browse catalogs, schemas and tables, and describe table columns with optional sample data and semantic context. List configured Trino server connections and target a specific one per call. Optionally enrich results with business metadata, ownership, quality and sensitivity from DataHub or static files.
- When to use it
- Useful when an assistant needs to explore or query a Trino-based warehouse, compare production, staging and development clusters, or understand table structure and business meaning before writing SQL.
- Requirements
- Runs as a local process on the user's machine (Homebrew, release binary, Docker, Go install, or a Claude Desktop bundle). Needs network access to a Trino server and a username via TRINO_USER; host, port, catalog, schema, SSL and timeout are set by TRINO_HOST, TRINO_PORT, TRINO_CATALOG, TRINO_SCHEMA, TRINO_SSL and TRINO_TIMEOUT. Additional clusters are configured through TRINO_ADDITIONAL_SERVERS.
Installation
In SourceWeft
- Open Mcp Trino in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
[GitHub license] [Go Reference] [Go Report Card] [codecov] [OpenSSF Scorecard] [SLSA 3]
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 Data Platform Ecosystem
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.
Core Capabilities
Composable Architecture
- Import as a Go library to build custom MCP servers
- Add authentication, tenant isolation, audit logging without forking
- Middleware and interceptor patterns for enterprise requirements
Semantic Context
- Surface business descriptions, ownership, and data quality from metadata catalogs
- Mark sensitive columns for AI assistants
- Connect to DataHub, static files, or build custom metadata providers
Multi-Cluster Connectivity
- Query multiple Trino servers from a single MCP installation
- Unified interface across production, staging, and development environments
Secure Defaults
- Read-only mode prevents accidental data modification
- Query limits and timeouts prevent runaway operations
- SLSA Level 3 provenance for supply chain security
Features
- Execute SQL Queries: Run queries with configurable row limits and timeouts
- Analyze Execution Plans: Inspect logical, distributed, and I/O query plans
- Discover Schema: Browse catalogs, schemas, and tables across clusters
- Describe Tables: View column definitions with optional data samples
- Enrich with Context: Surface business metadata, ownership, and data quality
- Compose Custom Servers: Import as a Go library with middleware and interceptors
Installation
Homebrew (macOS)
Claude Desktop
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:
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 CLI
Claude Code is the terminal-based coding assistant. Add mcp-trino as an MCP server:
Or download and install manually:
Docker
Go Install
Download Binary
Download pre-built binaries from the releases page. All releases are signed with Cosign and include SLSA provenance.
As a Library
Quick Start
Multiple Trino Servers
You can configure multiple Trino instances with different names:
Standalone Server
Tools
Semantic Layer
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:
Providers
See the Semantic Layer Documentation for configuration, caching, and custom provider development.
Configuration
Multi-Server Configuration
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:
Use trino_list_connections to discover available connections.
File-Based Configuration
For production deployments using Kubernetes ConfigMaps, Vault, or other secret management systems, mcp-trino supports file-based configuration:
Load configuration in your custom server:
Using as a Library
mcp-trino is designed to be composable. You can import its tools into your own MCP server:
Extensions
The standalone server includes optional extensions that can be enabled via environment variables:
Using Extensions in Custom Servers
Custom Middleware and Interceptors
You can create custom middleware, interceptors, and transformers:
Security Considerations
- Credentials: Store passwords in environment variables or secret managers
- Query Limits: Default 1000 rows, max 10000 to prevent data exfiltration
- Timeouts: Default 120s timeout prevents runaway queries
- Read-Only: ReadOnly interceptor enabled by default blocks modification statements
- Access Control: Configure Trino roles and catalog access for defense in depth
Development
Contributing
We welcome contributions for bug fixes, tests, and documentation. See CONTRIBUTING.md for guidelines.
License
Open source by Craig Johnston, sponsored by Deasil Works, Inc.
Source: README.md at commit e4d1680
Tools
0Version history
1- v0.2.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts