Loading...

Firebase MCP enables AI assistants to interact with Firebase services like Firestore, Storage, and Authentication, offering read/write capabilities with service account credentials.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
Firebase MCP enables AI assistants to interact with Firebase services like Firestore, Storage, and Authentication, offering read/write capabilities with service account credentials.
Firebase MCP offers powerful tools for interacting with Firebase services, but its safety depends heavily on the secure management of the service account key. It is safe when used in controlled environments with well-defined access policies, but risky if the service account key is exposed or used without proper authorization controls.
Performance depends on the size of the data being transferred and the complexity of the Firestore queries. Consider optimizing queries and using pagination for large datasets.
Firebase usage is billed based on storage, data transfer, and the number of operations performed. Monitor your Firebase usage to avoid unexpected costs.
npm install -g firebase-tools{
"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"
}
}
}MCP_TRANSPORTMCP_HTTP_PORTfirestore_add_documentAdds a new document to a specified Firestore collection.
Adds data to Firestore, potentially altering the database state.
firestore_list_documentsLists documents within a Firestore collection, with potential filtering.
Read-only operation; retrieves data without modification.
firestore_get_documentRetrieves a specific document from a Firestore collection by its ID.
Read-only operation; retrieves data without modification.
firestore_update_documentUpdates an existing document in a Firestore collection.
Modifies existing data in Firestore, potentially causing data inconsistencies.
firestore_delete_documentDeletes a document from a Firestore collection.
Irreversibly removes data from Firestore.
firestore_list_collectionsLists all root collections in the Firestore database.
Read-only operation; retrieves a list of collection names.
firestore_query_collection_groupQueries across all subcollections with the same ID.
Read-only operation; retrieves data without modification.
storage_list_filesLists files within a specified directory in Firebase Storage.
Read-only operation; retrieves a list of files.
storage_get_file_infoRetrieves metadata and a download URL for a specific file in Firebase Storage.
Read-only operation; retrieves file information.
storage_uploadUploads a file to Firebase Storage from provided content.
Adds a new file to storage, potentially consuming resources.
storage_upload_from_urlUploads a file to Firebase Storage from a given URL.
Adds a new file to storage, potentially consuming resources and network bandwidth.
auth_get_userRetrieves user information from Firebase Authentication by ID or email.
Read-only operation; retrieves user data without modification.
Environment Variable
hybrid
Firebase MCP offers powerful tools for interacting with Firebase services, but its safety depends heavily on the secure management of the service account key. It is safe when used in controlled environments with well-defined access policies, but risky if the service account key is exposed or used without proper authorization controls.
Autonomy is highly dependent on the configuration of the service account and the permissions granted to it. Exercise caution when granting broad permissions.
Production Tip
Monitor the Firebase console for usage and performance metrics to optimize costs and ensure service availability.
You can access Firestore, Storage, and Authentication.
Store the key in a secure location, restrict access to it, and rotate it regularly.
Grant the service account only the minimum necessary permissions to perform its tasks.
Set the `DEBUG_LOG_FILE` environment variable to `true` or a custom file path.
It's an erroneous log-level error in the MCP SDK that doesn't affect functionality; the query still works correctly.
Yes, the HTTP transport supports session management for multiple clients.
Follow the URL provided in the error message to create the necessary index in the Firebase Console.