
Mcp Trino
This is a Go implementation that connects Claude to Trino's distributed SQL engine. It exposes six MCP tools: execute_query, list_catalogs, list_schemas, list_tables, get_table_schema, and explain_query. You can run it as a standard MCP server or use it as an interactive CLI like psql. The HTTP transport supports OAuth 2.1 through four providers (HMAC, Okta, Google, Azure AD) with automatic query attribution via Trino headers. Queries are tagged with user identity through X-Trino-Client-Tags, and there's optional impersonation via X-Trino-User. It supports named profiles in YAML or JSON for switching between Trino environments, and outputs in table, JSON, or CSV formats.
- GitHub stars
- 109
- tools
- 6
- auth
- Secret needed
- transport
- STDIO
- env vars
- 4
- last updated
- Sep 9, 2025
Tools
6 toolsPublic tool metadata for what this MCP can expose to an agent.
execute_query
No parameter schema in public metadata yet.
list_catalogs
No parameter schema in public metadata yet.
list_schemas
No parameter schema in public metadata yet.
list_tables
No parameter schema in public metadata yet.
get_table_schema
No parameter schema in public metadata yet.
explain_query
No parameter schema in public metadata yet.
Sponsors
Configuration
TRINO_HOST*Trino server hostname
TRINO_PORTTrino server port
TRINO_USER*Trino username
TRINO_PASSWORDsecretTrino password
Readme
Trino MCP Server in Go
A high-performance Model Context Protocol (MCP) server for Trino implemented in Go. This project enables AI assistants to seamlessly interact with Trino's distributed SQL query engine through standardized MCP tools.
Details
- Repository
- github.com/tuannvm/mcp-trino
- Category
- Databases
- Package
https://github.com/tuannvm/mcp-trino/releases/download/v2.2.1/mcp-trino_2.2.1_darwin_arm64.tar.gz- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active