Connector guide7-minute read17 MCP tools7 languages

How to Connect Firebase to Gemini via MCP

Let your AI work with Firebase: list projects and apps, browse and query Cloud Firestore, create and update documents, look up and disable Authentication users, read Remote Config, and (switched off by default) publish Remote Config or send push notifications. Signs in with your Google account.

HCBy HelpCode teamUpdated 7 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Firebase

Firebase

Let your AI work with Firebase: list projects and apps, browse and query Cloud Firestore, create and update documents, look up and disable Authentication users, read Remote Config, and (switched off by default) publish Remote Config or send push notifications. Signs in with your Google account.

tools

17

Region

INTL

Category

Databases

Authentication

OAuth 2.0

Required env vars

GOOGLE_CLIENT_IDGOOGLE_CLIENT_SECRET
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Firebase in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Let your AI work with Firebase: list projects and apps, browse and query Cloud Firestore, create and update documents, look up and disable Authentication users, read Remote Config, and (switched off by default) publish Remote Config or send push notifications. Signs in with your Google account.

Try asking

Example prompts for Firebase

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Firebase · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Firebase, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

Firebase + Gemini

Let your AI work with Firebase: list projects and apps, browse and query Cloud Firestore, create and update documents, look up and disable Authentication users, read Remote Config, and (switched off by default) publish Remote Config or send push notifications. Signs in with your Google account.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET

Step 1 — Get credentials

  1. Open console.cloud.google.com and select the Google Cloud project of your Firebase project (it has the same project id). Creating the OAuth client there is simplest, because API calls count against the client's project and that project needs the APIs enabled.
  2. Go to APIs & Services → Library and enable the APIs you will use: Firebase Management API, Cloud Firestore API, Identity Toolkit API, Firebase Remote Config API and Firebase Cloud Messaging API.
  3. Open APIs & Services → OAuth consent screen. Choose Internal if you are on Google Workspace (the simplest option), otherwise External. For External, set the publishing status to In production: while the app is in Testing, Google revokes its refresh tokens after 7 days and the connector stops working every week.
  4. Open APIs & Services → Credentials → Create credentials → OAuth client ID, choose the application type Web application and add the authorized redirect URI https://cloud.anythingmcp.com/api/mcp-oauth/callback. If you host AnythingMCP yourself, enter https://your-anythingmcp-host/api/mcp-oauth/callback instead.
  5. Paste the client ID into GOOGLE_CLIENT_ID and the client secret into GOOGLE_CLIENT_SECRET, install the connector, then click Authorize with Provider and sign in with an account that is a member of the Firebase project.

One Google client for all Google connectors: the same Cloud project and OAuth client can serve every Google connector, from Gmail and Google Sheets to Search Console and BigQuery. Enable each API in that project, reuse the same client ID and secret, and authorize each connector once.

Scope and roles: the connector asks for https://www.googleapis.com/auth/cloud-platform, because the narrower Firebase scopes do not cover user administration and Remote Config. What the AI can do is limited by the account's roles in the project: for read-only use give it Firebase Viewer and Cloud Datastore Viewer; changes need roles such as Cloud Datastore User, Firebase Authentication Admin, Firebase Remote Config Admin and Firebase Cloud Messaging Admin.

What it does: list projects and their Android, iOS and web apps; browse Firestore collections and documents and query them with filters, ordering and a limit; create and update documents; look up and list Authentication users and disable or re-enable their sign-in; read the Remote Config template and its version history.

Changes wait for your yes: before firebase_create_document, firebase_update_document or firebase_set_user_disabled, the AI tells you exactly what will change and waits for a clear yes. Changes reach your live app at once. Firestore security rules do not apply here: the connector acts with the signed-in account's rights, like the Admin SDK.

Switched off at install: firebase_delete_document (deletes for good), firebase_publish_remote_config (replaces the live configuration of every app) and firebase_send_message (sends a real push notification to real devices). An admin turns them on one by one if needed; even then, the AI checks the change with a validation run first and publishes or sends only after your yes.

Firestore reads are billed: every document returned counts as a read on your Firebase bill, so the AI keeps pages small (20 documents by default) and asks only for the fields it needs. A filter on one field combined with ordering on another needs a composite index, and the error message links to the page that creates it. Password hashes and salts of users are never returned.

Not included: Crashlytics has no documented public REST API, so crash data is not available. Cloud Storage files, Realtime Database, Data Connect, App Check and Analytics are out of scope as well.

