Skip to content
GitHub (opens in a new tab)

Databases · Integration guide

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

Documents, collections and queries. Changes wait for approval.

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

Find the Google Cloud project ID and Firestore database ID. The default database is named (default).

Use local Application Default Credentials or a service account key with the required Firestore IAM access. These server credentials use IAM; client-side Firebase Security Rules are not a substitute for limiting the identity’s permissions.

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

Enter Project and Database. Restrict Collections with collection IDs or paths, such as orders or /orders; read the form’s distinction between an ID and a path before using wildcards.

Under Authentication, choose Existing Google sign-in (ADC) or Service account key (JSON) and provide the selected credential source.

Set Service account to impersonate for a dedicated identity if appropriate. A reader can use roles/datastore.viewer; grant broader data permissions only when approved changes are required.

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

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

If sign-in is missing or expired, the test can offer Sign in with Google, or you can refresh ADC using gcloud auth application-default login. Check the database ID, IAM access and collection restrictions if the expected collections are absent.

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

Cloud Firestore connector tool names and default modes in the GateRook 2.0.0 endpoint preview.
Cloud Firestore 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 collections available through firestore-demo.”
  • “Read the document orders/order-123 on firestore-demo.”
  • “Using firestore-demo, show at most five orders whose status is pending.”
Tools your AI gets
ToolWhat it doesStarts as
firestore_list_collectionsCollection IDs at the root of the database or under one document, as far as agents may use them. Pages with nextCursor.Read only
firestore_get_documentOne document by its path, such as users/alice: its fields as plain JSON and its create and update times.Read only
firestore_queryDocuments of one collection, or of every collection with one ID, with where filters, orderBy and a limit. Pages with nextCursor.Read only
firestore_writeCreates, updates or deletes one document. You approve the exact write.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 Cloud Firestore 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)