Skip to content

Integration · Company data

Connect Claude & ChatGPT to Firebase

Ask your AI to look up a record in Firestore, list the documents in a collection or change a field on a document. It works with the Cloud Firestore databases in your Firebase project: it can list documents and subcollections, run structured queries over a document's subcollections, fetch several documents at once, and create, update or delete documents.

Connect Firebase / Firestore free

Free plan, no credit card. Takes about a minute.

Try asking

  • “Show me the first 20 documents in the orders collection.”

    The AI lists documents in the orders collection with their fields, and uses the cursor to fetch the next page if you want more.

  • “What is stored in customers/ann-42?”

    It gets that document from the customers collection and shows all its fields.

  • “Which subcollections does users/u123 have?”

    It lists the names of the subcollections under that document.

What your AI can do

Read documents

List databases, documents in a collection and subcollections of a document, and get one document or several at once.

Queries

Run structured queries with filters, ordering and limits over the subcollections of a document.

Write and delete

Create or update a document, change only selected fields, apply several writes atomically, or delete documents.

  • “Find the invoices under customers/c-9 where status is unpaid.”

    It runs a structured query with a filter on status over the subcollections of that document and returns the matching documents.

  • “Set plan to pro on users/u123 and leave the other fields alone.”

    It updates the document with only the plan field in the field mask, so the rest of the document stays as it is.

  • “Delete the document drafts/test-1.”

    It deletes that one document. Subcollections under it are not deleted, and the delete cannot be undone.

10 tools for Firebase / Firestore

These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.

  • delete_documentDeletesPermanently delete one document: `documents_id` = collection, `documents_id1` = document ID. Subcollections under it are not deleted. Cannot be undone. Needs your Firebase project ID in `projects_id` and `databases_id` (usually "(default)").
  • get_documentGet one document from a top-level collection: `documents_id` is the collection name and `documents_id1` the document ID. Returns all its fields. Needs your Firebase project ID in `projects_id` and `databases_id` (usually "(default)").
  • get_documents_batchVisible to othersGet several documents at once by their full names in `documents` (projects/{project}/databases/{database}/documents/{collection}/{id}). Needs your Firebase project ID in `projects_id` and `databases_id` (usually "(default)").
  • list_databasesList the Firestore databases in a Firebase project. Required: `projects_id` (your Firebase project ID). Use this to find the database ID; most projects use "(default)".
  • list_documentsList documents in a top-level collection, e.g. `collection_id` "customers". Supports `limit`, `order_by` and a `cursor` for the next page. Needs your Firebase project ID in `projects_id` and `databases_id` (usually "(default)").
  • list_subcollection_documentsList documents in a subcollection under a document: `documents_id` = parent collection, `documents_id1` = parent document ID, `collection_id` = subcollection name. Needs your Firebase project ID in `projects_id` and `databases_id` (usually "(default)").
  • list_subcollectionsChanges dataList the subcollection names under one document (`documents_id` = collection, `documents_id1` = document ID). Needs your Firebase project ID in `projects_id` and `databases_id` (usually "(default)").
  • query_subcollectionChanges dataRun a structured query (filters, ordering, limit in `structured_query`) over the subcollections of one document: `documents_id` = parent collection, `documents_id1` = parent document ID. Needs your Firebase project ID in `projects_id` and `databases_id` (usually "(default)").
  • set_documentChanges dataCreate or update the document at collection `documents_id` / ID `documents_id1` with `fields` in Firestore value format, e.g. {"name": {"stringValue": "Ann"}}. Without `mask_field_paths` the whole document is replaced; list field names there to change only those. Needs your Firebase project ID in `projects_id` and `databases_id` (usually "(default)").
  • write_documentsChanges dataApply several writes atomically in `writes` (create/update with `update`, or delete by full document name with `delete`). Use it to create new documents in any collection. Deletes are permanent. Needs your Firebase project ID in `projects_id` and `databases_id` (usually "(default)").

Set up in three steps

  1. 1

    Pick the app

    Create a free PipMCP account and choose Firebase / Firestore from the app list.

  2. 2

    Paste your key

    Paste the Client ID and Client secret from your own Google OAuth client, then sign in with Google once. Your Firebase project is also a Google Cloud project: open it in the Google Cloud console, enable the Cloud Firestore API under APIs & Services > Library and set up the OAuth consent screen with yourself as a test user. Under Credentials, create an OAuth client ID of type Web application with the redirect URI https://pipmcp.com/oauth/callback.

  3. 3

    Add the link to your AI

    You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:

    Click your name, then Settings › Connectors › Add custom connector. Paste your link as the Remote MCP server URL. Switch it on from the + menu in a chat.

Questions

What can the AI do in Firebase?

The AI can list the Firestore databases in your project, list documents in collections and subcollections, get one document or several at once, and run structured queries over a document's subcollections. It can create and update documents, change only selected fields, apply several writes atomically and delete documents. It works with Cloud Firestore, not the Realtime Database.

Does the AI see my Firebase credentials?

No. Your Firebase credentials are encrypted at rest and never shown to the AI. After you save them, they are not shown again, not even to you. The AI only sees the results of the tools it calls.

Can I control what the AI is allowed to do?

Yes. You choose which tools are switched on, so you can start read-only. Setting, writing and deleting documents change your live data, and deletes cannot be undone. These tools can require your approval before they run. Every tool call is logged.

Does it work with ChatGPT?

Yes. In ChatGPT go to Settings › Apps & Connectors › Advanced and turn on Developer mode, then add your PipMCP link. Developer mode needs a paid ChatGPT plan: Plus, Pro, Business or Enterprise. The same link also works in Claude (Settings › Connectors › Add custom connector), Cursor and other MCP clients.

What does it cost?

Firebase connects with Google OAuth, and this connection needs the PipMCP Pro plan. PipMCP also has a free plan with no credit card, but it does not include this connection. Paid plans bill per completed task. You also need your own Firebase project.

Why do I create my own Google OAuth client?

Firestore access goes through an OAuth client in your own Google Cloud project, so the access belongs to you. You enable the Cloud Firestore API, create a Web application OAuth client with the redirect URI https://pipmcp.com/oauth/callback, paste its Client ID and Client secret into PipMCP and sign in once with a Google account that has access to the Firebase project. The AI then works with that account's access.

Let your AI work in Firebase / Firestore today.

Start free. Your key stays encrypted, and you decide what the AI may do.

Connect Firebase / Firestore free

PipMCP is not affiliated with Firebase / Firestore. Product names are trademarks of their owners.