← Back to MCP servers

Google

Firebase MCP Server

Manage Firestore collections, query documents, and deploy Firebase rules from your AI coding assistant.

Token requiredGet credentials →

Last reviewed Mar 2, 2026

Install

claude mcp add firebase --transport stdio -- npx -y firebase-mcp-server
Scope: project

Environment variables required:

GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json

Available tools

ToolDescription
list_collectionsList all top-level Firestore collections
query_firestoreQuery documents in a Firestore collection with filters
get_documentGet a specific document by path
deploy_rulesDeploy Firestore security rules

What it does

The Firebase MCP Server connects your AI coding assistant to your Firebase project, focusing primarily on Firestore database operations. It can list collections, query documents, retrieve specific records, and help manage security rules -- providing the assistant with full context about your Firebase data layer.

This server is essential for developers building applications with Firebase. It enables the assistant to understand your data model by exploring actual Firestore collections and documents, then generate accurate client-side code for data access patterns.

Use cases

  • Explore Firestore collection structures and document schemas during development
  • Query documents to debug data issues or verify that writes are working correctly
  • Generate Firebase client code based on actual document structures and collection hierarchies
  • Review and update Firestore security rules alongside your application code
  • List collections to understand the data architecture of an existing Firebase project

Getting started

  1. Generate a Firebase Service Account key from the Firebase Console. Go to Project Settings > Service Accounts > Generate New Private Key. This downloads a JSON file.
  2. Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the absolute path of your service account JSON file.
  3. Alternatively, if you have the Google Cloud CLI installed and authenticated (gcloud auth application-default login), the server can use Application Default Credentials without a service account file.
  4. Ensure your service account has the necessary Firebase permissions. The default Firebase Admin SDK service account has full access to Firestore.