跳到正文
FunCoding

Trino

官方 MCP Registry 已收录

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

Star
25
分类
数据库
版本
v0.8.2
许可证
Apache-2.0
最近提交
2026年11月26日

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

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:

/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"):

{
  "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

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

See Development for linting, docs and releases.

License

Apache 2.0. See LICENSE.

同类 MCP Server

dbx

Query databases from AI agents using connections configured in DBX.

T8t8y2/dbx32k近 7 天新增 726 个 star

Windmill

Run Windmill scripts and flows and manage jobs, schedules, resources and variables.

WIwindmill-labs/windmill19k近 7 天新增 82 个 star

MCP Toolbox for Databases

MCP Toolbox for Databases enables your agent to connect to your database.

GOgoogleapis/mcp-toolbox17k近 7 天新增 77 个 star

nightingale

Open-source, self-hosted alerting for metrics, logs, and databases. Includes a built-in AI agent and MCP server.

CCccfos/nightingale14k近 7 天新增 10 个 star

mcp

Real-time Kubernetes network traffic visibility and API analysis for HTTP, gRPC, Redis, Kafka, DNS.

KUkubeshark/kubeshark12k近 7 天新增 5 个 star

Nhost

Let your users work with their own data through an AI assistant, limited to what they can see.

NHnhost/nhost9.4k近 7 天新增 1 个 star