Firebase
The Firebase MCP server provides a standardized interface to interact with Firebase services, including Firebase Authentication, Firestore, and Firebase Storage.
What is Firebase?
Firebase is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to firebase mcp server provides a standardized interface to interact with firebase services, including firebase authentication, firestore, and firebase storage.
The Firebase MCP server provides a standardized interface to interact with Firebase services, including Firebase Authentication, Firestore, and Firebase Storage.
This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- The Firebase MCP server provides a standardized interface to
Use Cases
Maintainer
Works with
Installation
NPM
npx -y @gannonh/firebase-mcpManual Installation
npx -y @gannonh/firebase-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Firebase
Firebase MCP provides a standardized Model Context Protocol interface to Firebase services including Firestore, Firebase Storage, and Firebase Authentication, letting AI assistants read, write, query, and manage cloud data through natural language. It connects to your Firebase project using a service account key, exposing granular document operations, file management, and user lookup as MCP tools. Backend developers and AI application builders use it to automate data migrations, prototype backend logic, and query production Firestore collections directly from their AI client.
Prerequisites
- Node.js 18 or later installed
- A Firebase project with Firestore and/or Storage enabled
- A Firebase service account JSON key downloaded from the Firebase Console (Project Settings > Service Accounts)
- npx available on your PATH
- An MCP-compatible client such as Claude Desktop, Cursor, or VS Code
Create a Firebase service account key
In the Firebase Console, navigate to Project Settings > Service Accounts, then click 'Generate new private key'. Save the downloaded JSON file to a secure location on your machine.
Note your Firebase Storage bucket name
If you plan to use Storage tools, find your default bucket name in the Firebase Console under Storage. It typically follows the pattern 'your-project-id.firebasestorage.app'.
Add Firebase MCP to your Claude Desktop config
Edit your claude_desktop_config.json file, setting SERVICE_ACCOUNT_KEY_PATH to the absolute path of the JSON key file you downloaded.
{
"mcpServers": {
"firebase-mcp": {
"command": "npx",
"args": ["-y", "@gannonh/firebase-mcp"],
"env": {
"SERVICE_ACCOUNT_KEY_PATH": "/absolute/path/to/serviceAccountKey.json",
"FIREBASE_STORAGE_BUCKET": "your-project-id.firebasestorage.app"
}
}
}
}Restart Claude Desktop
Fully quit and relaunch Claude Desktop so it starts the Firebase MCP process with the new environment variables.
Verify the connection with a simple query
Ask your AI client to list all collections in your Firestore database or retrieve a known document to confirm the server is connected and authenticated.
Firebase Examples
Client configuration
Claude Desktop configuration for Firebase MCP with service account authentication and Storage bucket configured.
{
"mcpServers": {
"firebase-mcp": {
"command": "npx",
"args": ["-y", "@gannonh/firebase-mcp"],
"env": {
"SERVICE_ACCOUNT_KEY_PATH": "/Users/you/secrets/serviceAccountKey.json",
"FIREBASE_STORAGE_BUCKET": "my-project.firebasestorage.app"
}
}
}
}Prompts to try
Example prompts that use the Firestore, Storage, and Authentication tools exposed by Firebase MCP.
- "List all collections in my Firestore database"
- "Get all documents from the 'users' collection where status is 'active'"
- "Add a new document to the 'orders' collection with fields: product='Widget', qty=5, status='pending'"
- "List all files in my Firebase Storage bucket under the 'uploads/' prefix"
- "Look up the Firebase user with email [email protected] and show their UID and creation date"Troubleshooting Firebase
Authentication error: 'Error loading credentials from file'
Verify that SERVICE_ACCOUNT_KEY_PATH is an absolute path (not ~/relative) and that the file exists and is readable. On macOS/Linux, check permissions with 'ls -la /path/to/serviceAccountKey.json'.
Firestore queries return empty results when data exists
Confirm the service account has the correct IAM roles in Google Cloud Console — it needs at minimum 'Cloud Datastore User' for Firestore and 'Storage Object Viewer' for Storage. Add roles in IAM & Admin.
FIREBASE_STORAGE_BUCKET causes 'bucket not found' error
The bucket name must match exactly what appears in the Firebase Console under Storage, typically 'project-id.firebasestorage.app' or the legacy 'project-id.appspot.com' format. Copy it directly from the console.
Frequently Asked Questions about Firebase
What is Firebase?
Firebase is a Model Context Protocol (MCP) server that firebase mcp server provides a standardized interface to interact with firebase services, including firebase authentication, firestore, and firebase storage. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Firebase?
Install via npm with the command: npx -y @gannonh/firebase-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with Firebase?
Firebase works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Firebase free to use?
Yes, Firebase is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Firebase Alternatives — Similar Cloud Services Servers
Looking for alternatives to Firebase? Here are other popular cloud services servers you can use with Claude, Cursor, and VS Code.
Open WebUI
★ 138.2kUser-friendly AI Interface (Supports Ollama, OpenAI API, ...)
Anything LLM
★ 60.4kThe all-in-one AI productivity accelerator. On device and privacy first with no annoying setup or configuration.
LocalAI
★ 46.4kLocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.
Nacos
★ 33.0kan easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.
Xiaozhi ESP32
★ 26.7k本项目为xiaozhi-esp32提供后端服务,帮助您快速搭建ESP32设备控制服务器。Backend service for xiaozhi-esp32, helps you quickly build an ESP32 device control server.
Gateway
★ 11.8kA blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API.
Browse More Cloud Services MCP Servers
Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Firebase in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Firebase?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.