Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-server-firebase

MCP.Pizza Chef: gemini-dk

The mcp-server-firebase is a Model Context Protocol server that provides a unified interface to interact with Firebase services such as Authentication, Firestore, and Storage. It enables seamless integration of Firebase backend capabilities into MCP-enabled applications, allowing real-time data access, user authentication management, and file storage operations through a standardized protocol. This server simplifies connecting Firebase with LLM-powered workflows and tools.

Use This MCP server To

Manage user authentication states via Firebase in real time Access and query Firestore databases through MCP Upload and retrieve files from Firebase Storage Integrate Firebase backend services into AI workflows Synchronize app data with Firestore for live updates Automate Firebase data retrieval for analytics or reporting Enable secure, scoped access to Firebase resources via MCP

README

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.

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

mcp-server-firebase FAQ

How do I configure the Firebase service account for this MCP server?
Generate a private key from Firebase Console under Project Settings > Service accounts, then set the SERVICE_ACCOUNT_KEY_PATH environment variable to the key's JSON file path.
Can this MCP server handle multiple Firebase services simultaneously?
Yes, it supports Authentication, Firestore, and Storage services through a unified interface.
What environment setup is required to run mcp-server-firebase?
You need Node.js installed, clone the repo, install dependencies with npm, build the project, and configure the service account key path in mcp_settings.json.
Is this MCP server compatible with different LLM providers?
Yes, it is provider-agnostic and works with OpenAI, Anthropic Claude, and Google Gemini models.
How does this server ensure secure access to Firebase resources?
It uses Firebase service account credentials and scopes access through MCP protocol to maintain security and observability.
Can I extend this MCP server to support additional Firebase features?
Yes, the server is open source and modular, allowing developers to add support for more Firebase APIs as needed.
Does this server support real-time updates from Firestore?
Yes, it can listen to Firestore changes and provide real-time context updates to connected MCP clients.