firebase-mcp
by gannonh·★ 243·Score 46
Firebase MCP server providing Firestore, Storage, and Authentication tools for AI assistants.
Overview
Firebase MCP is a well-documented Model Context Protocol server that enables AI assistants to interact directly with Firebase services. It provides comprehensive tools for Firestore document operations, file management in Firebase Storage, and user authentication. The server supports both stdio and HTTP transport, allowing flexible integration with various MCP clients like Claude Desktop, VS Code, and Cursor. The implementation includes proper error handling, debugging capabilities, and detailed API reference.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose Firebase MCP when you need AI assistants to directly interact with Firebase services, especially if you're already using Firebase in your application stack and want to eliminate the need for custom API integrations.
When NOT to choose this
Avoid this server if you don't use Firebase services or if you need more extensive database operations beyond what Firebase offers, as it's locked into Firebase's ecosystem.
Tools this server exposes
12 tools extracted from the READMEfirestore_add_documentAdd a document to a collection
firestore_list_documentsList documents with filtering
firestore_get_documentGet a specific document
firestore_update_documentUpdate an existing document
firestore_delete_documentDelete a document
firestore_list_collectionsList root collections
firestore_query_collection_groupQuery across subcollections
storage_list_filesList files in a directory
storage_get_file_infoGet file metadata and URL
storage_uploadUpload file from content
storage_upload_from_urlUpload file from URL
auth_get_userGet user by ID or email
Comparable tools
Installation
Installation
- Install the MCP server by adding it to your MCP configuration file:
For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"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"
}
}
}- Configure your Firebase project:
- Go to Firebase Console → Project Settings → Service Accounts - Generate and save a private key - Set the SERVICE_ACCOUNT_KEY_PATH environment variable
- Restart your MCP client to load the new server
FAQ
- What is the Zod validation error with firestore_list_collections?
- This is a known issue where the tool may return a validation error in client logs. Despite the error message, the query works correctly and returns proper collection data. It's a log-level error that doesn't affect functionality.
- How do I enable debugging for the MCP server?
- Set the DEBUG_LOG_FILE environment variable to 'true' to log to the default location (~/.firebase-mcp/debug.log) or specify a custom file path. You can also view logs in real-time using 'tail -f' or by capturing stderr.
Compare firebase-mcp with
Last updated · Auto-generated from public README + GitHub signals.