{"id":26570834,"url":"https://github.com/Dataring-engineering/mcp-server-trino","last_synced_at":"2025-03-22T22:19:22.565Z","repository":{"id":281644216,"uuid":"945907748","full_name":"Dataring-engineering/mcp-server-trino","owner":"Dataring-engineering","description":"MCP Server for Trino","archived":false,"fork":false,"pushed_at":"2025-03-10T10:51:53.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T11:42:53.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dataring-engineering.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-10T10:10:09.000Z","updated_at":"2025-03-10T10:51:56.000Z","dependencies_parsed_at":"2025-03-10T11:42:58.465Z","dependency_job_id":"620b6b59-fc3a-43ba-8231-f05e6d94967b","html_url":"https://github.com/Dataring-engineering/mcp-server-trino","commit_stats":null,"previous_names":["dataring-engineering/mcp-server-trino"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dataring-engineering%2Fmcp-server-trino","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dataring-engineering%2Fmcp-server-trino/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dataring-engineering%2Fmcp-server-trino/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dataring-engineering%2Fmcp-server-trino/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dataring-engineering","download_url":"https://codeload.github.com/Dataring-engineering/mcp-server-trino/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245026566,"owners_count":20549161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-22T22:19:17.457Z","updated_at":"2025-03-22T22:19:22.537Z","avatar_url":"https://github.com/Dataring-engineering.png","language":"Python","funding_links":[],"categories":["Databases","Database \u0026 Messaging MCP Servers","MCP 服务器精选列表","🤖 AI/ML","پیاده‌سازی‌های سرور","APIs and HTTP Requests","Legend","MCP Servers","Uncategorized","Table of Contents"],"sub_categories":["SQL Databases","🗄️ 数据库交互","🗄️ \u003ca name=\"databases\"\u003e\u003c/a\u003eپایگاه‌های داده","🗄️ \u003ca name=\"databases\"\u003e\u003c/a\u003eDatabases","🗄️ Databases","Uncategorized","Databases"],"readme":"# Trino MCP Server\n\nThis repository provides an MCP (Model-Control-Protocol) server that allows you to list and query tables via Trino using Python.\n\n## Overview\n\n- MCP: MCP is a protocol for bridging AI models, data, and tools. This example MCP server provides:\n    - A list of Trino tables as MCP resources\n    - Ability to read table contents through MCP\n    - A tool for executing arbitrary SQL queries against Trino\n- Trino: A fast, distributed SQL query engine for big data analytics. This server makes use of Trino’s Python client (trino.dbapi) to connect to a Trino host, catalog, and schema.\n\n## Requirements\n\n- Python 3.9+ (or a version compatible with mcp, trino, and asyncio)\n- trino (the Python driver for Trino)\n- mcp (the Model-Control-Protocol Python library)\n\n## Configuration\n\nThe server reads Trino connection details from environment variables:\n\n| Variable         | Description                                                          | Default     |\n|------------------|----------------------------------------------------------------------|------------|\n| `TRINO_HOST`     | Trino server hostname or IP                                          | `localhost`|\n| `TRINO_PORT`     | Trino server port                                                    | `8080`     |\n| `TRINO_USER`     | Trino user name                                                      | *required* |\n| `TRINO_PASSWORD` | Trino password (optional, depends on your authentication setup)      | (empty)    |\n| `TRINO_CATALOG`  | Default catalog to use (e.g., `hive`, `tpch`, `postgresql`, etc.)    | *required* |\n| `TRINO_SCHEMA`   | Default schema to use (e.g., `default`, `public`, etc.)             | *required* |\n\n## Usage\n\n``` json\n{\n  \"mcpServers\": {\n    \"trino\": {\n      \"command\": \"uv\",\n      \"args\": [\n        \"--directory\", \n        \"\u003cpath_to_mcp_server_trino\u003e\",\n        \"run\",\n        \"mcp_server_trino\"\n      ],\n      \"env\": {\n        \"TRINO_HOST\": \"\u003chost\u003e\",\n        \"TRINO_PORT\": \"\u003cport\u003e\",\n        \"TRINO_USER\": \"\u003cuser\u003e\",\n        \"TRINO_PASSWORD\": \"\u003cpassword\u003e\",\n        \"TRINO_CATALOG\": \"\u003ccatalog\u003e\",\n        \"TRINO_SCHEMA\": \"\u003cschema\u003e\"\n      }\n    }\n  }\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDataring-engineering%2Fmcp-server-trino","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDataring-engineering%2Fmcp-server-trino","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDataring-engineering%2Fmcp-server-trino/lists"}