# Firebase (REST & Admin APIs) MCP for AI Agents AI Agent Connect

> Firebase (REST & Admin APIs) lets you manage your backend infrastructure using natural language. Query Firestore or Realtime Database, handle user authentication, and send Cloud Messaging notifications directly through your AI agent. It connects your Firebase project to your tools so you can move data and manage users without switching tabs.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_kPnsxv1agRMRRjEnxsY1EdAHRbpaJFbPdblbZLaU/ai-agent-connect
- **Tags:** firebase, nosql, realtime-database, firestore, authentication, fcm, backend-as-a-service

## Description

The Firebase (REST & Admin APIs) MCP connects your Firebase project to any AI agent so you can manage your backend infrastructure through natural language. This Connector uses Firebase REST APIs to give your agent direct access to Realtime Database, Cloud Firestore, and Authentication services. Managing a backend usually means jumping between the Firebase console, a terminal, and your code editor. You are constantly switching tabs to check a user's status, update a database record, or see if a notification actually went out. This Connector changes that by letting your AI agent do the heavy lifting for you. You can just tell your agent to find a specific user or update a configuration value, and it handles the REST API calls in the background. Because Vinkius makes it easy to connect these tools, you get a unified way to interact with your Firebase project. Instead of manually hunting through nested JSON trees in the Realtime Database or listing every document in a Firestore collection, you just ask for the info you need. It is about moving faster by treating your backend like a conversational interface. You can sign up users, fetch profile data, and push data to your database without ever leaving your primary workspace.

## Tools

### auth_sign_up
This tool signs up a new user or signs them in anonymously. It is the fastest way to create test accounts or handle new user registrations.

### fcm_send_message
This tool sends a message via Firebase Cloud Messaging. You can use it to push notifications to specific devices or topics directly from the chat.

### firestore_create_doc
This tool creates a new document in Cloud Firestore with an optional ID. It lets you generate a new record quickly without manually typing out a unique ID.

### firestore_delete_doc
Use this tool to remove a document from Cloud Firestore. It helps you clean up your database by deleting specific entries with a single command.

### firestore_get_doc
This tool fetches a single document from Cloud Firestore. It is useful for pulling specific records into your chat for a quick look at the data.

### firestore_list_docs
This tool lists all documents in a specific Cloud Firestore collection. You can use it to see a high-level overview of what is currently stored in a folder.

### firestore_patch_doc
This tool updates or inserts a document in Cloud Firestore. It is perfect for making targeted changes to existing records without overwriting the entire object.

### rtdb_delete
This tool deletes data from the Firebase Realtime Database. It allows you to clear out specific paths or keys in your JSON tree instantly.

### rtdb_get
Use this tool to read data from any path in your Firebase Realtime Database. It gives you a way to check live app states or configuration values from your agent.

### rtdb_patch
This tool updates specific children in your Firebase Realtime Database. It helps you modify nested data points without affecting other parts of the tree.

### rtdb_push
Use this tool to append new data to a path in the Firebase Realtime Database. It is great for adding new log entries or list items to your database.

### rtdb_put
This tool writes data to the Firebase Realtime Database by overwriting the existing value. It is useful for when you need to replace an entire data object at a specific path.

### auth_sign_in
Use this tool to sign in a user with an email and password. It helps you test login flows and verify account access through your agent.

### auth_lookup
This tool retrieves user data from Firebase Auth. It lets you quickly check a user's profile or status using their ID token.

## Prompt Examples

**Prompt:** 
```
Can you find the user with email test@example.com and tell me their status?
```

**Response:** 
```
I've looked up the account for **test@example.com**. Here is the current status:

| Field | Value |
| :--- | :--- |
| **UID** | `user_9921` |
| **Status** | `Active` |
| **Last Login** | `2026-07-01` |

Would you like me to update any of these details?
```

**Prompt:** 
```
Update the 'is_active' flag to true for the user 'user_123' in Firestore.
```

**Response:** 
```
I've successfully updated the record for **user_123**. The `is_active` flag is now set to **true** in your Cloud Firestore database.
```

**Prompt:** 
```
Send a push notification to the 'premium_users' topic saying 'Sale starts now!'
```

