
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 分