databasescloud-infrastructure

Firebase Realtime Database

by ytzlax

Use Firebase as database for real-time data management. Integrate with database on Firebase to securely query, list, and

Integrates with Firebase Realtime Database using Admin SDK authentication to enable querying documents by field filters, listing collections, and adding new documents for real-time data management workflows.

github stars

1

Real-time data synchronizationUses Firebase Admin SDK authentication

best for

  • / Mobile app developers using Firebase
  • / Real-time chat and messaging systems
  • / Live data dashboard management
  • / IoT data collection workflows

capabilities

  • / Query documents with field filters
  • / List database collections
  • / Add new documents to database
  • / Access real-time data synchronization
  • / Authenticate using Firebase Admin SDK

what it does

Connects to Firebase Realtime Database through Admin SDK to query, filter, and manage real-time data directly from AI assistants.

about

Firebase Realtime Database is a community-built MCP server published by ytzlax that provides AI assistants with tools and capabilities via the Model Context Protocol. Use Firebase as database for real-time data management. Integrate with database on Firebase to securely query, list, and It is categorized under databases, cloud infrastructure.

how to install

You can install Firebase Realtime Database in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Firebase Realtime Database is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

Firebase Realtime Database MCP

<a href="https://glama.ai/mcp/servers/@ytzlax/firebase-realtimeDB-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@ytzlax/firebase-realtimeDB-mcp/badge" /> </a>

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