Loading...
{
"mcpServers": {
"trino": {
"command": "uv",
"args": [
"--directory",
"<path_to_mcp_server_trino>",
"run",
"mcp_server_trino"
],
"env": {
"TRINO_HOST": "<host>",
"TRINO_PORT": "<port>",
"TRINO_USER": "<user>",
"TRINO_PASSWORD": "<password>",
"TRINO_CATALOG": "<catalog>",
"TRINO_SCHEMA": "<schema>"
}
}
}
}list_tablesLists available tables in the configured Trino catalog and schema.
Read-only operation; no data modification.
read_tableReads the contents of a specified Trino table.
Read-only operation; no data modification.
execute_sqlExecutes an arbitrary SQL query against the Trino database.
Allows arbitrary SQL execution, potentially leading to data modification or leakage.
This server is relatively safe for read-only operations and listing tables. However, executing arbitrary SQL queries introduces significant risk, especially if proper input validation and resource controls are not implemented. Secure handling of environment variables is crucial.