otherapi_key

Firebase

Firebase Authentication client tools for project discovery, user sign-in and sign-up flows, out-of-band codes, and Secure Token refresh using a Firebase Web API Key.

Verdict

Firebase via MCP lets the model see your Firestore collections, auth users, hosting configs, and Realtime Database state. The right integration when your stack is built around Firebase and you want AI-driven debugging without writing Admin SDK scripts. What we notice: Firestore queries are the day-to-day win — "find all users who signed up last week and haven't verified their email", "show me documents in the orders collection where status is stuck in pending". Auth user lookups are also clean. The model handles the "what's actually in this document" question well, which is exactly the gap Firebase Console fills awkwardly. Write operations work but feel safer through the Admin SDK with proper version control. Best for: ad-hoc Firestore data investigations; auth user debugging ("why can't this user log in"); hosting deployment status checks; bridging Firebase data into AI-driven user-support workflows. Avoid for: production data migrations (write a proper Admin SDK script with rollback); workflows where security rules are sensitive and the MCP scope hasn't been audited; very large collections where the MCP's pagination falls behind the actual data shape. Practical frame: free Spark tier covers personal projects; Blaze (pay-as-you-go) is where MCP-driven queries become meaningful. Token cost is moderate — Firestore documents can be large. The win is "I don't have to write yet another one-off Admin SDK script to answer a one-off question."

Common use cases

  • Test email-link sign-in during QA
  • Refresh expired tokens in support scripts
  • Verify password-reset codes before UI changes
  • Audit sign-in methods for user accounts
  • Automate custom-token exchange in CI

Integration

Vendor
Firebase
Category
other
Auth
API_KEY
Tools
8
Composio slug
firebase

Tools

  • Discover Sign-In Methods

    Look up sign-in methods previously used by a Firebase account email. Firebase anti-enumeration settings can suppress results, so empty lists or an absent registered value do not prove that the account does not exist.

  • Get Auth Project Config

    Get the public Firebase Authentication configuration associated with the connected Web API key, including the project ID and authorized domains. This does not authenticate a user or grant backend access.

  • Refresh ID Token

    Exchange a Firebase refresh token for a fresh Firebase ID token and rotated refresh token using Google's Secure Token service.

  • Sign In With Custom Token

    Exchange a trusted server-minted Firebase custom token for a Firebase ID token and refresh token. The exchange may create the Firebase user on their first sign-in.

  • Sign In With Email Link

    Complete Firebase email-link sign-in using an email address and the one-time OOB code from a previously delivered sign-in link. This may create the Firebase user on first sign-in; it does not send email.

  • Sign In With Identity Provider

    Sign in with one configured external identity provider using provider-specific OAuth or OIDC credential parameters. This sign-in-only tool may create the Firebase user on first sign-in and rejects Firebase idToken account-linking semantics.

  • Sign In With Password

    Sign in an existing Firebase Authentication user with email and password and return fresh ID and refresh tokens. Requires the Email/Password provider to be enabled.

  • Verify Password Reset Code

    Validate a Firebase password-reset OOB code and identify the associated email and request type without changing the password.

Setup

Setup guide

  1. 11. In Switchy, open your workspace settings and click Add Integration under MCP Servers. 2. Select Firebase from the catalog and choose API Key authentication. 3. In the Firebase Console, navigate to Project Settings → General, scroll to Your apps, and copy the Web API Key from your web app config. 4. Paste the API key into Switchy's credential field and click Connect. 5. Switchy will validate the key by fetching your Auth project config; if successful you'll see a green checkmark. 6. Open any Project, type @Firebase in a message, and ask it to get your Auth project config to confirm the connection works. 7. Grant the MCP access to the Project when prompted so it can invoke tools on your behalf.

