Trino MCP サーバー
このリポジトリは、Python を使用して Trino 経由でテーブルを一覧表示およびクエリできる MCP (モデル制御プロトコル) サーバーを提供します。
概要
MCP: MCPは、AIモデル、データ、ツールを連携させるためのプロトコルです。このサンプルMCPサーバーは以下を提供します。
MCPリソースとしてのTrinoテーブルのリスト
MCP を通じてテーブルの内容を読み取る機能
Trinoに対して任意のSQLクエリを実行するツール
Trino: ビッグデータ分析のための高速分散SQLクエリエンジン。このサーバーは、TrinoのPythonクライアント(trino.dbapi)を使用して、Trinoホスト、カタログ、スキーマに接続します。
要件
Python 3.9+ (または mcp、trino、asyncio と互換性のあるバージョン)
trino (Trino 用の Python ドライバ)
mcp (モデル制御プロトコル Python ライブラリ)
構成
サーバーは環境変数から Trino 接続の詳細を読み取ります。
変数 | 説明 | デフォルト |
| Trinoサーバーのホスト名またはIP |
|
| Trino サーバーポート |
|
| Trinoユーザー名 | 必須 |
| Trino パスワード (オプション、認証設定によって異なります) | (空の) |
| 使用するデフォルトのカタログ (例:
、
、
など) | 必須 |
| 使用するデフォルトのスキーマ (例:
、
など) | 必須 |
使用法
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Python を使用して Trino テーブルの一覧表示とクエリを可能にし、モデル制御プロトコルを通じてデータ リソースへのアクセスを提供する MCP サーバー。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Python-based MCP server that integrates the TapTools API, enabling AI models to fetch Cardano blockchain data, including tokens, NFTs, market stats, and wallet info, through standardized tools.Last updated -MIT License
- -securityAlicense-qualityA Model Context Protocol server that provides seamless integration with Trino and Iceberg, enabling data exploration, querying, and table maintenance through a standard interface.Last updated -19Apache 2.0
- -securityFlicense-qualityAn MCP server that allows working with MySQL databases by providing tools for executing read-only SQL queries, getting table schemas, and listing database tables.Last updated -3144
- -securityAlicense-qualityA high-performance Model Context Protocol (MCP) server for Trino implemented in Go.Last updated -64MIT License