Skip to main content
Glama
Firebase MCP Server

Firebase MCP Server

by gemini-dk

Firebase MCP Server

Overview

This is a Firebase MCP (Model Context Protocol) server that provides a unified interface to interact with various Firebase services including Authentication, Firestore, and Storage.

Related MCP server: Firestore Advanced MCP

Setup

  1. Clone and build the project:

    git clone https://github.com/gemini-dk/mcp-server-firebase
    cd mcp-server-firebase
    npm install
    npm run build
  2. Get Firebase service account key:

    • Go to Firebase Console > Project Settings > Service accounts

    • Click "Generate new private key"

    • Save the JSON file to your project directory

  3. Configure mcp_settings.json:

    {
      "firebase-mcp": {
        "command": "node",
        "args": [
          "/path/to/mcp-server-firebase/dist/index.js"
        ],
        "env": {
          "SERVICE_ACCOUNT_KEY_PATH": "/path/to/serviceAccountKey.json"
        }
      }
    }

    Replace /path/to/mcp-server-firebase with the actual path where you cloned the repository. Replace /path/to/serviceAccountKey.json with the path to your service account key file.

Available APIs

Authentication

  • Get user by ID or email

Firestore

  • Add/update/delete documents

  • List collections/documents

Storage

  • List files in a directory

  • Get File metadata and Download URL

License

  • MIT License

Available Tools

9 tools
auth_get_userB

Get a user by ID or email from Firebase Authentication

Inputs: identifier (required).

firestore_add_documentC

Add a document to a Firestore collection

Inputs: collection (required), data (required).

firestore_delete_documentC

Delete a document from a Firestore collection

Inputs: collection (required), id (required).

firestore_get_documentC

Get a document from a Firestore collection

Inputs: collection (required), id (required).

firestore_list_collectionsA

List collections in Firestore. If documentPath is provided, returns subcollections under that document; otherwise returns root collections.

Inputs: documentPath, limit, pageToken.

firestore_list_documentsC

List documents from a Firestore collection with optional filtering

Inputs: collection (required), filters, limit, pageToken.

firestore_update_documentC

Update a document in a Firestore collection

Inputs: collection (required), id (required), data (required).

storage_get_file_infoC

Get file information including metadata and download URL

Inputs: filePath (required).

storage_list_filesC

List files in a given path in Firebase Storage

Inputs: directoryPath.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 9 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose with no ambiguity. The tools are organized by Firebase service (Authentication, Firestore, Storage) and specific operations within each service, making it easy to distinguish between them. For example, firestore_get_document retrieves a single document while firestore_list_documents lists multiple documents with filtering.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout, with clear service prefixes (auth_, firestore_, storage_). All tools use snake_case consistently, and the naming convention is predictable and readable across all nine tools.

    Tool Count5/5

    With 9 tools, this server is well-scoped for covering core Firebase operations across multiple services. Each tool earns its place by addressing distinct functionality without being overwhelming. The count is appropriate for the server's purpose of providing access to Firebase Authentication, Firestore, and Storage.

    Completeness4/5

    The tool surface provides excellent coverage for Firestore (full CRUD operations plus listing) and good coverage for Storage and Authentication. Minor gaps exist, such as no user creation/update/deletion in Authentication and no file upload/download in Storage, but agents can work around these limitations for many common workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      The Firebase MCP server provides a standardized interface to interact with Firebase services, including Firebase Authentication, Firestore, and Firebase Storage.
      1,817 npm
      247
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables large language models like Claude to perform comprehensive interactions with Firebase Firestore databases, supporting full CRUD operations, complex queries, and advanced features like transactions and TTL management.
      15 npm
      4
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol server that exposes Firebase Firestore and Authentication to AI agents, supporting multi-project configurations and read operations.
      5
      124 npm
      MIT