Common errors: 401 means the authorization expired or was revoked: click Authorize with Provider again. 403 PERMISSION_DENIED with "API has not been used in project" or SERVICE_DISABLED: enable that API in the Cloud project of the OAuth client; other 403s mean the account lacks the role. 404: a wrong project id, database id or path (a document path where a collection path is expected, or the other way round). 400 FAILED_PRECONDITION "The query requires an index": open the link in the message to create the index. 409 on publishing Remote Config: the template changed in the meantime, so the AI reads it again. 429: a quota is reached; wait and try again.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Gemini

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Gemini CLI reads MCP servers from ~/.gemini/settings.json (on Windows %USERPROFILE%\.gemini\settings.json). Add:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
      "headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
    }
  }
}
  1. Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of YOUR_MCP_API_KEY.
  2. Save the file and restart gemini.
  3. Run /mcp inside Gemini CLI (or gemini mcp list in your shell): anythingmcp should show as connected.
  4. Start prompting: Gemini CLI can now call the Firebase tools.

Available tools

ToolWhat it does
firebase_list_projectsList the Firebase projects the signed-in account can access, with projectId, display name, project number and state
firebase_get_projectGet one Firebase project: display name, project number, state and its default resources (Hosting site, Realtime Database instance, Storage…
firebase_list_appsList the apps registered in a Firebase project (Android, iOS and web) with appId, display name, platform, bundle or package namespace and…
firebase_list_collectionsList Firestore collection ids: the top-level collections of the database, or the subcollections of one document
firebase_list_documentsList the documents of a Firestore collection with their typed fields, a page at a time (default 20)
firebase_get_documentGet one Firestore document with its typed fields and create and update times
firebase_query_documentsQuery a Firestore collection with filters, ordering and a limit (structured query, read-only)
firebase_create_documentCreate a Firestore document in a collection with typed fields
firebase_update_documentUpdate fields of an existing Firestore document
firebase_delete_documentPermanently delete a Firestore document (its subcollections stay)
firebase_lookup_usersFind Firebase Authentication users by email address, uid or phone number: sign-in providers, verified email, disabled flag, creation and…
firebase_list_usersList the Firebase Authentication users of a project, a page at a time (default 100), with email, providers, disabled flag and sign-in times
firebase_set_user_disabledDisable or re-enable a Firebase Authentication user's sign-in
firebase_get_remote_configGet the current Remote Config template of a project: conditions, parameters with default and conditional values, parameter groups and…
firebase_list_remote_config_versionsList the published Remote Config versions of a project, newest first: version number, update time, who published it, how (console, REST…
firebase_publish_remote_configPublish a new Remote Config template
firebase_send_messageSend one Firebase Cloud Messaging notification or data message to a device token, a topic or a condition

Example prompts

  • "List my Firebase projects and the Android, iOS and web apps in each one."
  • "In Firestore, show me the ten most recent documents in orders with the status open."
  • "Is there a user with the email [email protected] in Firebase Authentication? When did she last sign in?"
  • "Disable sign-in for the account [email protected]. Tell me which account it is before you do it."
  • "What does our Remote Config template contain, and who published the last three versions?"

FAQ

Where does Gemini CLI look for MCP servers? In ~/.gemini/settings.json for your user, or in .gemini/settings.json inside a project. gemini mcp list shows each server and whether it connects.

Next steps

Was this guide helpful?

Your Firebase agent is one click away.

Install the connector, paste the key, prompt Gemini. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect Firebase to ChatGPT via MCP

Let your AI work with Firebase: list projects and apps, browse and query Cloud Firestore, create and update documents, look up and disable Authentication users, read Remote Config, and (switched off by default) publish Remote Config or send push notifications. Signs in with your Google account.

Connectors

How to Connect Firebase to Claude via MCP

Let your AI work with Firebase: list projects and apps, browse and query Cloud Firestore, create and update documents, look up and disable Authentication users, read Remote Config, and (switched off by default) publish Remote Config or send push notifications. Signs in with your Google account.

Connectors

How to Connect Firebase to Cursor via MCP

Let your AI work with Firebase: list projects and apps, browse and query Cloud Firestore, create and update documents, look up and disable Authentication users, read Remote Config, and (switched off by default) publish Remote Config or send push notifications. Signs in with your Google account.

Connectors

How to Connect Firebase to Meta Muse via MCP

Let your AI work with Firebase: list projects and apps, browse and query Cloud Firestore, create and update documents, look up and disable Authentication users, read Remote Config, and (switched off by default) publish Remote Config or send push notifications. Signs in with your Google account.

Connectors

Firebase to MCP: Firestore, Auth Users and Remote Config in any AI Agent

Let your AI work with Firebase: list projects and apps, browse and query Cloud Firestore, create and update documents, look up and disable Authentication users, read Remote Config, and (switched off by default) publish Remote Config or send push notifications. Signs in with your Google account.

Connectors

How to Connect Avito to Gemini via MCP

Let your AI work with your Avito business account: list your ads and change their prices, read views, contacts and calls statistics, check autoload uploads and their errors, the feed format and your wallet, and read Avito Messenger chats. Sending messages and changing autoload settings are optional and off by default.