A high-performance Model Context Protocol (MCP) server for Trino implemented in Go.
Documentation
Trino MCP Server in Go
Overview
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.
Features
✅ MCP server implementation in Go
✅ Trino SQL query execution through MCP tools
✅ Catalog, schema, and table discovery
✅ Docker container support
✅ Supports both STDIO and HTTP transports
✅ OAuth 2.0 authentication with OIDC provider support (Okta, Google, Azure AD)
✅ StreamableHTTP support with JWT authentication (upgraded from SSE)
✅ Backward compatibility with SSE endpoints
✅ Compatible with Cursor, Claude Desktop, Windsurf, ChatWise, and any MCP-compatible clients.
Installation# Quick Install (One-liner)
For macOS and Linux, install with a single command:
curl -fsSL https://raw.githubusercontent.com/tuannvm/mcp-trino/main/install.sh -o install.sh && chmod +x install.sh && ./install.sh
```\n\n### Homebrew (macOS and Linux)
The easiest way to install mcp-trino is using Homebrew:
```bash\n\n# Install mcp-trino
brew install tuannvm/mcp/mcp-trino
To update to the latest version:
brew update && brew upgrade mcp-trino
```\n\n### Alternative Installation Methods## Manual Download
1. Download the appropriate binary for your platform from the [GitHub Releases](https://github.com/tuannvm/mcp-trino/releases) page.
2. Place the binary in a directory included in your PATH (e.g., `/usr/local/bin` on Linux/macOS)
3. Make it executable (`chmod +x mcp-trino` on Linux/macOS)\n\n#### From Source
```bash
git clone https://github.com/tuannvm/mcp-trino.git
cd mcp-trino
make build # Binary will be in ./bin/
```\n\n## License
This project is licensed under the MIT License - see the LICENSE file for details.