Skip to main content
Glama
Dataring-engineering

Trino MCP Server

Trino MCP 服务器

该存储库提供了一个 MCP(模型控制协议)服务器,允许您使用 Python 通过 Trino 列出和查询表。

概述

  • MCP:MCP 是一种用于连接 AI 模型、数据和工具的协议。本示例 MCP 服务器提供以下功能:

    • 作为 MCP 资源的 Trino 表列表

    • 能够通过 MCP 读取表格内容

    • 针对 Trino 执行任意 SQL 查询的工具

  • Trino:一个用于大数据分析的快速分布式 SQL 查询引擎。该服务器利用 Trino 的 Python 客户端 (trino.dbapi) 连接到 Trino 主机、目录和架构。

Related MCP server: MCP Trino Server

要求

  • Python 3.9+(或与 mcp、trino 和 asyncio 兼容的版本)

  • trino(Trino 的 Python 驱动程序)

  • mcp(模型控制协议 Python 库)

配置

服务器从环境变量中读取 Trino 连接详细信息:

多变的

描述

默认

TRINO_HOST

Trino 服务器主机名或 IP

localhost

TRINO_PORT

Trino 服务器端口

8080

TRINO_USER

Trino 用户名

必需的

TRINO_PASSWORD

Trino 密码(可选,取决于您的身份验证设置)

(空的)

TRINO_CATALOG

使用的默认目录(例如, hivetpchpostgresql等)

必需的

TRINO_SCHEMA

要使用的默认架构(例如defaultpublic等)

必需的

用法

{
  "mcpServers": {
    "trino": {
      "command": "uv",
      "args": [
        "--directory", 
        "<path_to_mcp_server_trino>",
        "run",
        "mcp_server_trino"
      ],
      "env": {
        "TRINO_HOST": "<host>",
        "TRINO_PORT": "<port>",
        "TRINO_USER": "<user>",
        "TRINO_PASSWORD": "<password>",
        "TRINO_CATALOG": "<catalog>",
        "TRINO_SCHEMA": "<schema>"
      }
    }
  }
}
A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    An MCP server that enables natural language interaction with Apache Iceberg data lakehouses, allowing users to query table metadata, schemas, and properties through Claude, Cursor, or other MCP clients.
    5
    41
    Apache 2.0
  • A
    license
    B
    quality
    C
    maintenance
    A Model Context Protocol server that provides seamless integration with Trino and Iceberg, enabling data exploration, querying, and table maintenance through a standard interface.
    22
    25
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server providing seamless integration with Trino and Iceberg for advanced data exploration, querying, and table maintenance.
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • MCP server for managing Prisma Postgres.

  • An MCP server giving access to Grafana dashboards, data and more.

  • MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dataring-engineering/mcp-server-trino'

If you have feedback or need assistance with the MCP directory API, please join our Discord server