MCP Hub
Back to servers

Firebase Live MCP Server

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.

Updated
Feb 5, 2026

Firebase Live MCP Server

MCP server for querying live Firebase projects - Firestore and Cloud Function logs.

Setup

npm install
npm run build

Authentication

Uses Application Default Credentials. Run:

gcloud auth application-default login

Project Detection

The server auto-detects the Firebase project from .firebaserc in the current working directory.

Override with env var:

FIREBASE_PROJECT_ID=my-project

Usage with Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "firebase-live": {
      "command": "node",
      "args": ["/Users/nigelthorne/code/firebase_live_mcp_server/dist/index.js"],
      "cwd": "/path/to/your/firebase/project",
      "env": {
        "FIREBASE_PROJECT_ID": "optional-override"
      }
    }
  }
}

The cwd should point to a directory with .firebaserc for auto-detection.

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 Cloud Function logs with grep filtering

get_function_logs options

  • pattern - Regex to filter log messages
  • severity - Minimum level: DEBUG/INFO/NOTICE/WARNING/ERROR/CRITICAL
  • functionName - Filter by function name
  • limit - Max entries (default 50)
  • hoursAgo - Fetch logs from last N hours (default 1)

Required Permissions

Your gcloud account needs:

  • roles/datastore.viewer - Firestore read access
  • roles/logging.viewer - Cloud Logging read access

Reviews

No reviews yet

Sign in to write a review