MCP Catalogs
Homemcp-trino screenshot

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.

databasedeveloper-toolsai-llm
45
Forks
17
Open issues
this month
Last commit
2d ago
Indexed

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:

you:AI assistants running SQL analytics on large datasets through Trino
you:Development teams using MCP-compatible tools (Claude, Cursor, Windsurf) to query data
you:Organizations implementing query attribution and user impersonation in Trino via AI tools
you:What authentication methods does mcp-trino support?
you:Can mcp-trino be used as a CLI tool?

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 README
  • execute_query

    Execute a SQL query against a Trino cluster

  • list_catalogs

    List all available catalogs in the Trino cluster

  • list_schemas

    List all schemas within a specific catalog

  • list_tables

    List all tables within a specific catalog and schema

  • get_table_schema

    Get the schema and column information for a specific table

  • explain_query

    Get the execution plan for a SQL query

Comparable tools

trino-clipresto-clisql-mcp

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 | bash

Claude 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.