Skip to main content
Glama
Firebase MCP Server

Firebase MCP Server

by NigelThorne

Firebase MCP Server

MCP server for inspecting Firebase Emulator Firestore and function logs.

Setup

npm install
npm run build

Related MCP server: Firestore MCP Server

Config

Copy .env.example to .env and adjust:

FIRESTORE_EMULATOR_HOST=localhost:8080
FIREBASE_PROJECT_ID=demo-project
FIREBASE_EMULATOR_HUB=localhost:4000

Usage with Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "firebase": {
      "command": "node",
      "args": ["/path/to/firebase_mcp_server/dist/index.js"],
      "env": {
        "FIRESTORE_EMULATOR_HOST": "localhost:8080",
        "FIREBASE_PROJECT_ID": "your-project-id",
        "FIREBASE_EMULATOR_HUB": "localhost:4000"
      }
    }
  }
}

Tools

Tool

Description

list_collections

List top-level Firestore collections

list_subcollections

List subcollections of a document

list_documents

List documents in a collection

get_document

Get a single document by path

query_collection

Query with filters, ordering, limit

get_function_logs

Get function logs with grep-style filtering

get_function_logs options

  • pattern - Regex to filter log messages

  • level - DEBUG/INFO/WARN/ERROR

  • functionName - Filter by function name

  • limit - Max entries (default 50)

  • since - ISO timestamp cutoff

Available Tools

9 tools
get_auth_tokenA

Get an ID token for a user in the Auth emulator. Lists users if no uid provided.

Inputs: uid.

get_documentC

Get a single document by path

Inputs: documentPath (required).

get_environmentB

Get information about the current Firebase environment

Inputs: no named parameters.

get_function_logsA

Get Firebase function logs. Returns 20 lines by default - use filters (pattern, level, functionName) to narrow results before increasing limit.

Inputs: pattern, level, functionName, limit, +1 more.

list_collectionsB

List top-level collections in Firestore

Inputs: no named parameters.

list_documentsC

List documents in a collection with optional limit

Inputs: collectionPath (required), limit.

list_functionsB

List all Cloud Functions registered in the emulator

Inputs: no named parameters.

list_subcollectionsC

List subcollections of a document

Inputs: documentPath (required).

query_collectionC

Query a collection with filters

Inputs: collectionPath (required), filters, orderBy, orderDirection, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 9 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting different Firebase services (Auth, Firestore, Functions, Environment). However, 'list_documents' and 'query_collection' could cause some confusion as both operate on collections, though descriptions clarify that one lists while the other filters.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (e.g., get_auth_token, list_collections, query_collection). The naming is uniform across all 9 tools with no deviations in style or structure.

    Tool Count5/5

    With 9 tools, this is well-scoped for a Firebase server covering Auth, Firestore, Functions, and environment management. Each tool appears purposeful and earns its place without feeling excessive or sparse.

    Completeness3/5

    The server covers read operations well (get, list, query) but lacks write operations (create, update, delete) for Firestore documents or Auth users, which are core to Firebase workflows. This creates notable gaps that agents may struggle with for full CRUD functionality.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents and LLMs to securely interact with Firestore databases through complete CRUD operations (get, set, add, delete, query) while respecting Firestore Security Rules via the Firebase Client SDK.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with Firebase Firestore databases through full CRUD operations, collection management, and advanced query support. It features automatic type conversion for Firestore-specific data and tools for counting or filtering documents.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables querying and management of live Firebase projects, providing access to Firestore collections and documents. It also allows users to retrieve and filter Cloud Function logs directly through the Model Context Protocol.
      MIT