Basic information
About Trino (SQL Query Engine) MCP Server
Seamlessly connect AI systems to Trino (SQL Query Engine) for powerful SQL execution, data exploration, and efficient database management.
Trino (SQL Query Engine) is a MCP server in the Databases category listed in the AddMCP.net directory, published by alaturqua. Supported transport: stdio. Runtime: Python. License: Apache-2.0. The repository has 25 GitHub stars. Source code is hosted on github.com. Related topics: analytics-data, community, databases.
Setup
{
"mcpServers": {
"trino": {
"command": "uvx",
"args": [
"trino-mcp"
],
"env": {
"TRINO_HOST": "your-trino-host",
"TRINO_PORT": "8080",
"TRINO_USER": "trino"
}
}
}
}
{
"mcpServers": {
"trino": {
"command": "uvx",
"args": [
"trino-mcp"
],
"env": {
"TRINO_HOST": "your-trino-host",
"TRINO_PORT": "8080",
"TRINO_USER": "trino"
}
}
}
}
{
"servers": {
"trino": {
"command": "uvx",
"args": [
"trino-mcp"
],
"env": {
"TRINO_HOST": "your-trino-host",
"TRINO_PORT": "8080",
"TRINO_USER": "trino"
}
}
}
}
Trino (SQL Query Engine) MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"trino": {
"command": "uvx",
"args": [
"trino-mcp"
],
"env": {
"TRINO_HOST": "your-trino-host",
"TRINO_PORT": "8080",
"TRINO_USER": "trino"
}
}
}
}
Trino (SQL Query Engine) MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Trino (SQL Query Engine)?
MCP Trino Server is a Model Context Protocol (MCP) server that provides seamless integration with Trino and Iceberg, enabling advanced data exploration, querying, and table maintenance through a standard interface. It is designed for developers and data engineers building AI‑powered tools that interact with Trino databases.
How to use Trino (SQL Query Engine)?
Install via uv, pip, or Docker, then configure using environment variables (TRINO_HOST, TRINO_PORT, TRINO_USER, etc.). Run the server with python src/server.py (or the Docker equivalent) using one of three transport modes: stdio (default), streamable‑http, or sse. Connect an MCP client (e.g., VS Code or Claude Desktop) by providing the server’s command and configuration.
Key features of Trino (SQL Query Engine)
- Execute SQL queries with formatted results
- Browse catalogs, schemas, and tables hierarchically
- Perform Iceberg table maintenance (optimize, expire snapshots)
- Inspect Iceberg metadata (snapshots, manifests, partitions, files)
- Supports stdio, streamable‑HTTP, and SSE transports
- Configurable via environment variables or
.envfile
Use cases of Trino (SQL Query Engine)
- Interactive data exploration and analysis in Trino
- Automated Iceberg table maintenance and optimization
- Building AI‑powered tools that interact with Trino databases
- Executing and managing SQL queries with proper result formatting
Frequently asked questions
1 What are the prerequisites to run MCP Trino Server?
You need Python 3.12 or higher and a running Trino server (Docker Compose is available for local development). Docker is optional but recommended for containerized deployment.
2 What transport modes are supported?
The server supports stdio (default, for local MCP clients like VS Code and Claude Desktop), streamable‑http (for remote or web access), and sse (Server‑Sent Events, legacy HTTP transport).
3 How do I configure the server?
Configure via environment variables: TRINO_HOST, TRINO_PORT, TRINO_USER, TRINO_CATALOG, TRINO_SCHEMA, TRINO_HTTP_SCHEME, and optionally TRINO_PASSWORD. You can also use a .env file.
4 Does the server support authentication to Trino?
Yes, you can set the TRINO_PASSWORD environment variable to provide a password for authentication to the Trino server.
5 Can I deploy the server in a container?
Yes. Build the Docker image with docker build -t mcp-trino-python . and run it with either stdio or streamable‑http transport. Docker Compose profiles are also provided for quick start.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In