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 deployed
Maintenance
Related MCP Connectors
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Query, join, profile, clean and convert CSV/JSON/Parquet with server-side DuckDB over MCP.
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 gradedqualityCmaintenanceMCP 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.164 PyPI2Apache 2.0