MCP Hub
Back to servers

Firebase MCP Server

Enables inspection and querying of Firestore data and Cloud Function logs within the Firebase Emulator environment. It provides tools to navigate collections, retrieve documents, and filter function logs using regex and other criteria.

glama
Updated
Feb 4, 2026

Firebase MCP Server

MCP server for inspecting Firebase Emulator Firestore and function logs.

Setup

npm install
npm run build

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

ToolDescription
list_collectionsList top-level Firestore collections
list_subcollectionsList subcollections of a document
list_documentsList documents in a collection
get_documentGet a single document by path
query_collectionQuery with filters, ordering, limit
get_function_logsGet 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

Reviews

No reviews yet

Sign in to write a review