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-toolsCLI installed and authenticated (runfirebase 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.
Method 2: Service Account (Recommended)
- Go to Firebase Console > Project Settings > Service Accounts.
- Click Generate new private key.
- Save the JSON file securely (e.g.,
folder/firebase-service-account.json). - Add this file to
.gitignore.
Setup for Cursor
- Open Cursor Settings > Features > MCP.
- Click + Add New MCP Server.
- Fill in the details:
| Field | Value |
|---|---|
| Name | firebase |
| Type | command |
| Command | npx -y firebase-mcp |
- Add Environment Variables:
| Variable | Value |
|---|---|
FIREBASE_PROJECT_ID | your-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
userscollection."
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."