原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

MCP Trino

作者:txn2版本 0.2.1i★ –i在你的电脑上运行
注册名称io.github.txn2/mcp-trino

安装

概览

作者提供的说明(英文原文)

MCP server for Trino data warehouses. Query, analyze plans, and explore schemas.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

下载作者的 .mcpb 文件

链接指向作者自己的文件;我们不托管也不重新打包它。打开文件后,Claude Desktop 会进行安装。

在终端中运行这条命令

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 txn2 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 18379 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 18379 个服务器的 1% 更新
  • 基础检查结果等于或优于此分类中其他 18379 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

MCP Trino 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.2.1)于10个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 MCPB。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, NexusWindows

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

NexusWindows

作者:pironjulien

Windows computer use in the background: desktop apps driven without your mouse or keyboard.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

[mcp-trino.txn2.com](https://mcp-trino.txn2.com) | [Installation](https://mcp-trino.txn2.com/server/installation/) | [Library Docs](https://mcp-trino.txn2.com/library/)

A Model Context Protocol (MCP) server for Trino, enabling AI assistants to query and explore data warehouses with optional semantic context from metadata catalogs.

AI assistants excel at querying data but lack organizational context: which tables are trustworthy, what metrics mean, and which columns contain sensitive data. mcp-trino bridges this gap by connecting Trino to AI assistants through the MCP protocol, with an optional semantic layer that surfaces business metadata alongside query results.

MCP Data Platform Ecosystem

mcp-trino is part of a broader suite of open-source MCP servers designed to work together as a composable data platform. Each component can run standalone or be combined to give AI assistants unified access to storage, query engines, and metadata catalogs.

Core Capabilities

Composable Architecture

  • Import as a Go library to build custom MCP servers
  • Add authentication, tenant isolation, audit logging without forking
  • Middleware and interceptor patterns for enterprise requirements

Semantic Context

  • Surface business descriptions, ownership, and data quality from metadata catalogs
  • Mark sensitive columns for AI assistants
  • Connect to DataHub, static files, or build custom metadata providers

Multi-Cluster Connectivity

  • Query multiple Trino servers from a single MCP installation
  • Unified interface across production, staging, and development environments

Secure Defaults

  • Read-only mode prevents accidental data modification
  • Query limits and timeouts prevent runaway operations
  • SLSA Level 3 provenance for supply chain security

Features

  • Execute SQL Queries: Run queries with configurable row limits and timeouts
  • Analyze Execution Plans: Inspect logical, distributed, and I/O query plans
  • Discover Schema: Browse catalogs, schemas, and tables across clusters
  • Describe Tables: View column definitions with optional data samples
  • Enrich with Context: Surface business metadata, ownership, and data quality
  • Compose Custom Servers: Import as a Go library with middleware and interceptors

Installation

Homebrew (macOS)
brew install txn2/tap/mcp-trino
Claude Desktop

Claude Desktop is the GUI application for chatting with Claude. Install the mcp-trino extension to enable Trino queries in your conversations.

Option 1: One-Click Install (Recommended)

Download the .mcpb bundle for your Mac from the releases page and double-click to install:

Mac TypeChipDownload
MacBook Air/Pro (2020+), Mac Mini (2020+), iMac (2021+), Mac StudioApple M1, M2, M3, M4 (arm64)mcp-trino_*_darwin_arm64.mcpb
MacBook Air/Pro (pre-2020), Mac Mini (pre-2020), iMac (pre-2021)Intel (amd64)mcp-trino_*_darwin_amd64.mcpb

Tip: Not sure which chip you have? Click → "About This Mac". Look for "Chip" (Apple Silicon) or "Processor" (Intel).

Option 2: Manual Configuration

Add to your claude_desktop_config.json (find via Claude Desktop → Settings → Developer):

{

"mcpServers": { "trino": { "command": "/opt/homebrew/bin/mcp-trino", "env": { "TRINO_HOST": "trino.example.com", "TRINO_USER": "your_user", "TRINO_PASSWORD": "your_password", "TRINO_CATALOG": "hive", "TRINO_SCHEMA": "default" } } } }

Claude Code CLI

Claude Code is the terminal-based coding assistant. Add mcp-trino as an MCP server:

# Install via Homebrew first (see above), then:

claude mcp add trino \ -e TRINO_HOST=trino.example.com \ -e TRINO_USER=your_user \ -e TRINO_PASSWORD=your_password \ -e TRINO_CATALOG=hive \ -- mcp-trino

Or download and install manually:

# Download the latest release for your architecture

curl -L https://github.com/txn2/mcp-trino/releases/latest/download/mcp-trino_$(uname -s)_$(uname -m).tar.gz | tar xz

Add to Claude Code

claude mcp add trino \ -e TRINO_HOST=trino.example.com \ -e TRINO_USER=your_user \ -e TRINO_PASSWORD=your_password \ -e TRINO_CATALOG=hive \ -- ./mcp-trino

Docker
docker run --rm -i \

-e TRINO_HOST=trino.example.com \ -e TRINO_USER=your_user \ -e TRINO_PASSWORD=your_password \ ghcr.io/txn2/mcp-trino:latest

Go Install
go install github.com/txn2/mcp-trino/cmd/mcp-trino@latest
Download Binary

Download pre-built binaries from the releases page. All releases are signed with Cosign and include SLSA provenance.

As a Library
go get github.com/txn2/mcp-trino

Quick Start

Multiple Trino Servers

You can configure multiple Trino instances with different names:

# Production

claude mcp add trino-prod \ -e TRINO_HOST=trino.prod.example.com \ -e TRINO_USER=prod_user \ -- mcp-trino

Staging

claude mcp add trino-staging \ -e TRINO_HOST=trino.staging.example.com \ -e TRINO_USER=staging_user \ -- mcp-trino

Standalone Server
export TRINO_HOST=trino.example.com

export TRINO_USER=your_user export TRINO_PASSWORD=your_password mcp-trino

Tools

ToolDescription
trino_queryExecute read-only SQL queries (SELECT, SHOW, DESCRIBE) with limit/timeout control
trino_executeExecute any SQL including write operations (INSERT, UPDATE, DELETE, CREATE, DROP)
trino_explainGet execution plans (logical/distributed/io/validate)
trino_browseBrowse catalog hierarchy: list catalogs, schemas, or tables
trino_describe_tableGet columns, sample data, and semantic context (if configured)
trino_list_connectionsList all configured server connections

Semantic Layer

AI agents operate more reliably when they understand organizational context: not just table structures, but which datasets are production-ready, what business terms mean, and which columns require careful handling.

mcp-trino's semantic layer integrates with metadata catalogs to surface this context alongside query results:

MetadataDescription
DescriptionsBusiness-friendly explanations of tables and columns
OwnershipData stewards and technical owners
Tags & DomainsClassification labels and business domains
Glossary TermsLinks to formal business definitions
Data QualityFreshness scores and quality metrics
SensitivityPII and sensitive data markers at column level
LineageUpstream and downstream data dependencies
Providers
ProviderDescription
DataHubConnect to DataHub's GraphQL API for enterprise metadata
Static FilesLoad metadata from YAML or JSON files with hot-reload
CustomImplement the semantic.Provider interface for any catalog

See the Semantic Layer Documentation for configuration, caching, and custom provider development.

Configuration

Environment VariableDescriptionDefault
TRINO_HOSTTrino server hostnamelocalhost
TRINO_PORTTrino server port443 (SSL) / 8080
TRINO_USERAuthentication username(required)
TRINO_PASSWORDAuthentication password(optional)
TRINO_CATALOGDefault catalogmemory
TRINO_SCHEMADefault schemadefault
TRINO_SSLEnable HTTPStrue for remote hosts
TRINO_SSL_VERIFYVerify SSL certificatestrue
TRINO_TIMEOUTQuery timeout (seconds)120
TRINO_SOURCEClient identifiermcp-trino
TRINO_ADDITIONAL_SERVERSAdditional servers (JSON)(optional)
Multi-Server Configuration

Connect to multiple Trino servers from a single installation. Configure your primary server with the standard environment variables, then add additional servers via JSON:

export TRINO_HOST=prod.trino.example.com

export TRINO_USER=admin export TRINO_PASSWORD=secret export TRINO_ADDITIONAL_SERVERS='{ "staging": {"host": "staging.trino.example.com"}, "dev": {"host": "localhost", "port": 8080, "ssl": false} }'

Additional servers inherit credentials and settings from the primary server unless overridden:

{

"staging": { "host": "staging.trino.example.com", "user": "staging_user", "catalog": "iceberg" }, "dev": { "host": "localhost", "port": 8080, "ssl": false, "user": "admin" } }

Use the connection parameter in any tool to target a specific server:

"Query the staging server: SELECT * FROM users LIMIT 10"

→ trino_query(sql="...", connection="staging")

Use trino_list_connections to discover available connections.

File-Based Configuration

For production deployments using Kubernetes ConfigMaps, Vault, or other secret management systems, mcp-trino supports file-based configuration:

# config.yaml

trino: host: trino.example.com port: 443 user: ${TRINO_USER} # Supports env var expansion password: ${TRINO_PASSWORD} # Secrets can come from env catalog: hive schema: default ssl: true timeout: 120s

toolkit: default_limit: 1000 max_limit: 10000 default_timeout: 120s max_timeout: 300s

extensions: logging: true readonly: true errors: true

Load configuration in your custom server:

import "github.com/txn2/mcp-trino/pkg/extensions"

// Load from file with env var overrides cfg, err := extensions.LoadConfig("/etc/mcp-trino/config.yaml")

// Convert to individual configs clientCfg := cfg.ClientConfig() toolsCfg := cfg.ToolsConfig() extCfg := cfg.ExtConfig()

Using as a Library

mcp-trino is designed to be composable. You can import its tools into your own MCP server:

package main

import ( "context" "log"

"github.com/modelcontextprotocol/go-sdk/mcp" "github.com/txn2/mcp-trino/pkg/client" "github.com/txn2/mcp-trino/pkg/tools" )

func main() { // Create your MCP server server := mcp.NewServer(&mcp.Implementation{ Name: "my-data-server", Version: "1.0.0", }, nil)

// Create Trino client trinoClient, err := client.New(client.Config{ Host: "trino.example.com", Port: 443, User: "service_user", SSL: true, Catalog: "hive", Schema: "analytics", }) if err != nil { log.Fatal(err) } defer trinoClient.Close()

// Add Trino tools to your server toolkit := tools.NewToolkit(trinoClient, tools.Config{ DefaultLimit: 1000, MaxLimit: 10000, })

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx