
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

An MCP server that integrates Trino and Iceberg for data exploration, querying, and table maintenance.
MCP Trino Server is cataloged as an MCP server attributed to alaturqua. An MCP server that integrates Trino and Iceberg for data exploration, querying, and table maintenance. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Apache 2.0 License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP Trino Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It supports table optimization by compacting small files, manifest optimization, and snapshot expiration.
The server can show table properties, table history, and snapshots.
README.md · 5102d346cdfb · 采集于 2026-11-13 08:20:06 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
The MCP Trino Server is a Model Context Protocol (MCP) server that provides seamless integration with Trino and Iceberg, enabling advanced data exploration, querying, and table maintenance capabilities through a standard interface.
git clone https://github.com/alaturqua/mcp-trino-python.git
cd mcp-trino-python
Create a .env file in the root directory:
TRINO_HOST=localhost
TRINO_PORT=8080
TRINO_USER=trino
TRINO_CATALOG=tpch
TRINO_SCHEMA=tiny
docker-compose up -d trino
This starts a Trino server on localhost:8080 with sample TPC-H and TPC-DS data.
To install MCP Trino Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @alaturqua/mcp-trino-python --client claude
uv sync
uv run src/server.py
pip install -e .
python src/server.py
The server supports three transport modes:
| Transport | Description | Use Case |
|---|---|---|
stdio | Standard I/O (default) | VS Code, Claude Desktop, local MCP clients |
streamable-http | HTTP with streaming | Remote access, web clients, Docker |
sse | Server-Sent Events | Legacy HTTP transport |
# stdio (default) - for VS Code and Claude Desktop
python src/server.py
# Streamable HTTP - for remote/web access
python src/server.py --transport streamable-http --host 0.0.0.0 --port 8000
# SSE - legacy HTTP transport
python src/server.py --transport sse --host 0.0.0.0 --port 8000
Add to your VS Code settings (Ctrl+Shift+P → Preferences: Open User Settings (JSON)):
{
"mcp": {
"servers": {
"mcp-trino-python": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"--with",
"trino",
"--with",
"loguru",
"mcp",
"run",
"/path/to/mcp-trino-python/src/server.py"
],
"envFile": "/path/to/mcp-trino-python/.env"
}
}
}
}
Or add to .vscode/mcp.json in your workspace (without the mcp wrapper key).
Add to your Claude Desktop configuration:
{
"mcpServers": {
"trino": {
"command": "python",
"args": ["./src/server.py"],
"env": {
"TRINO_HOST": "your-trino-host",
"TRINO_PORT": "8080",
"TRINO_USER": "trino"
}
}
}
}
docker build -t mcp-trino-python .
docker run -i --rm \
-e TRINO_HOST=host.docker.internal \
-e TRINO_PORT=8080 \
-e TRINO_USER=trino \
mcp-trino-python
docker run -p 8000:8000 \
-e TRINO_HOST=host.docker.internal \
-e TRINO_PORT=8080 \
mcp-trino-python \
--transport streamable-http --host 0.0.0.0 --port 8000
# Start Trino + MCP server with Streamable HTTP
docker-compose up -d
# Start with SSE transport
docker-compose --profile sse up -d
# Run stdio for testing
docker-compose --profile stdio run --rm mcp-trino-stdio
{
"mcp": {
"servers": {
"mcp-trino-python": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--network",
"mcp-trino-python_trino-network",
"-e",
"TRINO_HOST=trino",
"-e",
"TRINO_PORT=8080",
"-e",
"TRINO_USER=trino",
"mcp-trino-python"
]
}
}
}
}
| Variable | Description | Default |
|---|---|---|
| TRINO_HOST | Trino server hostname | localhost |
| TRINO_PORT | Trino server port | 8080 |
| TRINO_USER | Trino username | trino |
| TRINO_CATALOG | Default catalog | None |
| TRINO_SCHEMA | Default schema | None |
| TRINO_HTTP_SCHEME | HTTP scheme (http/https) | http |
| TRINO_PASSWORD | Trino password | None |
show_catalogs
show_schemas
catalog: Catalog name (string, required)show_tables
catalog: Catalog name (string, required)schema: Schema name (string, required)describe_table
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)execute_query
query: SQL query to execute (string, required)show_catalog_tree
show_create_table
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)show_create_view
view: View name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)show_stats
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)optimize
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)optimize_manifests
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)expire_snapshots
table: Table name (string, required)retention_threshold: Age threshold (e.g., "7d") (string, optional)catalog: Catalog name (string, optional)schema: Schema name (string, optional)show_table_properties
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)show_table_history
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)show_metadata_log_entries
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)show_snapshots
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)show_manifests
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)all_snapshots: Include all snapshots (boolean, optional)show_partitions
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)show_files
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)show_entries
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)all_snapshots: Include all snapshots (boolean, optional)show_refs
table: Table name (string, required)catalog: Catalog name (string, optional)schema: Schema name (string, optional)limit: Maximum number of queries to return (number, optional)This project is licensed under the Apache 2.0 License. Please refer to the LICENSE file for the full terms.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Trino Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/trino-sql-query-engine)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.