MCP ConfigsMay 12, 2026·2 min read

Trino MCP — OAuth 2.1 + Query CLI for Data Warehouses

Trino MCP is a Go MCP server and CLI for Trino with OAuth 2.1 support, letting agents query catalogs and schemas with traceable user identity.

Agent ready

This asset can be read and installed directly by agents

TokRepo exposes a universal CLI command, install contract, metadata JSON, adapter-aware plan, and raw content links so agents can judge fit, risk, and next actions.

Native · 94/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Mcp
Install
Single
Trust
Trust: Established
Entrypoint
mcp-trino
Universal CLI install command
npx tokrepo install 8a01b5ca-fe0b-5120-9909-4a9505e34323
Intro

Trino MCP is a Go MCP server and CLI for Trino with OAuth 2.1 support, letting agents query catalogs and schemas with traceable user identity.

  • Best for: data platform teams that want MCP access to Trino plus an operator-friendly CLI for debugging and smoke tests
  • Works with: Trino, Go-based binary via Homebrew or install script, OAuth 2.1 for production deployments
  • Setup time: 10-30 minutes

Practical Notes

  • Quant: the CLI supports catalogs/schemas/tables/describe/explain commands—use it as a deterministic health check for agent tooling.
  • Quant: for production, adopt OAuth so every query is attributable to a user identity instead of a shared service token.

Rollout pattern

  • Use CLI mode to validate baseline connectivity, then connect an MCP client for natural-language workflows.
  • Create a least-privilege Trino user for agent workflows; keep admin capabilities out-of-band.
  • Enable OAuth when you move beyond a single-user laptop setup to shared deployments.

Watchouts

A powerful query tool can become an exfiltration path. Apply catalog/schema allowlists, result-size limits, and audit logging before broad rollout.

FAQ

Q: Is the CLI required? A: No, but it is a great verification tool. Use the CLI for deterministic smoke tests before LLM-driven queries.

Q: What does OAuth buy me? A: User-level attribution and safer shared deployments, instead of one shared token for everyone.

Q: How do I start safely? A: Use a staging Trino environment, restrict catalogs, and keep query limits small until you understand agent behavior.

🙏

Source & Thanks

Source: https://github.com/tuannvm/mcp-trino > License: MIT > GitHub stars: 103 · forks: 45

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets