
How to add Firebase MCP to Claude Desktop
Let AI assistants work directly with Firebase Firestore, Storage, and Authentication. Paste the config into ~/Library/Application Support/Claude/claude_desktop_config.json and restart Claude Desktop.
Last updated June 14, 2026 ยท 245โ ยท stdio ยท apikey
Claude Desktop config for Firebase MCP
npx -y @gannonh/firebase-mcp{
"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"
}
}
}
}Setup steps
- 1Open Claude Desktop โ Settings โ Developer โ Edit Config (this opens ~/Library/Application Support/Claude/claude_desktop_config.json).
- 2Paste the Firebase MCP config below under the top-level "mcpServers" key.
- 3Fill in any placeholder secrets (API keys, paths) in the snippet.
- 4Save the file, then fully quit and reopen Claude Desktop.
- 5Open a chat and confirm Firebase MCP's tools appear under the ๐ tools menu.
Before you start
- Firebase project with service account credentials
- Node.js environment
- FIREBASE_STORAGE_BUCKET (optional; defaults to [projectId].appspot.com)
What Firebase MCP can do in Claude Desktop
firestore_add_documentAdd a document to a collection. Required parameters: collection, data.
firestore_list_documentsList documents with filtering. Required parameter: collection.
firestore_get_documentGet a specific document. Required parameters: collection, id.
firestore_update_documentUpdate an existing document. Required parameters: collection, id, data.
firestore_delete_documentDelete a document. Required parameters: collection, id.
firestore_list_collectionsList root collections. No required parameters.
firestore_query_collection_groupQuery across subcollections. Required parameter: collectionId.
storage_list_filesList files in a directory. No required parameters (optional: directoryPath).
Security
Requires a Firebase service account key JSON file (set via SERVICE_ACCOUNT_KEY_PATH). The service account grants administrative access to your Firebase project via the Admin SDK โ store the key securely and grant it only the permissions needed for the Firebase services you intend to use.
Firebase MCP + Claude Desktop FAQ
Where is the Claude Desktop config file?
Claude Desktop reads MCP servers from ~/Library/Application Support/Claude/claude_desktop_config.json. Paste the Firebase MCP config there under the "mcpServers" key and restart the client.
Is Firebase MCP safe to use with Claude Desktop?
Requires a Firebase service account key JSON file (set via SERVICE_ACCOUNT_KEY_PATH). The service account grants administrative access to your Firebase project via the Admin SDK โ store the key securely and grant it only the permissions needed for the Firebase services you intend to use.
How do I install and configure it?
Add the server config to your MCP client settings (e.g. Claude Desktop, Cursor, VS Code/Augment). The recommended approach uses npx: set command to "npx" with args ["-y", "@gannonh/firebase-mcp"] and provide SERVICE_ACCOUNT_KEY_PATH (and optionally FIREBASE_STORAGE_BUCKET) as env vars. You can also run a local build with node pointing at dist/index.js.
What credentials does it need?
A Firebase service account key JSON file. Generate one in Firebase Console โ Project Settings โ Service Accounts โ Generate new private key, then set SERVICE_ACCOUNT_KEY_PATH to its absolute path.
Does it support HTTP transport?
Yes. Set MCP_TRANSPORT=http (with optional MCP_HTTP_PORT, MCP_HTTP_HOST, MCP_HTTP_PATH) to run as a standalone HTTP service. Clients then connect via a url such as http://localhost:3000/mcp. HTTP transport supports session management for multiple concurrent clients.