mcp-trino
by tuannvm·★ 103·Score 48
A high-performance Go implementation of MCP server for Trino SQL query engine with dual CLI and MCP modes.
Overview
The mcp-trino project is a well-implemented MCP server for Trino (formerly PrestoSQL), written in Go. It provides a robust solution for AI assistants to interact with Trino's distributed SQL query engine through standardized MCP tools. The server features dual operation modes: as an MCP server for AI integration and as an interactive CLI similar to psql. It supports both STDIO and HTTP transports, with optional OAuth 2.1 authentication for enhanced security.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server when you need Go performance for Trino integration, require both MCP and CLI modes, or need robust OAuth authentication for enterprise environments.
When NOT to choose this
Don't choose this if you're already invested in a different language ecosystem or need to connect to non-Trino data sources directly.
Tools this server exposes
6 tools extracted from the READMEexecute_queryExecute a SQL query against a Trino cluster
list_catalogsList all available catalogs in the Trino cluster
list_schemasList all schemas within a specific catalog
list_tablesList all tables within a specific catalog and schema
get_table_schemaGet the schema and column information for a specific table
explain_queryGet the execution plan for a SQL query
Comparable tools
Installation
Installation
# Homebrew
brew install tuannvm/mcp/mcp-trino
# Or one-liner (macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/tuannvm/mcp-trino/main/install.sh | bashClaude Desktop Configuration
Add to Claude Desktop config.json:
"mcpServers": {
"trino": {
"command": "mcp-trino",
"args": []
}
}FAQ
- What authentication methods does mcp-trino support?
- mcp-trino supports OAuth 2.1 with multiple providers: Okta, Google, Azure AD, and HMAC. It offers both native mode (zero server-side secrets) and proxy mode for centralized credential management.
- Can mcp-trino be used as a CLI tool?
- Yes, mcp-trino has dual functionality: it operates as both an MCP server for AI integration and an interactive CLI similar to psql for direct Trino access.
Compare mcp-trino with
Last updated · Auto-generated from public README + GitHub signals.