Skip to main content
Glama

Firebase Realtime Database

Firebase 实时数据库 MCP

概述

该项目的灵感源自firebase-mcp 。与使用 Firestore 功能的 firebase-mcp 不同, firebase-realtimeDB-mcp使用的是 Firebase 实时数据库功能。Firebase 实时数据库 MCP 使 AI 助手能够直接与 Firebase 服务协作。

🚀 快速入门

先决条件

  • 具有服务帐户凭据的 Firebase 项目
  • Node.js 环境

1. Firebase 配置

  1. 前往Firebase 控制台→ 项目设置 → 服务帐户
  2. 点击“生成新私钥”
  3. 安全保存 JSON 文件

2.环境变量

必需的
  • SERVICE_ACCOUNT_KEY_PATH :您的 Firebase 服务帐户密钥 JSON 的路径
  • FIREBASE_DATABASE_URL :Firebase 实时数据库 URL

1. 本地安装 Firebase 实时数据库 MCP 项目

A. 在终端运行git clone https://github.com/ytzlax/firebase-realtimeDB-mcp.git
B. cd 到克隆的路径,然后运行npm i
C.运行npm run build

2. 安装 MCP 服务器

将服务器配置添加到您的 MCP 设置文件:

  • Claude 桌面: ~/Library/Application Support/Claude/claude_desktop_config.json
  • 增强: ~/Library/Application Support/Code/User/settings.json
  • 游标: [project root]/.cursor/mcp.json

如何与 Claude Desktop 一起使用?

按照指南https://modelcontextprotocol.io/quickstart/user并添加以下配置:

{ "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 工具

工具描述必需参数
get_documents_by_filter通过过滤器获取文档collectionNamefieldvalue
list_collections列出根集合没有任何
add_doc添加文档json对象
-
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 实时数据库

  1. 概述
    1. 🚀 快速入门
      1. 先决条件
      2. Firebase 配置
      3. 2.环境变量
      4. 本地安装 Firebase 实时数据库 MCP 项目
      5. 安装 MCP 服务器
      6. 如何与 Claude Desktop 一起使用?
      7. Firebase 工具

    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
      346
      172
      TypeScript
      MIT License
      • Apple
    • -
      security
      -
      license
      -
      quality
      An interface for interacting with Google Firestore databases directly through Claude Desktop, supporting operations like creating, reading, updating, and querying documents across collections.
      Last updated -
      JavaScript
      MIT License

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/ytzlax/firebase-realtimeDB-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server