MCP Catalogs
首页mcp-trino screenshot

mcp-trino

by tuannvm·103·综合分 48

高性能的 Go 语言实现,为 Trino SQL 查询引擎提供 MCP 服务器,支持 CLI 和 MCP 双模式。

databasedeveloper-toolsai-llm
45
Forks
17
活跃 Issue
本月
最近提交
2 天前
收录于

概述

mcp-trino 是一个为 Trino(前身为 PrestoSQL)提供的高质量 MCP 服务器,使用 Go 语言实现。它为 AI 助手提供了与 Trino 分布式 SQL 查询引擎交互的解决方案,支持 MCP 服务器模式和类似 psql 的交互式 CLI 模式。服务器支持 STDIO 和 HTTP 传输协议,并提供了可选的 OAuth 2.1 身份验证功能。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:AI 助手通过 Trino 对大数据集进行 SQL 分析
:开发团队使用 MCP 兼容工具(Claude、Cursor、Windsurf)查询数据
:组织通过 AI 工具在 Trino 中实现查询归属和用户模拟
:mcp-trino 支持哪些身份验证方法?
:mcp-trino 可以用作 CLI 工具吗?

什么时候选它

当您需要Go语言的高性能Trino集成、同时需要MCP和CLI模式,或者在企业环境中需要强大的OAuth认证时,选择此MCP服务器。

什么时候不要选它

如果您已投入其他语言生态系统,或需要直接连接非Trino数据源,则不应选择此服务器。

此 server 暴露的工具

从 README 抽取出 6 个工具
  • execute_query

    Execute a SQL query against a Trino cluster

  • list_catalogs

    List all available catalogs in the Trino cluster

  • list_schemas

    List all schemas within a specific catalog

  • list_tables

    List all tables within a specific catalog and schema

  • get_table_schema

    Get the schema and column information for a specific table

  • explain_query

    Get the execution plan for a SQL query

可对比工具

trino-clipresto-clisql-mcp

安装

安装

# Homebrew
brew install tuannvm/mcp/mcp-trino

# 或者单行命令(macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/tuannvm/mcp-trino/main/install.sh | bash

Claude Desktop 配置

添加到 Claude Desktop config.json:

"mcpServers": {
  "trino": {
    "command": "mcp-trino",
    "args": []
  }
}

FAQ

mcp-trino 支持哪些身份验证方法?
mcp-trino 支持 OAuth 2.1,提供多种提供商:Okta、Google、Azure AD 和 HMAC。它提供两种模式:原生模式(零服务器端秘密)和代理模式(集中式凭据管理)。
mcp-trino 可以用作 CLI 工具吗?
是的,mcp-trino 具有双重功能:既可作为 MCP 服务器与 AI 集成,也可作为类似 psql 的交互式 CLI 直接访问 Trino。

mcp-trino 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。