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.
claude mcp add --transport stdio tuannvm-mcp-trino uvx mcp-trino