tuannvm avatar

Mcp Trino

tuannvm/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 tools

Public 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_PORT

Trino server port

TRINO_USER*

Trino username

TRINO_PASSWORDsecret

Trino 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.


View the full README on GitHub

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

Related Databases MCP servers

View all
1bintocher avatarMCP Supersetbintocher/mcp-supersetApache Superset MCP server — 135+ tools for dashboards, charts, datasets, SQL Lab, and security45stars
2spranab avatarSaga Mcpspranab/saga-mcpJira-like project tracker for AI agents with SQLite, full task hierarchy, and dashboard42stars
3nonatofabio avatarLocal FAISS MCP Servernonatofabio/local_faiss_mcpLocal FAISS vector database for RAG with document ingestion, semantic search, and MCP prompts.30stars
4kychee-com avatarRun402kychee-com/run402x402 pay-per-call infra for agents: $0.03 image generation, Postgres, auth, storage, functions.24stars
5bumblebiber avatarhmem — Humanlike Memory for AI Agentsbumblebiber/hmemPersistent 5-level hierarchical memory for AI agents. SQLite-backed, lazy-loaded.20stars
6sgx-labs avatarSAME - Stateless Agent Memory Enginesgx-labs/statelessagentPersistent memory for AI coding agents. Local-first SQLite + vector search. 17 MCP tools.19stars