# Firebase (MCP Server)

> Manage Firebase projects, Firestore, Auth, rules and deploys

- Type: MCP server
- Publisher: Google (Firebase) (official)
- Categories: Development, DevOps & Cloud
- Website: https://firebase.google.com/docs/ai-assistance/mcp-server
- Transport: stdio
- Launch command: npx -y firebase-tools@latest mcp
- Sign-in: oauth
- Listed: 2025-05-20

## About

Firebase's official MCP server, part of firebase-tools, lets AI dev tools work with Firebase projects and codebases. It covers Authentication users, Firestore and Realtime Database, security rules, Cloud Functions, Hosting and App Hosting, Crashlytics, Remote Config and Cloud Messaging with 120+ tools. It uses Firebase CLI credentials.

## Install

1. **Add the server to Codex**

   Codex CLI:

   ```bash
   codex mcp add firebase -- npx -y firebase-tools@latest mcp
   ```

   config.toml:

   ```toml
   [mcp_servers.firebase]
   command = "npx"
   args = ["-y", "firebase-tools@latest", "mcp"]
   ```

   Agents SDK:

   ```python
   from agents import Agent, Runner
   from agents.mcp import MCPServerStdio
   
   async with MCPServerStdio(
       name="Firebase",
       params={"command": "npx", "args": ["-y", "firebase-tools@latest", "mcp"]},
   ) as server:
       agent = Agent(name="Assistant", mcp_servers=[server])
       result = await Runner.run(agent, "Query the orders collection in Firestore for pending orders")
       print(result.final_output)
   ```

## Example prompts

- "Query the orders collection in Firestore for pending orders"
- "Validate my Firestore security rules"
- "Show the top Crashlytics issues for my Android app"
- "Look up the Firebase Auth user with email jane@example.com"

## Also available as

- plugin: [Firebase](https://chatgptplugins.directory/plugins/firebase.md)

## Related

- [Chrome DevTools MCP](https://chatgptplugins.directory/mcp/chrome-devtools.md): Let coding agents control and debug a live Chrome browser
- [Playwright MCP](https://chatgptplugins.directory/mcp/playwright.md): Browser automation for agents via Playwright accessibility snapshots
- [GitHub](https://chatgptplugins.directory/mcp/github.md): Manage repos, issues, pull requests and Actions from your AI agent
- [Context7](https://chatgptplugins.directory/mcp/context7.md): Pull up-to-date, version-specific library docs into your coding agent
- [Supabase](https://chatgptplugins.directory/mcp/supabase.md): Manage Supabase databases, migrations, edge functions and logs
- [Stripe](https://chatgptplugins.directory/mcp/stripe.md): Query and act on your Stripe account and search Stripe docs from any agent

---
Source: https://chatgptplugins.directory/mcp/firebase · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