**Response:** 
```
The push notification has been sent to the **premium_users** topic. 

**Message:** *Sale starts now!*
**Status:** `Success` 

Is there anything else you'd like to send?
```

## Capabilities

### Update Firestore records
This Connector lets you use firestore_patch_doc to modify specific fields in your database.

### Fetch Realtime Database data
This Connector uses rtdb_get to pull data from any path in your database.

### Create new user accounts
This Connector lets you use auth_sign_up to register new users through your agent.

### Send push notifications
This Connector uses fcm_send_message to send alerts to your app users.

### List database collections
This Connector uses firestore_list_docs to show you every document in a collection.

### Delete specific records
This Connector uses rtdb_delete to remove data from your Realtime Database.

## Use Cases

### Fixing a production bug
The Firebase (REST & Admin APIs) MCP helps a dev find a user's broken profile and fix the record using firestore_patch_doc.

### Onboarding a new user
The Firebase (REST & Admin APIs) MCP lets a support person use auth_sign_up to create a test account and then check it with auth_lookup.

### Sending a blast notification
The Firebase (REST & Admin APIs) MCP lets a PM ask the agent to send an alert to all users on a topic using fcm_send_message.

### Checking app config
The Firebase (REST & Admin APIs) MCP lets a dev ask for the current theme settings in the Realtime Database using rtdb_get.

## Benefits

- The Firebase (REST & Admin APIs) MCP lets you stop clicking through the Firebase console to find one record by using firestore_get_doc.
- You can update database entries instantly with firestore_patch_doc instead of manual edits.
- The Firebase (REST & Admin APIs) MCP lets you manage user accounts directly through your agent using auth_sign_up and auth_sign_in.
- You can send push notifications on the fly using fcm_send_message without opening a dashboard.
- The Firebase (REST & Admin APIs) MCP lets you query your Realtime Database quickly with rtdb_get to see live app states.
- You can automate repetitive data maintenance using rtdb_push and rtdb_put for batch updates.

## How It Works

The bottom line is the Firebase (REST & Admin APIs) MCP gives you a conversational interface for your entire Firebase backend.

1. Subscribe to the Firebase (REST & Admin APIs) MCP on Vinkius.
2. Provide your Firebase Project ID and Web API Key in the configuration.
3. Ask your AI client to query your database or manage users.

## Frequently Asked Questions

**Can I use the Firebase (REST & Admin APIs) MCP to manage my users?**
Yes, the Firebase (REST & Admin APIs) MCP lets you manage users easily. You can sign up new accounts, sign users in, and look up existing profile data through your agent.

**How does the Firebase (REST & Admin APIs) MCP handle different databases?**
The Firebase (REST & Admin APIs) MCP connects to both Firestore and Realtime Database. It provides specific tools for each so you can query or update data across your entire backend.

**Can I send push notifications with the Firebase (REST & Admin APIs) MCP?**
You can send push notifications with the Firebase (REST & Admin APIs) MCP. It uses Cloud Messaging to reach specific devices or topics based on your instructions.

**Is the Firebase (REST & Admin APIs) MCP safe for production data?**
The Firebase (REST & Admin APIs) MCP is secure because it uses your own project credentials. It interacts with your backend via official REST APIs, keeping your data protected.

**How do I connect the Firebase (REST & Admin APIs) MCP to my project?**
The Firebase (REST & Admin APIs) MCP connects to your project once you provide your keys. You just need your Firebase Project ID and Web API Key in the setup.

**Can the Firebase (REST & Admin APIs) MCP read from my Realtime Database?**
Yes, the Firebase (REST & Admin APIs) MCP can read from your Realtime Database. It can fetch data from any specific path in your JSON tree for quick status checks.

**Can I read data from a specific path in the Realtime Database?**
Yes. Use the `rtdb_get` tool and provide the database path (e.g., 'users/jack/profile'). You can also set the `shallow` parameter to true if you only want to see the keys at that level.

**How do I create a new document in a Firestore collection?**
Use the `firestore_create_doc` tool. Specify the `collectionPath` and provide the document data as a JSON string. If you don't provide a `documentId`, Firestore will generate one automatically.

**Can I check a user's profile information if I have their ID token?**
Absolutely. The `auth_lookup` tool allows you to retrieve full user profile data from Firebase Auth by providing a valid `idToken` obtained during sign-in.