Connections & Capabilities
Connects To
Capabilities
Quickstart
Install
brew install mcp-trinoConfig
{
"mcpServers": {
"mcp-trino": {
"command": "docker",
"args": ["run", "--rm", "-i",
"-e", "TRINO_HOST=<HOST>",
"-e", "TRINO_PORT=<PORT>",
"-e", "TRINO_USER=<USERNAME>",
"-e", "TRINO_PASSWORD=<PASSWORD>",
"-e", "TRINO_SCHEME=http",
"ghcr.io/tuannvm/mcp-trino:latest"],
"env": {}
}
}
}Exposed MCP Tools (6)
execute_queryExecutes a SQL query against the Trino cluster.
Can modify or expose sensitive data depending on the query and user permissions.
list_catalogsLists available catalogs in the Trino cluster.
Read-only operation that reveals catalog names.
list_schemasLists available schemas within a specified catalog.
Read-only operation that reveals schema names.
list_tablesLists available tables within a specified schema.
Read-only operation that reveals table names.
get_table_schemaRetrieves the schema of a specified table.
Read-only operation that reveals table structure.
explain_queryExplains the execution plan of a SQL query.
Read-only operation that analyzes query execution.
Safety Assessment
This MCP server provides a controlled interface to Trino. It is relatively safe when used with read-only queries and proper OAuth configuration. Enabling user impersonation and allowing arbitrary SQL execution increases the risk significantly.
- Optional OAuth 2.1 authentication with multiple providers (Okta, Google, Azure AD).
- Supports both native and proxy OAuth modes for varying client capabilities.
- Allows restricting AI focus to specific schemas for performance and security.
- Includes query attribution by tagging queries with OAuth user information.
- Executes SQL queries, potentially leading to data modification or information disclosure.
- User impersonation feature, if enabled, relies on Trino's permission system.
- Secrets management for proxy mode OAuth requires careful handling.
- Vulnerable to SQL injection if queries are not properly sanitized.
