Firebase リアルタイム データベース MCP
概要
このプロジェクトのインスピレーションはfirebase-mcpから得ました。Firestore の機能を使用する firebase-mcp とは異なり、 firebase-realtimeDB-mcp はFirebase Realtime Database の機能を使用します。Firebase Realtime Database MCP により、AI アシスタントは Firebase サービスと直接連携できるようになります。
🚀 クイックスタート
前提条件
- サービス アカウントの認証情報を持つ Firebase プロジェクト
- Node.js環境
1. Firebaseの設定
- Firebaseコンソール→プロジェクト設定→サービスアカウントに移動します
- 「新しい秘密鍵を生成」をクリックします
- JSONファイルを安全に保存する
2. 環境変数
必須
SERVICE_ACCOUNT_KEY_PATH
: Firebase サービス アカウント キー JSON へのパスFIREBASE_DATABASE_URL
: Firebase リアルタイム データベースの URL
1. Firebase Realtime Database 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ツール
道具 | 説明 | 必須パラメータ |
---|---|---|
get_documents_by_filter | フィルターでドキュメントを取得する | collectionName 、 field 、 value |
list_collections | ルートコレクションの一覧 | なし |
add_doc | ドキュメントを追加 | JSONオブジェクト |
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Firebase リアルタイム データベース
Related MCP Servers
- AsecurityFlicenseAqualityA server providing a unified interface to interact with Firebase services, including Authentication, Firestore, and Storage.Last updated -97TypeScript
- AsecurityAlicenseAqualityThe Firebase MCP server provides a standardized interface to interact with Firebase services, including Firebase Authentication, Firestore, and Firebase Storage.Last updated -9346172TypeScriptMIT License
- -security-license-qualityAn interface for interacting with Google Firestore databases directly through Claude Desktop, supporting operations like creating, reading, updating, and querying documents across collections.Last updated -JavaScriptMIT License
- -securityFlicense-qualityAn MCP Server that provides natural language access to Google's Firebase Realtime Database API, enabling database operations and management through conversation.Last updated -Python