# firebase-mcp

Connects Firebase services to AI development tools via MCP. Helps query databases, inspect user accounts, and view runtime logs directly inside the editor.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 4481
- Author: firebase
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/firebase/firebase-tools/tree/HEAD/src/mcp
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/firebase-mcp

## What it does

This server provides development assistants with direct access to your Firebase projects using standard I/O. It queries documents in Cloud Firestore and Realtime Database. It also updates user records in Firebase Authentication. Setup stays minimal.

The tool executes commands using credentials from your local Firebase CLI configuration. If your CLI environment is not authenticated, tool calls fail immediately. You will need Node.js with npm on your machine.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add firebase-mcp -- npx -y firebase-tools
```

### Codex

**Platform CLI**
```bash
codex mcp add mcp -- npx -y firebase-tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "firebase-tools"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "firebase-tools"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mcp npx -y firebase-tools
```

## When to use it
- query and update documents in Cloud Firestore
- inspect security rules across Firestore and Storage
- retrieve runtime logs from Cloud Functions
- search and manage user profiles in Firebase Authentication

## Example prompts
- Fetch the user account details for test@example.com from Firebase Auth
- Read recent Cloud Functions logs to debug the latest errors
- List all active backends configured in App Hosting

## Similar
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872
- [Coder](https://affpapa.org/en/nevibecode/mcp/coder.md) — MCP server · ★ 17160

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
