Skip to content
GitHub (opens in a new tab)

Databases · Integration guide

How to connect Amazon Athena 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

Data catalogs, databases and SQL reads within a workgroup's limits. Changes wait for approval.

The screenshots show GateRook 2.0.0: the Amazon Athena 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 Amazon Athena, choose its card and select Continue to configure.

Choose the AWS region, workgroup and data catalog. Configure a suitable per-query data limit in the Athena workgroup because queries can incur scan charges.

Prepare AWS credentials with access to Athena, the required catalog metadata and the underlying data. Queries also need an authorized results location or the workgroup’s managed results configuration.

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

Enter Region and Workgroup. Set Data catalog to the catalog you use, such as AwsDataCatalog, and optionally enter a Default database.

Restrict Databases to the intended database names or catalog.database entries. Enter Query results location only when the workgroup does not already supply the required result handling.

Choose an AWS Profile or access key under Credentials source. For a dedicated role, fill Role to assume, configure its trust policy and retain the recommended Session policy.

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

GateRook 2.0.0 Configure Amazon Athena form before saving.
The Amazon Athena 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.

A query can fail because of catalog, source-data or results-location permissions even after AWS sign-in succeeds. If the workgroup overrides client settings, its results location and other enforced settings take precedence.

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 Amazon Athena on the endpoint and passing its connection test, ask your AI app to use athena-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.

Amazon Athena connector tool names and default modes in the GateRook 2.0.0 endpoint preview.
Amazon Athena 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 databases available through athena-demo.”
  • “Describe analytics.orders on athena-demo.”
  • “Using athena-demo, count yesterday’s orders by status within the workgroup’s scan limit.”
Tools your AI gets
ToolWhat it doesStarts as
athena_list_catalogsData catalogs agents may use in the region.Read only
athena_list_databasesDatabases agents may use in one data catalog. Pages with nextCursor.Read only
athena_list_tablesTables and views of one database. Pages with nextCursor.Read only
athena_describe_tableColumns with types and comments, partition keys, the table type and its location.Read only
athena_queryOne SELECT, WITH, VALUES, SHOW, DESCRIBE or EXPLAIN in the connection's workgroup. Athena's own IO plan checks a query first: it must write no table and read only databases of the connection. Reports the data scanned; pages with nextCursor.Read only
athena_executeOne INSERT, UPDATE, DELETE, MERGE, CREATE, ALTER, DROP, MSCK REPAIR TABLE, OPTIMIZE or VACUUM statement. You approve the exact text with the tables Athena'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

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.

MariaDB

Connect MariaDB to Claude, Codex, Cursor, VS Code or Antigravity in three steps with GateRook’s MySQL connector. Changes wait for your approval.

Browse all integration guides

Your local MCP gateway and firewall.

Connect Amazon Athena 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)