Skip to main content
Glama

Trino MCP Server

by stinkgen
# Changelog ## v0.1.2 (2023-06-01) ### ✨ New Features - **Integrated LLM API**: Added a native REST API endpoint to the MCP server for direct LLM queries - **Built-in FastAPI Endpoint**: Port 8001 now exposes a JSON API for running SQL queries without wrapper scripts - **Query Endpoint**: Added `/api/query` endpoint for executing SQL against Trino with JSON responses ### 📝 Documentation - Updated README with API usage instructions - Added code examples for the REST API ## v0.1.1 (2023-05-17) ### 🐛 Bug Fixes - **Fixed Trino client catalog handling**: The Trino client now correctly sets the catalog in connection parameters instead of using unreliable `USE catalog` statements. - **Improved query execution**: Queries now correctly execute against specified catalogs. - **Added error handling**: Better error handling for catalog and schema operations. ### 📝 Documentation - Added detailed documentation about transport options and known issues. - Created test scripts demonstrating successful MCP-Trino interaction. - Documented workarounds for MCP 1.3.0 SSE transport issues. ### 🧪 Testing - Added `test_mcp_stdio.py` for testing MCP with STDIO transport. - Added catalog connection testing scripts and diagnostics. ### 🚧 Known Issues - MCP 1.3.0 SSE transport has issues with client disconnection. - Use STDIO transport for reliable operation until upgrading to a newer MCP version.

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/stinkgen/trino_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server