About tuannvm/mcp-trino
tuannvm/mcp-trino is an MCP server published by tuannvm in the Data category: a high-performance Model Context Protocol (MCP) server for Trino implemented in Go. Conduid read 6 tools from its source: execute_query, explain_query, get_table_schema, list_catalogs, list_schemas and list_tables. No package is published for it, so it installs from a source checkout.
The repository has 125 stars and 61 forks, is licensed MIT, and its last commit was on 1 Jul 2026. The latest release is v4.3.1 (1 Apr 2026): Changelog 0826355c686b50820e652333279422a318fc1562 fix: address CodeRabbit review comments post-merge 128a0bf8596984e1a6e20074a7957696ddf8e28c fix: move sanitization of… It follows v4.3.0 (26 Mar 2026), and the 5 most recent releases go back to v4.2.0 (13 Dec 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include trino.
Install
git clone https://github.com/tuannvm/mcp-trinoTools (6)
execute_queryExecute SQL queries on Trino's fast distributed query engine for big data analytics. By default, only read-only queries (SELECT, SHOW, DESCRIBE, EXPLAIN) are allowed for security. When TRINO_ALLOW_WRITE_QUERIES=true is set, supports all SQL statements including INSERT, UPDATE, DELETE, CREATE, DROP, and other DML/DDL operations. Perfect for complex analytics, aggregations, joins, and cross-system data exploration on large datasets.| Parameter | Type | Description |
|---|---|---|
| query * | string | SQL query to execute. By default read-only queries only; DML/DDL requires TRINO_ALLOW_WRITE_QUERIES=true |
explain_queryAnalyze Trino query execution plans without running expensive queries. Shows distributed execution stages, data movement between nodes, and resource estimates. Essential for query optimization and performance tuning.| Parameter | Type | Description |
|---|---|---|
| format | string | Plan type: LOGICAL, DISTRIBUTED, VALIDATE, or IO (optional) |
| query * | string | SQL query to analyze (SELECT, JOIN, aggregations, etc.) |
get_table_schemaInspect table structure and column metadata from Trino's distributed data sources. Shows column names, data types, nullability, and constraints. Critical for understanding data before writing analytical queries.| Parameter | Type | Description |
|---|---|---|
| catalog | string | Trino catalog containing the table (optional) |
| schema | string | Schema containing the table (optional) |
| table * | string | Table name to inspect |
list_catalogsDiscover available Trino catalogs - each catalog represents a connector to different data systems (PostgreSQL, MySQL, S3, HDFS, Kafka, etc.). Catalogs are your entry point to querying data across heterogeneous systems in a single SQL query.list_schemasBrowse schemas (databases/namespaces) within a Trino catalog. Each schema contains related tables and views. Use this to navigate the data hierarchy before querying specific datasets.| Parameter | Type | Description |
|---|---|---|
| catalog | string | Trino catalog name (optional; defaults to server configuration if omitted) |
list_tablesDiscover tables and views available for querying in Trino schemas. Essential for finding datasets to analyze. Can scope to specific catalog/schema or browse all available data across the distributed system.| Parameter | Type | Description |
|---|---|---|
| catalog | string | Trino catalog name (optional) |
| schema | string | Schema name within catalog (optional) |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.6K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by go.sum.
- ✓No dynamic code executionScanned 11 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPcmd/main.go:147, internal/mcp/server.go:78
- Starts other programs
- 4 calls.claude-plugin/install-binary.mjs:122, .claude-plugin/install-binary.mjs:133, .claude-plugin/install-binary.mjs:159
- Outbound network calls
- 4 callsinternal/trino/client.go:135, .claude-plugin/install-binary.mjs:79, .claude-plugin/install-binary.mjs:91
- Writes or deletes files
- 2 callsinternal/cli/config.go:180, internal/cli/config.go:200
- Lockfile
- go.sum
Pattern matches on the source text of 11 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.6K words, fetched a month ago. The original in the repository is authoritative.
Read full README