Skip to content
GitHub (opens in a new tab)

Databases · Integration guide

How to connect Elastic 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

Elastic Cloud uses GateRook’s Elasticsearch connector. Elastic Cloud deployments and serverless projects with an API key.

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

Copy the Elasticsearch endpoint from your Elastic Cloud deployment and create an API key with only the index read and metadata privileges needed for the task.

Use the Elasticsearch REST URL. A Cloud ID, Kibana URL and the Elastic Cloud management API endpoint are different connection values.

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

Enter the HTTPS Elasticsearch endpoint in Server URL.

Set Authentication to API key and paste the encoded key into API key, without an ApiKey prefix.

Leave CA certificate (PEM) empty for a normally trusted public endpoint. Add a CA only if the chosen endpoint uses a private certificate authority.

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

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

A 401 calls for checking the encoded key and its expiration; a 403 calls for checking the key's index and metadata privileges. If the server returns HTML, verify that you copied the Elasticsearch endpoint rather than Kibana.

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

Elastic Cloud connector tool names and default modes in the GateRook 2.0.0 endpoint preview.
Elastic 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 Elasticsearch indexes this API key can read.”
  • “Show the field mappings for the orders index, if available.”
  • “Search at most 10 recent orders and return only their status and creation time.”
Tools your AI gets
ToolWhat it doesStarts as
elasticsearch_indicesResolve Elasticsearch indices, aliases and data streams permitted by the connection's configured access and the server user's permissions. The response body contains the Elasticsearch resolve-index response.Read only
elasticsearch_queryRead Elasticsearch through recognized REST read APIs, including JSON Query DSL, aggregations, multi-search, documents, mappings, settings and cluster diagnostics. Requires full REST API access. The server user's permissions apply across requested indices, including targets in the request body. Use elasticsearch_request for SQL, ES|QL and other unverified APIs, writes or routes that cannot be verified as reads.Read only
elasticsearch_requestExecute any Elasticsearch REST API request using its exact prepared method, path, query parameters and body. Supports JSON and NDJSON, document writes, bulk operations, index _settings, _cluster/settings, snapshots, SQL, ES|QL and other server APIs. Requires full API access and the server user's permissions. Every call defaults to Approval, including GET. Explicit endpoint Bypass executes the prepared request without asking.Approval

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

Service documentation

Keep exploring

Elasticsearch

Connect Elasticsearch to Claude, Codex, Cursor, VS Code or Antigravity in three steps. Search runs at once; other API requests need your approval.

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 Elastic 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)