Deploy MCP Server
Databases OAuth 2.0

Firestore REST API

Cloud-native NoSQL document database from Google Firebase

Firestore is a flexible, scalable NoSQL cloud database to store and sync data for client- and server-side development. It offers seamless integration with Firebase and Google Cloud, real-time synchronization, offline support, and automatic multi-region replication. Developers use Firestore for building mobile, web, and server applications that require real-time data updates and robust querying capabilities.

Base URL https://firestore.googleapis.com/v1

API Endpoints

MethodEndpointDescription
GET/projects/{projectId}/databases/{databaseId}/documents/{documentPath}Retrieve a single document by its path
POST/projects/{projectId}/databases/{databaseId}/documents/{collectionId}Create a new document in a collection
PATCH/projects/{projectId}/databases/{databaseId}/documents/{documentPath}Update an existing document with partial fields
DELETE/projects/{projectId}/databases/{databaseId}/documents/{documentPath}Delete a document from a collection
POST/projects/{projectId}/databases/{databaseId}/documents:runQueryExecute a structured query against the database
POST/projects/{projectId}/databases/{databaseId}/documents:batchGetRetrieve multiple documents in a single batch request
POST/projects/{projectId}/databases/{databaseId}/documents:batchWritePerform multiple write operations in a single batch
POST/projects/{projectId}/databases/{databaseId}/documents:beginTransactionStart a new transaction for atomic operations
POST/projects/{projectId}/databases/{databaseId}/documents:commitCommit a transaction with multiple write operations
POST/projects/{projectId}/databases/{databaseId}/documents:rollbackRollback an active transaction
GET/projects/{projectId}/databases/{databaseId}/documents/{collectionId}List all documents in a collection with optional filtering
POST/projects/{projectId}/databases/{databaseId}/documents:listenEstablish a streaming connection for real-time updates
GET/projects/{projectId}/databases/{databaseId}/collectionGroups/{collectionId}/indexesList indexes for a collection group
POST/projects/{projectId}/databases/{databaseId}:exportDocumentsExport documents to Google Cloud Storage
POST/projects/{projectId}/databases/{databaseId}:importDocumentsImport documents from Google Cloud Storage

Code Examples

curl -X GET \
  'https://firestore.googleapis.com/v1/projects/my-project/databases/(default)/documents/users/user123' \
  -H 'Authorization: Bearer ya29.a0AfH6SMBx...' \
  -H 'Content-Type: application/json'

Connect Firestore to AI

Deploy a Firestore MCP server on IOX Cloud and connect it to Claude, ChatGPT, Cursor, or any AI client. Your AI assistant gets direct access to Firestore through these tools:

query_documents Execute structured queries against Firestore collections with filtering, sorting, and pagination support
create_document Create new documents in specified collections with automatic ID generation or custom document IDs
update_document Update existing documents with field-level updates, merge operations, and transaction support
batch_operations Perform multiple read or write operations in a single atomic batch request
manage_indexes Create, list, and manage composite indexes for optimizing complex queries

Deploy in 60 seconds

Describe what you need, AI generates the code, and IOX deploys it globally.

Deploy Firestore MCP Server →

Related APIs