Firestore integration
Google Cloud Firestore NoSQL document database REST API. Create, read, update, and delete documents, run structured queries, manage collections, and handle real-time data with strong consistency and ACID transactions.
Say what should happen.
The workflow builds itself.
Common Firestore use cases
- list databases in a project
- execute commit programmatically
- execute run query programmatically
- execute list index programmatically
- execute batch write programmatically
- execute create index programmatically
- execute get database programmatically
- execute get document programmatically
- execute list document programmatically
- execute create database programmatically
What you can do with Firestore
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Batch get document, 1 operation
batch_get_documentsBatch get documentsPOSTAgents: ask firstGets multiple documents in a single request. Returns results in an unspecified order.
Batch write, 1 operation
batch_writeBatch writePOSTAgents: ask firstApplies multiple writes atomically, without transaction guarantees. Writes are applied in order.
Begin transaction, 1 operation
begin_transactionBegin transactionPOSTAgents: ask firstStarts a new transaction and returns a transaction ID to use in subsequent read/write operations.
Commit, 1 operation
commitCommitPOSTAgents: ask firstCommits a transaction, applying all writes within the transaction atomically.
Create database, 1 operation
create_databaseCreate databasePOSTAgents: ask firstCreates a new Firestore database in the specified project.
Create document, 1 operation
create_documentCreate documentPOSTAgents: ask firstCreates a new document in the specified collection.
Create index, 1 operation
create_indexCreate indexPOSTAgents: ask firstCreates a composite index for a collection group. Returns a long-running operation.
Database, 1 operation
list_databasesList databasesGETAgents: ask firstLists all databases in a Google Cloud project.
Delete database, 1 operation
delete_databaseDelete databaseDELETEAgents: ask firstDeletes a Firestore database and all its documents.
Delete document, 1 operation
delete_documentDelete documentDELETEAgents: ask firstDeletes a document from Firestore.
Export document, 1 operation
export_documentsExport documentsPOSTAgents: ask firstExports a copy of all or a subset of documents from Firestore to Cloud Storage.
Get database, 1 operation
get_databaseGet databaseGETAgents: ask firstGets information about a Firestore database.
Get document, 1 operation
get_documentGet documentGETAgents: ask firstGets a single document from Firestore by its full path.
Import document, 1 operation
import_documentsImport documentsPOSTAgents: ask firstImports documents into Firestore from a Cloud Storage export.
List collection id, 1 operation
list_collection_idsList collection idsPOSTAgents: ask firstLists all the collection IDs underneath a document.
List document, 1 operation
list_documentsList documentsGETAgents: ask firstLists documents in a collection.
List index, 1 operation
list_indexesList indexesGETAgents: ask firstLists the composite indexes defined for a collection group.
Rollback transaction, 1 operation
rollback_transactionRollback transactionPOSTAgents: ask firstRolls back a transaction, discarding all pending writes.
Run aggregation query, 1 operation
run_aggregation_queryRun aggregation queryPOSTAgents: ask firstRuns an aggregation query (e.g. COUNT) over a collection or collection group.
Run query, 1 operation
run_queryRun queryPOSTAgents: ask firstRuns a structured query against Firestore documents.
Update database, 1 operation
update_databaseUpdate databasePATCHAgents: ask firstUpdates the configuration of an existing Firestore database.
Update document, 1 operation
update_documentUpdate documentPATCHAgents: ask firstUpdates or inserts a document. A patch operation; only provided fields are updated.
OAuth scopes Firestore requires
Each operation declares the scopes Firestore requires for it.
https://www.googleapis.com/auth/datastoreneeded by batch_get_documents, batch_write, begin_transaction and 19 more
Use Firestore from Claude Code, Cursor or Codex
Connect Firestore in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Firestore operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Firestore
- Create your workspace
Sign up free. Nothing to install.
- Connect Firestore once
Add your Firestore connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Firestore integration FAQ
What can you do with the Firestore integration?
LiveContext exposes 22 operations on Firestore, covering batch get document, batch write, begin transaction and commit. Common uses include list databases in a project, execute commit programmatically and execute run query programmatically.
Which OAuth scopes does Firestore require?
The operations that declare a scope all need https://www.googleapis.com/auth/datastore.
