MCP ExplorerExplorer

Firebase Realtimedb Mcp

@ytzlaxon 9 months ago
1 MIT
FreeCommunity
AI Systems
firebase-realtimeDB-mcp enables AI assistants to use Firebase Realtime Database.

Overview

What is Firebase Realtimedb Mcp

firebase-realtimeDB-mcp is a project that enables AI assistants to interact directly with Firebase services using the Firebase Realtime Database functionalities, as opposed to Firestore functionalities used in firebase-mcp.

Use cases

Use cases include building chatbots that fetch user data from Firebase, applications that require real-time collaboration features, and AI assistants that need to provide dynamic content based on Firebase data.

How to use

To use firebase-realtimeDB-mcp, set up your Firebase project and service account, configure the environment variables, and add the server configuration to your MCP settings file. Follow the quick start guide for detailed steps.

Key features

Key features include the ability to get documents by filter, list root collections, and direct integration with Firebase Realtime Database, which allows for real-time data synchronization.

Where to use

firebase-realtimeDB-mcp can be used in applications requiring real-time data updates, such as chat applications, collaborative tools, and any AI assistant that needs to access and manipulate Firebase data.

Content

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

Tool Description Required Parameters
get_documents_by_filter Get documents by filter collectionName, field,value
list_collections List root collections None
add_doc Add Document json object

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers