Skip to main content
Glama
NigelThorne

Firebase MCP Server

by NigelThorne

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

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

-
security - not tested
F
license - not found
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NigelThorne/firebase_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server