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 服务器主机名或 IP |
|
| Trino 服务器端口 |
|
| Trino 用户名 | 必需的 |
| Trino 密码(可选,取决于您的身份验证设置) | (空的) |
| 使用的默认目录(例如, | 必需的 |
| 要使用的默认架构(例如 | 必需的 |
用法
{
"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>"
}
}
}
}
This server cannot be installed
Maintenance
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
- AlicenseCqualityDmaintenanceAn 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.541Apache 2.0
- AlicenseBqualityCmaintenanceA Model Context Protocol server that provides seamless integration with Trino and Iceberg, enabling data exploration, querying, and table maintenance through a standard interface.2225Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server providing seamless integration with Trino and Iceberg for advanced data exploration, querying, and table maintenance.Apache 2.0
- AlicenseNot gradedqualityAmaintenanceMCP Server for Apache Iceberg, enabling users to read, query, and manipulate data within Iceberg catalogs.2Apache 2.0
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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