firestore-mcp

firestore-mcp

3.2

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

  1. firestore-list-collections

    List all accessible collections.

  2. firestore-get-collection

    Get all documents from a collection.

  3. firestore-get-document

    Get a specific document.

  4. firestore-create-document

    Create a new document.

  5. firestore-update-document

    Update an existing document.

  6. firestore-delete-document

    Delete a document.

  7. firestore-query-collection

    Query documents with filters.

  8. firestore-list-subcollections

    List subcollections of a document.

  9. firestore-get-collection-by-path

    Get documents from a subcollection.

  10. firestore-create-document-by-path

    Create a document in a subcollection.

  11. firestore-batch-write

    Execute multiple write operations atomically.

  12. firestore-batch-read

    Read multiple documents in one operation.

  13. firestore-transaction

    Execute a transaction with reads and conditional writes.

  14. firestore-increment-field

    Atomically increment a numeric field.

  15. firestore-array-union

    Add elements to an array without duplicates.

  16. firestore-server-timestamp

    Set fields to server timestamp.