Trino

io.github.alaturqua由 GitHub 帳號 alaturqua 發布v0.8.1更新於 Nov 21, 2026

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

已驗證STDIO僅桌面資料庫資料與分析

概覽

AI 產生的概覽

讓 AI 助理連線 Trino SQL 引擎,探索 catalog、執行 SQL 查詢,並檢視或維護 Iceberg 資料表。

可以做什麼
  • 瀏覽 catalog、schema、資料表、欄位、DDL 與統計資訊
  • 執行 SQL 查詢並以 JSON 回傳結果列
  • 檢視 Iceberg 快照、manifest、分割區、檔案、歷史、分支與標籤
  • 維護 Iceberg 資料表:合併檔案與 manifest、清除過期快照
適用情境
當資料存放在 Trino 或 Iceberg,想用自然語言提問、檢視資料表結構或臨時執行 SQL 時適用。也適合執行例行的 Iceberg 維護工作。
執行需求
透過 uvx(需安裝 uv)或 Docker 映像在本機以 stdio 執行,並需要可連線的 Trino 伺服器。必須設定 TRINO_HOST 與 TRINO_USER;TRINO_PORT、TRINO_HTTP_SCHEME、TRINO_CATALOG、TRINO_SCHEMA、TRINO_READ_ONLY 與 TRINO_PASSWORD 為選用。以 TRINO_PASSWORD 啟用基本驗證時需搭配 https。
安裝前請注意
助理可以執行 SQL,且除非將 TRINO_READ_ONLY 設為 true,否則可寫入資料並執行 Iceberg 維護操作(例如合併與清除快照)。只做查詢時請開啟唯讀模式。TRINO_PASSWORD 屬敏感憑證,透過環境變數傳入,且應僅在 https 下使用。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Trino,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

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 syncdocker compose up -d --wait trinouv run pytest

See Development for linting, docs and releases.

License

Apache 2.0. See LICENSE.

來源:README.md,提交 1c4f425

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.8.1最新Nov 21, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分