Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

Trino

@alaturquaMCP server · External

Query Trino and inspect or maintain Iceberg tables: catalogs, schemas, SQL, snapshots.

Databasesv0.8.2Apache-2.0Python
Freeno charge per call

Runs on your machine from its package; the steps are below.

What it does

  1. Reads
  2. Writes
  3. High impact

At most: creates or changes data: records, files, settings.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

PyPImcp-trino-pythonv0.8.2

Run

uvx mcp-trino-python

MCP client config

{
  "mcpServers": {
    "trino": {
      "command": "uvx",
      "args": [
        "mcp-trino-python"
      ]
    }
  }
}
Dockerghcr.io/alaturqua/mcp-trino-python:0.8.2

Run

docker run -i --rm ghcr.io/alaturqua/mcp-trino-python:0.8.2

MCP client config

{
  "mcpServers": {
    "trino": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/alaturqua/mcp-trino-python:0.8.2"
      ]
    }
  }
}
README2 min read

MCP Trino Server

PyPI Docs Docker License MseeP.ai Security Assessment Badge

Let your AI assistant talk to Trino. Ask questions about your data in plain language; the assistant explores catalogs, writes and runs SQL, and inspects or maintains your Iceberg tables.

Works with Claude Code, Claude Desktop, GitHub Copilot in VS Code, Cursor, and any other MCP client.

📖 Documentation

Quick start

You need uv and a Trino server (or docker run -d -p 8080:8080 trinodb/trino:484 for one with sample data).

Claude Code

bash
claude mcp add trino -e TRINO_HOST=localhost -e TRINO_USER=trino -- uvx mcp-trino-python

or install the plugin, which asks for the connection settings:

text
/plugin marketplace add alaturqua/mcp-trino-python
/plugin install trino@mcp-trino-python

Claude Desktop

Download mcp-trino-python.mcpb from the latest release and double-click it.

VS Code / GitHub Copilot, Cursor and others

Add this to your client's MCP config (.vscode/mcp.json uses "servers" instead of "mcpServers"):

json
{
  "mcpServers": {
    "trino": {
      "command": "uvx",
      "args": ["mcp-trino-python"],
      "env": { "TRINO_HOST": "localhost", "TRINO_PORT": "8080", "TRINO_USER": "trino" }
    }
  }
}

Then ask: "What catalogs are in Trino?"

More clients, Docker and troubleshooting: Connect your AI client.

What it can do

  • Explore: catalogs, schemas, tables, columns, DDL and statistics
  • Query: run SQL and get the rows back as JSON
  • Iceberg: snapshots, manifests, partitions, files, history, branches and tags
  • Maintain Iceberg tables: compact files and manifests, expire old snapshots
  • Read-only mode: TRINO_READ_ONLY=true blocks writes and hides maintenance tools

See the full tool list.

Configuration

VariableWhat it doesDefault
TRINO_HOSTTrino server hostnamelocalhost
TRINO_PORTTrino server port8080
TRINO_USERUser to run queries astrino
TRINO_PASSWORDPassword; turns on basic auth (needs https)not set
TRINO_HTTP_SCHEMEhttp or httpshttp
TRINO_CATALOGDefault catalognot set
TRINO_SCHEMADefault schemanot set
TRINO_READ_ONLYtrue blocks writes and hides maintenance toolsfalse

Running a shared server over HTTP or in Docker: see Remote and Docker deployment.

Contributing

bash
uv sync
docker compose up -d --wait trino
uv run pytest

See Development for linting, docs and releases.

License

Apache 2.0. See LICENSE.

Similar modules

Browse Databases