Skip to main content
Mobile Launcher
Advanced AIAvailable Servers

Firebase MCP Server

Connect your AI to Firestore, Analytics, and Remote Config

Firebase MCP Server

The Firebase MCP server connects your AI assistant to your Firebase project, giving it insight into your NoSQL data, analytics trends, and remote configuration.

Features

  • Firestore Inspection: Read collections and documents to understand your NoSQL schema.
  • Analytics Queries: Ask natural language questions about your app's performance (e.g., "How many daily active users last week?").
  • Remote Config Management: Read and propose updates to your Remote Config template.
  • Crashlytics Insights: Summarize recent crash reports and their stack traces.

Installation & Configuration

Prerequisites

  • Firebase Project Created.
  • firebase-tools CLI installed and authenticated (run firebase login).
  • A Service Account JSON key (for persistent server usage).

Method 1: Using CLI Auth (Quick Start)

If you have firebase-tools installed and are logged in, the MCP server can often reuse your local credentials.

  1. Go to Firebase Console > Project Settings > Service Accounts.
  2. Click Generate new private key.
  3. Save the JSON file securely (e.g., folder/firebase-service-account.json).
  4. Add this file to .gitignore.

Setup for Cursor

  1. Open Cursor Settings > Features > MCP.
  2. Click + Add New MCP Server.
  3. Fill in the details:
FieldValue
Namefirebase
Typecommand
Commandnpx -y firebase-mcp
  1. Add Environment Variables:
VariableValue
FIREBASE_PROJECT_IDyour-project-id
GOOGLE_APPLICATION_CREDENTIALS/absolute/path/to/firebase-service-account.json

Setup for Claude Code

Json
{
  "mcpServers": {
    "firebase": {
      "command": "npx",
      "args": ["-y", "firebase-mcp"],
      "env": {
        "FIREBASE_PROJECT_ID": "your-project-id",
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account.json"
      }
    }
  }
}

Usage Examples

1. Explore Data:

"List the collections in my Firestore root." "Show me the structure of a document in the users collection."

2. Analyze Performance:

"What was the retention rate for the cohort signing up last week?"

3. Debug Crashes:

"Summarize the top 3 most frequent crashes from the last 24 hours."