# Firebase MCP

> Firebase MCP is an open-source MCP server for databases. Query and edit Firestore documents and look up Firebase Auth users from your agent. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** vscode, CLI, self-hosted
- **Website:** https://renzojohnson.com/contributions/firebase-mcp
- **MCP Registry name:** com.renzojohnson/firebase-mcp
- **Categories:** databases, developer tools
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
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
```

### Claude Desktop (claude_desktop_config.json)

```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>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```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>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```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>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```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>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```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>"
      }
    }
  }
}
```

## Tools

- `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.

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/firebase-mcp
