Skip to main content
Glama

Trino MCP Server

by stinkgen

execute_query

Run SQL queries on Trino databases, specifying optional catalog and schema. Retrieve query results with metadata to analyze and process data directly within the Trino MCP Server.

Instructions

Execute a SQL query against Trino. Args: sql: The SQL query to execute. catalog: Optional catalog name to use for the query. schema: Optional schema name to use for the query. Returns: Dict[str, Any]: Query results including metadata.

Input Schema

NameRequiredDescriptionDefault
catalogNo
schemaNo
sqlYes

Input Schema (JSON Schema)

{ "properties": { "catalog": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Catalog" }, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Schema" }, "sql": { "title": "Sql", "type": "string" } }, "required": [ "sql" ], "title": "execute_queryArguments", "type": "object" }
Install Server

Other Tools from Trino MCP Server

Related Tools

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