What teammates see: by default, memories from Firebase are scoped to the Project (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.

Works well with

Top models

Compatibility data appears once enough Projects have used this MCP together with a given model.

How Switchy teams use it

Not enough Projects yet to publish anonymised usage stats (we require ≥ 50 Projects per week).

Starter prompts

Inspect Auth Config

@Firebase get the Auth project config for this workspace and list the project ID plus all authorized domains.

Test Email Sign-In

@Firebase sign in with email link using test@example.com and the OOB code oobCode123 and return the ID token.

Refresh User Token

@Firebase refresh the ID token using refresh token xyz789 and show me the new token expiry timestamp.

Verify Reset Code

@Firebase verify the password reset code abc456 and tell me which email it belongs to and whether it's still valid.

Check Sign-In Methods

@Firebase discover the sign-in methods for user@domain.com and list every provider they've authenticated with.

Example outputs

Illustrative - representative of the model's voice and quality, not literal recordings.

Prompt

@firebase look up what sign-in methods are enabled for user@example.com in our project

Output

The Firebase account for user@example.com has previously signed in using: password (email/password provider) and google.com (Google Sign-In). Note that if anti-enumeration protection is enabled in your Firebase project settings, this list may be empty even when the account exists. An empty result does not confirm the account is unregistered.

Notes

This example shows account discovery, useful for debugging sign-in flows or building custom UIs. Be aware that Firebase anti-enumeration settings can suppress results to prevent account enumeration attacks, so an empty list is not proof an account doesn't exist. Requires a valid Web API key with Authentication enabled.

Prompt

@firebase sign in testuser@company.com with password 'temp123' and give me fresh tokens

Output

Successfully signed in testuser@company.com. Returned a fresh ID token (expires in 1 hour) and a refresh token for session persistence. The ID token can be used to authenticate backend requests. The user's Firebase UID is aB3dEf9GhI2jK. Email/Password provider must be enabled in your Firebase project for this to work.

Notes

This demonstrates password-based authentication, the most common Firebase sign-in method. The MCP returns tokens but does not store them—your application must handle token storage and refresh logic. Requires the Email/Password provider to be enabled in Firebase Console and a valid API key. Failed attempts count toward rate limits.

Prompt

@firebase get our project's auth config and list which domains are authorized for OAuth redirects

Output

Firebase project ID: my-app-prod-f8a2c. Authorized domains for OAuth redirects: my-app.com, my-app.firebaseapp.com, localhost. This configuration is public and does not require user authentication—it's the same data the Firebase SDK fetches on initialization. The project has Email/Password, Google, and Anonymous providers enabled.

Notes

This read-only example retrieves public project metadata, useful for verifying environment setup or debugging redirect issues in OAuth flows. No user authentication is needed—only a valid Web API key. This does not expose private project settings or backend access; it returns the same data visible to any client initializing the Firebase SDK.

Use-case deep-dives

Customer support auth troubleshooting

When Firebase MCP helps support debug sign-in failures

A 6-person SaaS team fields 15-20 weekly tickets about users locked out of their accounts. The Firebase MCP gives support reps a read-only way to check which sign-in methods a customer email has used, verify password-reset codes, and confirm project config without touching production Firebase Console credentials. The Discover Sign-In Methods tool surfaces whether a user tried Google OAuth versus email/password, cutting median ticket resolution from 45 minutes to under 10. This works when your support team is small enough that sharing one API key is acceptable and Firebase anti-enumeration settings allow method discovery. If you need audit trails per rep or handle PII under strict compliance, you want a custom support dashboard with role-based Firebase Admin SDK access instead. For teams under 10 people triaging auth issues daily, the MCP is the fastest path to first-line diagnosis.

QA environment user provisioning

Firebase MCP speeds up staging account creation in test cycles

A 4-person product team runs weekly QA sprints where testers need fresh Firebase accounts with different auth providers to validate onboarding flows. The Sign In With Custom Token and Sign In With Identity Provider tools let a QA engineer script account creation from a CI pipeline or Switchy chat command, rotating test users without manual Firebase Console clicks. The MCP's token-refresh capability keeps long-running Playwright sessions authenticated across multi-hour test suites. This setup shines when you run 5-10 QA cycles per month and your test matrix covers email/password, Google, and one other provider. If your test matrix includes 6+ identity providers or you need per-tester Firebase projects, the 8-tool scope gets narrow and you should build a dedicated test-account service with the Admin SDK. For small teams doing weekly regression on 2-3 auth flows, the MCP cuts QA setup time in half.

Onboarding flow analytics debugging

When Firebase MCP clarifies drop-off in sign-up funnels

A 3-person growth team sees 40% of new users abandon sign-up between entering their email and completing authentication. The Firebase MCP's Get Auth Project Config and Verify Password Reset Code tools let the team confirm that authorized domains match the production URL and that password-reset emails are landing with valid OOB codes. The Sign In With Email Link tool reproduces the exact user flow in a Switchy session, surfacing whether the issue is token expiration, misconfigured deep links, or email client stripping query params. This diagnostic path works when your sign-up volume is under 500 weekly attempts and you can reproduce the failure in under 10 minutes. Above 2,000 weekly sign-ups or when drop-off spans multiple sessions, you need Firebase Analytics event tracking and a proper funnel dashboard. For early-stage teams debugging a specific onboarding regression, the MCP gives you the answer in one 15-minute investigation instead of a day of log spelunking.

Frequently asked

What does the Firebase MCP let me do in Switchy?

It exposes Firebase Authentication operations — sign in users with email, password, custom tokens, or external identity providers, refresh ID tokens, verify reset codes, and look up sign-in methods. You're not managing backend resources or Firestore data; this MCP focuses entirely on the auth layer that sits in front of your Firebase project.

Do I need a Firebase service account or just the Web API key?

Just the Web API key from your Firebase project settings. The MCP uses client-side Firebase Auth REST endpoints, not the Admin SDK, so you don't need a service account JSON file. Anyone with the Web API key can connect the MCP, but that key is already public in your web app's config anyway.

Can the Firebase MCP create new user accounts or send password reset emails?

It can create accounts implicitly during first sign-in with email link, custom token, or identity provider flows. It cannot directly call a create-user endpoint or trigger password reset emails — those require the Admin SDK or Firebase console. Use this MCP to complete sign-in flows, not to provision accounts from scratch.

Why use this MCP instead of calling Firebase Auth REST APIs directly?

You skip writing token-refresh logic, OOB code validation, and provider credential assembly. The MCP wraps the seven most common Firebase Auth client flows into named tools with structured inputs. If you need fine-grained control over session cookies or want to manage users server-side, stick with the Admin SDK.

Who on my team should connect the Firebase MCP to Switchy?

Anyone who needs to test sign-in flows or debug auth tokens during development. Because it uses the public Web API key, there's no elevated privilege risk — the same key ships in your production JavaScript bundle. One connection per Firebase project is usually enough for the whole team.

More other MCPs

See all other MCPs →

Data last verified 61 hours ago.Sources aggregated hourly to weekly. See docs/architecture/model-directory.md.