Skip to content
MCP server

Firebase MCP

Query and edit Firestore documents and look up Firebase Auth users from your agent

Runs locallyStatus and history
Pricing
Open source
Platforms
vscode, CLI, self-hosted
Runs
Locally
Version
26.11.14
Listing updated
2 days ago

About Firebase MCP

Firebase MCP is an open-source MCP server for databases. It runs locally on your machine and is started by your AI client.

The server covers two Firebase products only: Cloud Firestore and Firebase Authentication. Four Firestore tools list collections, read a document, run filtered queries (up to 200 documents) and count documents without reading them; two Auth tools look up a user by UID, email or phone and list users up to 1,000 per page.

Writes live in a firebase_admin tool: create, set, update and delete documents, and create, update, disable and delete users. set_document, delete_document and delete_user require confirm: true.

The author warns that Firestore reads are billed by Google per document, that it reads production data if pointed at it, and that Realtime Database, Storage, Functions and Hosting are excluded. A service-account key with Cloud Datastore Viewer and Firebase Authentication Viewer roles is the suggested sign-in. It is independent of Google's official Firebase MCP server and runs locally via a VS Code extension or npm.

Install

Run in a terminal

claude mcp add firebase-mcp --env GOOGLE_OAUTH_CLIENT_SECRET='<GOOGLE_OAUTH_CLIENT_SECRET>' --env GOOGLE_OAUTH_REFRESH_TOKEN='<GOOGLE_OAUTH_REFRESH_TOKEN>' -- npx -y @renzo.johnson/firebase-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "firebase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@renzo.johnson/firebase-mcp"
      ],
      "env": {
        "GOOGLE_OAUTH_CLIENT_SECRET": "<GOOGLE_OAUTH_CLIENT_SECRET>",
        "GOOGLE_OAUTH_REFRESH_TOKEN": "<GOOGLE_OAUTH_REFRESH_TOKEN>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "firebase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@renzo.johnson/firebase-mcp"
      ],
      "env": {
        "GOOGLE_OAUTH_CLIENT_SECRET": "<GOOGLE_OAUTH_CLIENT_SECRET>",
        "GOOGLE_OAUTH_REFRESH_TOKEN": "<GOOGLE_OAUTH_REFRESH_TOKEN>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "firebase-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@renzo.johnson/firebase-mcp"
      ],
      "env": {
        "GOOGLE_OAUTH_CLIENT_SECRET": "<GOOGLE_OAUTH_CLIENT_SECRET>",
        "GOOGLE_OAUTH_REFRESH_TOKEN": "<GOOGLE_OAUTH_REFRESH_TOKEN>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "firebase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@renzo.johnson/firebase-mcp"
      ],
      "env": {
        "GOOGLE_OAUTH_CLIENT_SECRET": "<GOOGLE_OAUTH_CLIENT_SECRET>",
        "GOOGLE_OAUTH_REFRESH_TOKEN": "<GOOGLE_OAUTH_REFRESH_TOKEN>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "firebase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@renzo.johnson/firebase-mcp"
      ],
      "env": {
        "GOOGLE_OAUTH_CLIENT_SECRET": "<GOOGLE_OAUTH_CLIENT_SECRET>",
        "GOOGLE_OAUTH_REFRESH_TOKEN": "<GOOGLE_OAUTH_REFRESH_TOKEN>"
      }
    }
  }
}

Configuration

  • GOOGLE_APPLICATION_CREDENTIALSPath to a service account key or authorized_user JSON file. Optional if you use gcloud Application Default Credentials or the OAuth variables.
  • GOOGLE_OAUTH_CLIENT_IDOAuth client ID. Set together with the client secret and refresh token.
  • GOOGLE_OAUTH_CLIENT_SECRETOAuth client secret.
  • GOOGLE_OAUTH_REFRESH_TOKENOAuth refresh token with the Firebase scopes.
  • FIREBASE_MCP_PROJECT_IDFirebase project ID used when a request does not name one.

Tools this server provides (7)

Taken from the project documentation; the running server may differ.

firestore_list_collections
List top-level collections or subcollections of a document.
firestore_get_document
Read one document by path.
firestore_query
Query a collection with filters, ordering and a limit.
firestore_count
Count documents without reading them.
auth_get_user
Look up an Authentication user by UID, email or phone.
auth_list_users
List Authentication users with paging.
firebase_admin
Create, set, update and delete documents; create, update, disable and delete users.

What it does

Firestore queries
Filters, ordering and limits up to 200 documents.
Cheap counts
Counts documents without reading each one.
Auth lookups
Finds users by UID, email or phone.
Document writes
Create, set, update and delete documents.
User management
Create, update, disable and delete users.
Confirmation gates
Overwrites and deletes need confirm: true.

Good for

  • Debug a bug report by reading the user's document
  • Check how many documents still have the old shape after a migration
  • Sample documents before writing a security rule
  • Look up an Auth user by email
  • Create a test user in staging

Pricing

Open source

Free, MIT-licensed; Google API charges are separate

Prices change. Check renzojohnson.com before you buy.

Firebase MCP FAQ

Does it cover the Realtime Database?

No, only Firestore and Authentication.

What roles does a service account need?

Cloud Datastore Viewer and Firebase Authentication Viewer for read access.

Will it touch production?

Yes if you point it there; the author suggests a staging project.

How are reads charged?

Google bills Firestore reads per document; use counts and limits.

Is Firebase MCP free?

Yes. Firebase MCP is open source, so you can use and self-host it for free.

How do I add Firebase MCP to Claude Code?

Run this command in your terminal: claude mcp add firebase-mcp --env GOOGLE_OAUTH_CLIENT_SECRET='<GOOGLE_OAUTH_CLIENT_SECRET>' --env GOOGLE_OAUTH_REFRESH_TOKEN='<GOOGLE_OAUTH_REFRESH_TOKEN>' -- npx -y @renzo.johnson/firebase-mcp

What are the best alternatives to Firebase MCP?

The closest alternatives to Firebase MCP are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to Firebase MCP

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools