Firebase Realtime Database

Integrations

  • Provides tools for interacting with Firebase Realtime Database, enabling operations like getting filtered documents, listing collections, and adding documents to the database.

Firebase Realtime Database MCP

Overview

The inspiration for this project was taken from firebase-mcp. Unlike firebase-mcp, which uses Firestore functionalities, firebase-realtimeDB-mcp uses Firebase Realtime Database functionalities. Firebase Realtime Database MCP enables AI assistants to work directly with Firebase services.

🚀 Quick Start

Prerequisites

  • Firebase project with service account credentials
  • Node.js environment

1. Firebase Configuration

  1. Go to Firebase Console → Project Settings → Service Accounts
  2. Click "Generate new private key"
  3. Save the JSON file securely

2. Environment Variables

Required
  • SERVICE_ACCOUNT_KEY_PATH: Path to your Firebase service account key JSON
  • FIREBASE_DATABASE_URL: Firebase realtime database URL

1. Install Firebase Realtime Database MCP project locally

A. Run git clone https://github.com/ytzlax/firebase-realtimeDB-mcp.git in the terminal.
B. cd to the cloned path, and run npm i.
C. Run npm run build.

2. Install MCP Server

Add the server configuration to your MCP settings file:

  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Augment: ~/Library/Application Support/Code/User/settings.json
  • Cursor: [project root]/.cursor/mcp.json

How to use with Claude Desktop?

Follow the guide https://modelcontextprotocol.io/quickstart/user and add the following configuration:

{ "firebase-realtimeDB-mcp": { "command": "node", "args": ["/absolute/path/to/dist/index.js"], "env": { "SERVICE_ACCOUNT_KEY_PATH": "/absolute/path/to/serviceAccountKey.json", "FIREBASE_DATABASE_URL": "your-project-id.firebasestorage.app" } } }

Firebase Tools

ToolDescriptionRequired Parameters
get_documents_by_filterGet documents by filtercollectionName, field,value
list_collectionsList root collectionsNone
add_docAdd Documentjson object
-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

Firebase Realtime Database

  1. Overview
    1. 🚀 Quick Start
      1. Prerequisites
      2. 1\. Firebase Configuration
      3. 2\. Environment Variables
      4. Install Firebase Realtime Database MCP project locally
      5. Install MCP Server
      6. How to use with Claude Desktop?
      7. Firebase Tools

    Related MCP Servers

    • A
      security
      F
      license
      A
      quality
      A server providing a unified interface to interact with Firebase services, including Authentication, Firestore, and Storage.
      Last updated -
      9
      7
      TypeScript
    • A
      security
      A
      license
      A
      quality
      The Firebase MCP server provides a standardized interface to interact with Firebase services, including Firebase Authentication, Firestore, and Firebase Storage.
      Last updated -
      9
      1,506
      128
      TypeScript
      MIT License
      • Apple
    • -
      security
      A
      license
      -
      quality
      A server that helps people access and query data in databases using the Query Runner with integration of the Model Context Protocol (MCP) Python SDK. Support databases including PostgreSQL Redshift MySQL Microsoft SQL Server Google APIs Amazon Web Services (via boto3) CockroachDB SQLite
      Last updated -
      26
      Python
      GPL 3.0
      • Linux
      • Apple
    • -
      security
      A
      license
      -
      quality
      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.
      Last updated -
      48
      2
      JavaScript
      MIT License

    View all related MCP servers

    ID: 2raz51juv2