
Trino
io.github.alaturqua由 GitHub 帳號 alaturqua 發布v0.8.1更新於 Nov 21, 2026
Query Trino and inspect or maintain Iceberg tables: catalogs, schemas, SQL, snapshots.
概覽
讓 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。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Trino,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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.
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
or install the plugin, which asks for the connection settings:
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"):
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=trueblocks writes and hides maintenance tools
See the full tool list.
Configuration
Running a shared server over HTTP or in Docker: see Remote and Docker deployment.
Contributing
See Development for linting, docs and releases.
License
Apache 2.0. See LICENSE.
來源:README.md,提交 1c4f425
工具
0版本歷史
1- v0.8.1最新Nov 21, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分