firestore-mcp
If you are the rightful owner of firestore-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server that provides secure, permission-controlled access to Firebase Firestore.
The Firestore MCP Server is designed to facilitate secure and efficient interactions with Firebase Firestore databases through a standardized interface. It offers granular permission controls, allowing users to manage access at both the collection and operation levels. This server supports full CRUD operations, advanced querying capabilities, and subcollection handling, making it versatile for various data management needs. Additionally, it includes batch operations and transactions to ensure data consistency and efficiency. The server is built with security in mind, featuring collection-level access control and operation-specific permissions, with a default deny policy that requires explicit allow rules. This makes it an ideal solution for AI assistants and other MCP clients that need to interact with Firestore databases securely and efficiently.
Features
- Granular Permissions: Control access at the collection and operation level.
- Full CRUD Operations: Create, read, update, and delete documents.
- Advanced Queries: Support for filtering, ordering, and limiting results.
- Batch Operations: Execute multiple operations atomically.
- Transactions: Ensure data consistency with transactional operations.
Tools
firestore-list-collections
List all accessible collections.
firestore-get-collection
Get all documents from a collection.
firestore-get-document
Get a specific document.
firestore-create-document
Create a new document.
firestore-update-document
Update an existing document.
firestore-delete-document
Delete a document.
firestore-query-collection
Query documents with filters.
firestore-list-subcollections
List subcollections of a document.
firestore-get-collection-by-path
Get documents from a subcollection.
firestore-create-document-by-path
Create a document in a subcollection.
firestore-batch-write
Execute multiple write operations atomically.
firestore-batch-read
Read multiple documents in one operation.
firestore-transaction
Execute a transaction with reads and conditional writes.
firestore-increment-field
Atomically increment a numeric field.
firestore-array-union
Add elements to an array without duplicates.
firestore-server-timestamp
Set fields to server timestamp.