• READ
  • WRITE
  • EDIT
  • HUMAN

How to manage Firestore documents with your AI

Connect your database to your AI client once. From then on, you can manage your collections using plain text.

Ask AI about this page

Short answer

Can I use my AI to edit Firestore data?

Yes. You can use text commands to add new records, pull specific documents, change existing data, or remove entries from your collections. You'll see exactly how the AI handles these requests below.

Data outcomes

Where your data goes.

The AI performs specific operations on your Firestore collections based on your chat commands.

READ

Fetch records

The AI pulls specific documents or lists entire collections. You get the raw data or a summary right in your chat.

WRITE

Add new entries

Tell the AI what to save. It creates new documents in your specified collections instantly.

EDIT

Update fields

The AI modifies specific values within a document. You can change data without touching the Firebase console.

HUMAN

Review changes

You stay in control. The AI executes the commands, but you decide which documents to target and which to delete.

The workflow

What your AI does when <the thing arrives>.

Your AI translates your natural language into direct API calls to your Firestore database.

  1. Locate data

    The AI finds the specific document or collection you're talking about to prepare for the task.

    firestore_get_docfirestore_list_docs
  2. Insert records

    When you ask to add data, the AI builds the document and saves it to the collection.

    firestore_create_doc
  3. Modify values

    The AI targets specific fields in an existing document to change their content.

    firestore_patch_doc
  4. Remove entries

    If you request a deletion, the AI identifies the document and removes it from the collection.

    firestore_delete_doc

Try it

Copy these to start.

Paste these prompts into your chat to begin managing your database.

Starting points

Swap out the collection names and field values for your own data.

Firebase Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_kPnsxv1agRMRRjEnxsY1EdAHRbpaJFbPdblbZLaU/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Firebase capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "firebase-rest-admin-apis-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_kPnsxv1agRMRRjEnxsY1EdAHRbpaJFbPdblbZLaU/mcp"
    }
  }
}
Copy into chat04
  • List all documents in the 'users' collection.

  • Create a new document in 'products' with name 'Coffee Mug' and price 15.

  • Update the 'status' field to 'shipped' for the document in 'orders' with ID order_99.

  • Delete the document with ID user_test_1 from the 'customers' collection.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Firebase once, then ask.

Follow the link to connect your account. Your credentials stay encrypted on our side, and you can start managing data immediately.

Connect Firebase to your AI

FAQ

How this task behaves.

  • 01

    Can the AI delete my entire database?

    No. The AI can only delete specific documents that you explicitly tell it to remove.

  • 02

    Can the AI change my security rules?

    No. The AI only interacts with the data through the provided tools; it cannot modify security rules or database configurations.

  • 03

    Does the AI write code to update my data?

    No. The AI uses the tools to perform the updates directly via the API.

  • 04

    Can I use this to create new collections?

    Yes. If you tell the AI to create a document in a collection that doesn't exist yet, it will create that collection for you.

  • 05

    Will the AI automatically fix my data errors?

    No. The AI only performs the specific create, update, or delete actions you request.

  • More questions about Firebase? The Connector page answers them. See everything the Firebase Connector can do

Connect Firebase to Claude, Cursor, ChatGPT & more