Skip to content

MCP setupBackend and APIsfirebase

Firebase MCP Server

Run the Firebase CLI's built-in MCP server so your agent can work with Firestore, Auth, rules and hosting in your Firebase project.

npx workspacetemplates add firebase-mcp --tool claude-code

Writes 1 file to your project root

.mcp.jsonmerge into your file14 lines · 211 BFile
{
  "mcpServers": {
    "firebase": {
      "command": "npx",
      "args": [
        "-y",
        "firebase-tools@latest",
        "mcp",
        "--only",
        "firestore,auth,storage"
      ]
    }
  }
}

What it does

The Firebase CLI ships an MCP server of its own. Started with firebase-tools mcp, it gives the agent tools for projects and apps, Firestore documents and indexes, Auth users, security rules, Remote Config, Cloud Functions logs, deploys and a search over Google's developer docs.

It uses the same login as the Firebase CLI, so run firebase login first. You can narrow it to a few feature groups with the --only flag and point it at a project folder with --dir.

Example

you › In Firestore, list the 3 newest documents in orders and tell me which ones lack a customerId.

agent › orders/o_9921 and orders/o_9920 have customerId. orders/o_9919 has no customerId field, and its createdAt is from the older checkout flow.

Questions

Do I need a service account key?
No. It reuses your Firebase CLI login or Application Default Credentials, and the page documents no environment variables.
How do I limit what it can do?
The --only flag turns on just the feature groups you list. Leave out groups you do not need, and use a staging project when testing.
  • PayPal MCP Server

    MCP setupBackend and APIs

    Free
  • Postman MCP Server

    MCP setupBackend and APIs

    Free
  • Resend MCP Server

    MCP setupBackend and APIs

    Free
  • Square MCP Server

    MCP setupBackend and APIs

    Free