Skip to content
GitHub (opens in a new tab)

Databases · Integration guide

How to connect Trino / Presto to any AI IDE (Claude/Codex/Cursor/VS Code/Antigravity)

Before you start, install GateRook and connect it to your AI development environment: Claude Desktop, Codex, Cursor, Antigravity or VS Code.

Connect your AI app

Catalogs, schemas and SQL reads checked by Trino's own plan. Changes wait for approval.

The screenshots show GateRook 2.0.0: the Trino / Presto form, the endpoint selector, and this connector’s actual tool preview. The form and preview have not been saved. Select a screenshot to open it at full size.

1. Create a connection and enter the settings

In GateRook, open Connections, select Add connection, search for Trino / Presto, choose its card and select Continue to configure.

Obtain the coordinator URL and a user identity that can read the required catalogs. GateRook supports Trino and Presto through their coordinator APIs.

Use HTTPS for a remote coordinator. Prepare a username and password or JWT bearer token according to your server’s authentication configuration.

Enter a Name, for example trino-demo. Your AI app uses this name to choose the connection.

Enter Coordinator URL with its scheme and port. Check Engine after the form inspects the coordinator; choose the actual server engine if detection needs correction.

Choose User and password or JWT bearer token under Sign in with and fill the displayed credentials. Use No authentication (dev, or a coordinator on this computer) only for an intentionally unauthenticated setup allowed by the form.

Set Default catalog and Default schema if needed, then limit Catalogs. For a private CA, enter CA certificate (PEM); for Trino, Data scanned per statement can further limit reads.

Choose Development, Staging or Production to match the service. Review the connector’s limit and access settings before continuing.

GateRook 2.0.0 Configure Trino / Presto form before saving.
The Trino / Presto configuration form. Enter your own connection settings before testing.

2. Test the connection and add it to an endpoint

Select Continue to test. GateRook checks the settings from your computer. Review the result and resolve any connection, certificate or permission error before continuing.

Check the coordinator URL and selected engine when the API returns an unexpected response. Authentication and catalog access are separate: the user must be allowed to read every catalog used by the query.

After the test passes, select Continue to add to an endpoint. Choose the endpoint your AI app uses, review its tool modes, then select Save connection. GateRook offers default as the starter endpoint.

GateRook endpoint selector with default selected; no connector tool list is shown.
Choose the endpoint your AI app uses. This selector is shared across connector types; the next screenshot shows this connector’s own tools.

3. Use the connection from your AI IDE

After saving Trino / Presto on the endpoint and passing its connection test, ask your AI app to use trino-demo, or the name you chose. If its tools are missing, confirm the endpoint assignment and refresh the MCP connection or start a new chat.

The preview below shows this connector’s default tools before saving. The table explains what each tool can do; connection settings, credentials and endpoint policies can restrict access further.

Trino / Presto connector tool names and default modes in the GateRook 2.0.0 endpoint preview.
Trino / Presto tools in the Development endpoint preview. This is an unsaved preview, not a successful service call.

Start with a small read request. Replace example resource names with existing resources your connection may access. Open Activity after the call to inspect its connection, tool, arguments, policy decision and result metadata.

Ask your AI, for example

  • “List the catalogs available on trino-demo.”
  • “Show the tables in the hive.analytics schema on trino-demo.”
  • “Using trino-demo, count orders by status in hive.analytics.orders.”
Tools your AI gets
ToolWhat it doesStarts as
trino_list_catalogsCatalogs agents may use on the coordinator.Read only
trino_list_schemasSchemas of one catalog.Read only
trino_list_tablesTables and views of one schema, optionally matching a LIKE pattern.Read only
trino_describe_tableColumns with their types and comments, and the table's comment.Read only
trino_queryOne SELECT, WITH, VALUES, SHOW, DESCRIBE or EXPLAIN. Trino's own IO plan checks it first: it must write no table and read only catalogs of the connection. Results end at the row limit: Trino can't resume a query, so narrow it to see more.Read only
trino_executeOne INSERT, UPDATE, DELETE, MERGE, CREATE, ALTER, DROP, COMMENT, TRUNCATE, ANALYZE or REFRESH statement. You approve the exact text with the tables Trino's plan reads and writes.Approval

You can change each tool’s mode on the endpoint. Every call your AI makes appears in Activity.

Service documentation

Keep exploring

Starburst

Connect Starburst to Claude, Codex, Cursor, VS Code or Antigravity with GateRook. Follow setup, connection testing and tool access with screenshots.

PostgreSQL

Connect PostgreSQL to Claude, Codex, Cursor, VS Code or Antigravity in three steps. Your AI runs read queries; changes wait for your approval.

MySQL

Connect MySQL to Claude, Codex, Cursor, VS Code or Antigravity in three steps. GateRook keeps the password; your AI reads data and asks before changes.

Browse all integration guides

Your local MCP gateway and firewall.

Connect Trino / Presto to your AI IDE.

Choose a connector. Start with read-only access. Approve changes and inspect the audit trail.

Read the getting started guide

Get GateRook

Download GateRook 2.0.0 for your Mac, or get the Windows app from Microsoft Store.

macOS

Version 2.0.0 for Apple Silicon (arm64). This download does not support Intel Macs.

Open the DMG and drag GateRook to Applications.

Windows

Available for free from Microsoft Store. Install GateRook and receive updates through the Store.

macOS release notes and checksums (opens in a new tab)