# Firebase MCP server

> Enables AI development tools to manage Firebase projects, query databases, manage authentication, and debug Crashlytics issues.

- Repository: https://github.com/firebase/firebase-tools
- Page: https://hostedmcp.org/servers/firebase/firebase-mcp
- Transport: stdio
- Stars: 4488
- License: MIT
- Latest version: 0.3.0

## Install

### Claude Code

```sh
claude mcp add firebase-mcp -- npx -y firebase-tools
```

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

```json
{
  "mcpServers": {
    "firebase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "firebase-tools"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "firebase-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "firebase-tools"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"firebase-mcp","type":"stdio","command":"npx","args":["-y","firebase-tools"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "firebase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "firebase-tools"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add firebase-mcp -- npx -y firebase-tools
```

### Codex config.toml (`~/.codex/config.toml`)

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

### Gemini CLI

```sh
gemini mcp add -s user firebase-mcp npx -- -y firebase-tools
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "firebase-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "firebase-tools"
      ]
    }
  }
}
```

## FAQ

### How does the server authenticate with Firebase?

The server uses the same user credentials that authorize the Firebase CLI in the environment where it is running.

### What AI clients can I use with the Firebase MCP server?

It works with any MCP client, including Firebase Studio, Gemini CLI, Claude Code, Cline, Cursor, VS Code Copilot, and Windsurf.

### Can I use this to manage my database?

Yes, you can query, read, write, and manage documents in Cloud Firestore and Firebase SQL Connect.
