Skip to content
GitHub (opens in a new tab)

Databases · Integration guide

How to connect InfluxDB Cloud 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

InfluxDB Cloud uses GateRook’s InfluxDB connector. InfluxDB Cloud with an API token.

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

Identify your InfluxDB Cloud product, its regional server URL and a token with read access to the required buckets or databases. Different InfluxDB Cloud generations expose different query APIs.

This connection uses the supported HTTP query API. InfluxDB Cloud Serverless and Dedicated use InfluxQL over HTTP here; their SQL-over-Flight path is not the same protocol. For InfluxQL access to a 2.x bucket, prepare the required database/retention-policy mapping.

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

Enter the regional endpoint in Server URL and select InfluxDB 2.x or InfluxDB Cloud under Server.

Select API token (InfluxDB 3 and 2.x) under Authentication, then paste the token into API token. Fill Organization when connecting to a 2.x service that requires it.

Restrict Databases to the intended database or bucket names. Use the database name expected by the service's InfluxQL interface and keep result limits bounded under Advanced.

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

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

Click Continue to test, then run a small InfluxQL read. If a bucket exists but InfluxQL cannot find its database, check the DBRP mapping and token permissions. A SQL or Flux syntax error can indicate a query language that this connection path does not support.

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 InfluxDB Cloud on the endpoint and passing its connection test, ask your AI app to use influxdb-cloud-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.

InfluxDB Cloud connector tool names and default modes in the GateRook 2.0.0 endpoint preview.
InfluxDB Cloud 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 measurements available in the permitted database.”
  • “Show at most 20 recent points from one measurement, with a narrow time range.”
  • “Calculate a five-minute average for one numeric field over the last hour using InfluxQL.”
Tools your AI gets
ToolWhat it doesStarts as
influxdb_list_databasesDatabases agents may use (buckets on InfluxDB 2.x).Read only
influxdb_list_measurementsMeasurements of one database (tables on InfluxDB 3). Pages with nextCursor.Read only
influxdb_describeTags and fields with their types of one measurement.Read only
influxdb_queryOne read: SQL on InfluxDB 3, or InfluxQL SELECT and SHOW. GateRook reads each statement first and runs only reads; the connection caps rows and size. Flux isn't supported.Read only
influxdb_writeLine protocol for one database. You approve the exact points; a point with the same measurement, tags and timestamp as an existing one replaces its fields. Never retried.Approval

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

Service documentation

Keep exploring

InfluxDB

Connect InfluxDB 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 InfluxDB Cloud 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)