Loading...
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"
}
}
}firestore_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.
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.