Go-based MCP server and CLI for Trino enabling AI assistants to query distributed SQL engines via HTTP or STDIO with optional OAuth.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Trino.
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.
This project implements a Model Context Protocol (MCP) server for Trino in Go. It enables AI assistants to access Trino's distributed SQL query engine through standardized MCP tools.
Trino (formerly PrestoSQL) is a powerful distributed SQL query engine designed for fast analytics on large datasets.
Key Components:
X-Trino-Client-Tags/Info headersX-Trino-User headerInstall:
Run (Local Development):
For production deployment with OAuth, see Deployment Guide and OAuth Architecture.
mcp-trino can be used as an interactive CLI similar to psql or the Trino CLI:
Every command has structured, LLM-friendly help output:
Help output follows Unix man-page conventions with sections: NAME, SYNOPSIS, DESCRIPTION, COMMANDS, FLAGS, EXAMPLES, ENVIRONMENT, and CONFIGURATION.
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Runtime error (connection failed, query error, etc.) |
| 2 | Usage error (unknown command, invalid flags, missing arguments) |
mcp-trino supports named connection profiles for easy switching between Trino environments.
Configuration File β supports both YAML (~/.config/trino/config.yaml) and JSON (~/.config/trino/config.json):
Or equivalently in JSON:
When both files exist, config.json takes precedence. New configs default to JSON.
Profile Management Commands:
Configuration Precedence (highest to lowest):
--host, --port, etc.)--profile flagTRINO_PROFILE environment variablecurrent field in config filedefault profile fallbackTRINO_HOST, etc.)Environment Variables (lowest priority - overridden by profiles and flags):
Secret Management (recommended):
Secrets are loaded purely from environment variables. Use a secrets CLI to inject them via Unix piping at launch time β the app never touches your vault:
See docs/secrets.md for 1Password, Vault, and Kubernetes patterns, and for security nuances (shell-history, process-list, and env-var leakage).
REPL Meta-Commands (in interactive mode):
\help - Show help\quit, \exit, \q - Exit REPL\history - Show command history\catalogs - List all catalogs\schemas [catalog] - List schemas\tables [catalog schema] - List tables\describe <table> - Describe table\format <table|json|csv> - Change output formatSupported Clients: Claude Desktop, Claude Code, Cursor, Windsurf, ChatWise
Available Tools: execute_query, list_catalogs, list_schemas, list_tables, get_table_schema, explain_query
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/tuannvm-mcp-trino)<a href="https://allmcps.com/mcp/tuannvm-mcp-trino"><img src="https://allmcps.com/api/badge/tuannvm-mcp-trino?style=directory" alt="MCP Trino on AllMCPs" /></a>