Firebase Mcp

io.github.firebase由 GitHub 帳號 firebase 發布v0.3.0更新於 Oct 24, 2026

Gives AI development tools Firebase-specific capabilities and expertise.

概覽

AI 產生的概覽

本機 MCP 伺服器,透過 Firebase CLI 讓 AI 助理操作 Firebase 專案、資料庫、驗證、訊息推播、Crashlytics 與部署。

可以做什麼
建立、列出與檢視 Firebase 專案、應用程式與環境設定,並登入或登出 CLI 工作階段。讀取、查詢、寫入與刪除 Firestore 文件,讀寫 Realtime Database 路徑。查詢與更新 Auth 使用者,向裝置權杖或主題傳送 Cloud Messaging 推播。驗證並取得安全規則,建置或執行 Firebase SQL Connect 結構與查詢。檢視 Crashlytics 問題、事件與報告,讀取 Cloud Functions 與 App Hosting 日誌,管理 Remote Config 範本。
適用情境
適合助理在採用 Firebase 的應用程式中工作時,直接檢視或修改專案、資料、驗證使用者、規則或部署狀態,而不必手動切換到主控台或 CLI。
執行需求
需要 Node.js 與 npm,透過 npx firebase-tools 在本機執行。它使用執行環境中授權 Firebase CLI 的同一組使用者憑證,因此需要已登入且對目標專案有權限的 Firebase 帳號。僅支援桌面 MCP 用戶端。
安裝前請注意
許多工具會寫入或刪除:Firestore 文件、Realtime Database 資料、Auth 使用者與自訂宣告、Remote Config 範本、Crashlytics 備註與問題狀態,以及推播通知。它以 CLI 已登入的憑證執行操作,應謹慎限定帳號權限。部分功能使用 Firebase 中的 Gemini,其輸出可能不準確;README 提醒不要輸入個人識別資訊或使用者資料,也不要在正式環境使用未經測試的生成程式碼。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Firebase Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Firebase MCP Server

[License] [Install MCP Server]

The Firebase Model Context Protocol (MCP) Server gives AI-powered development tools the ability to work with your Firebase projects and your app's codebase. The Firebase MCP server works with any tool that can act as an MCP client, including: Firebase Studio, Gemini CLI, Claude Code, Cline, Cursor, VS Code Copilot, Windsurf, and more!

Features

An editor configured to use the Firebase MCP server can use its AI capabilities to help you:

  • Create and manage Firebase projects - Initialize new projects, list existing ones, and manage Firebase apps
  • Manage Firebase Authentication users - Retrieve, update, and manage user accounts
  • Work with Cloud Firestore and Firebase SQL Connect - Query, read, write, and manage database documents
  • Retrieve Firebase SQL Connect schemas - Generate schemas and operations with AI assistance
  • Understand security rules - Validate and retrieve security rules for Firestore, Cloud Storage, and Realtime Database
  • Send messages with Firebase Cloud Messaging - Send push notifications to devices and topics
  • Access Crashlytics data - Debug issues, view crash reports, and manage crash analytics
  • Deploy to App Hosting - Monitor backends and retrieve logs
  • Work with Realtime Database - Read and write data in real-time
  • Query Cloud Functions logs - Retrieve and analyze function execution logs
  • Manage Remote Config - Get and update remote configuration templates

Some tools use Gemini in Firebase to help you:

  • Generate Firebase SQL Connect schema and operations
  • Consult Gemini about Firebase products

Important: Gemini in Firebase can generate output that seems plausible but is factually incorrect. It may respond with inaccurate information that doesn't represent Google's views. Validate all output from Gemini before you use it and don't use untested generated code in production. Don't enter personally-identifiable information (PII) or user data into the chat.
Learn more about Gemini in Firebase and how it uses your data.

Installation and Setup

Prerequisites

Make sure you have a working installation of Node.js and npm.

Basic Configuration

The Firebase MCP server can work with any MCP client that supports standard I/O (stdio) as the transport medium. When the Firebase MCP server makes tool calls, it uses the same user credentials that authorize the Firebase CLI in the environment where it's running.

Here are configuration instructions for popular AI-assistive tools:

Gemini CLI

Install the Firebase extension for Gemini CLI:

bash
gemini extensions install https://github.com/firebase/agent-skills
Claude Code
Option 1: Install via plugin (Recommended)

The easiest way to set up the Firebase MCP server in Claude Code is to install the official Firebase plugin:

  1. Add the Firebase marketplace for Claude plugins:

    bash
    claude plugin marketplace add firebase/firebase-tools
  2. Install the Claude plugin for Firebase:

    bash
    claude plugin install firebase@firebase
  3. Verify the installation:

    bash
    claude plugin
Option 2: Configure MCP server manually

Alternatively, you can manually configure the Firebase MCP server by running:

bash
claude mcp add firebase npx -- -y firebase-tools@latest mcp

You can verify the installation by running:

bash
claude mcp list

It should show:

firebase: npx -y firebase-tools@latest mcp - ✓ Connected
Cursor

Add to .cursorrules in your project directory or configure in Cursor settings:

json
{  "mcpServers": {    "firebase": {      "command": "npx",      "args": ["-y", "firebase-tools@latest", "mcp"]    }  }}
Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "firebase": {      "command": "npx",      "args": ["-y", "firebase-tools@latest", "mcp"]    }  }}
Firebase Studio

To configure Firebase Studio to use the Firebase MCP server, edit or create the configuration file: .idx/mcp.json

json
{  "mcpServers": {    "firebase": {      "command": "npx",      "args": ["-y", "firebase-tools@latest", "mcp"]    }  }}

Usage

Once configured, the MCP server will automatically provide Firebase capabilities to your AI assistant. You can:

  • Ask the AI to help set up Firebase services
  • Query your Firestore database
  • Manage authentication users
  • Deploy to Firebase Hosting
  • Debug Crashlytics issues
  • And much more!

For a complete list of available tools and resources, see the Server Capabilities section below.

Documentation

For more information, visit the official Firebase MCP server documentation.

Server Capabilities

The Firebase MCP server provides three types of capabilities: Tools (functions that perform actions), Prompts (reusable command templates), and Resources (documentation files for AI models).

Tool NameFeature GroupDescription
apphosting_fetch_logsapphostingFetch recent service or build logs for an App Hosting backend.
apphosting_list_backendsapphostingList App Hosting backends, traffic configurations, and custom domains in your project.
auth_get_usersauthRetrieve Firebase Auth users by UID, email, phone number, or list all users.
auth_update_userauthUpdate a user's account by enabling/disabling it or setting custom claims.
auth_set_sms_region_policyauthSet an SMS region policy allowing or denying specific country codes for Firebase Authentication.
firebase_logincoreSign the user into the Firebase CLI and MCP server or check current authentication status.
firebase_logoutcoreSign the user out of the Firebase CLI and MCP server.
firebase_validate_security_rulescoreValidate syntax and check for errors in Firestore, Storage, or Realtime Database security rules.
firebase_get_projectcoreRetrieve metadata and configuration details for the currently active Firebase project.
firebase_list_appscoreList all Firebase apps registered in the active project.
firebase_list_projectscoreList Firebase projects accessible by the authenticated user.
firebase_get_sdk_configcoreRetrieve SDK configuration details or config file contents for a registered Firebase app.
firebase_create_projectcoreCreate a new Firebase project or enable Firebase services on an existing Google Cloud project.
firebase_create_appcoreCreate a new iOS, Android, or Web app in the active Firebase project.
firebase_create_android_shacoreAdd a SHA-1 or SHA-256 certificate hash to an Android app in the active Firebase project.
firebase_get_environmentcoreRetrieve the current Firebase CLI and MCP environment configuration, active project, and authenticated user.
firebase_update_environmentcoreUpdate environment settings such as project directory, active project, or active user account.
firebase_initcoreInitialize and configure Firebase services in your local project workspace.
firebase_get_security_rulescoreRetrieve the active security rules for Firestore, Storage, or Realtime Database.
firebase_read_resourcescoreRead the contents of internal firebase:// documentation resources or list all available resources.
crashlytics_create_notecrashlyticsAdd a note to a Crashlytics issue for an Android or iOS app.
crashlytics_delete_notecrashlyticsDelete a note from a Crashlytics issue for an Android or iOS app.
crashlytics_get_issuecrashlyticsRetrieve details and metadata for a specific Crashlytics issue.
crashlytics_list_eventscrashlyticsList recent crash and exception events matching specified filters for an issue.
crashlytics_batch_get_eventscrashlyticsRetrieve sample crash and exception events by resource name for debugging.
crashlytics_list_notescrashlyticsList all notes attached to a Crashlytics issue for an Android or iOS app.
crashlytics_get_reportcrashlyticsGenerate aggregated numerical reports for Crashlytics issues and events.
crashlytics_update_issuecrashlyticsUpdate the state (OPEN or CLOSED) of a Crashlytics issue.
realtimedatabase_get_datarealtimedatabaseRead data from a specified path in the Firebase Realtime Database.
realtimedatabase_set_datarealtimedatabaseWrite JSON data to a specified path in the Firebase Realtime Database.
dataconnect_builddataconnectCompile Firebase SQL Connect schemas, operations, and connectors to validate syntax and types.
dataconnect_list_servicesdataconnectList local and deployed Firebase SQL Connect services, schemas, and connectors.
dataconnect_executedataconnectExecute a GraphQL query or mutation against a Firebase SQL Connect service or emulator.
firestore_delete_documentfirestoreUse this to delete Firestore documents from a database in the current project by full document paths. Use this if you know the exact path of a document.
firestore_get_documentsfirestoreUse this to retrieve one or more Firestore documents from a database in the current project by full document paths. Use this if you know the exact path of a document.
firestore_list_collectionsfirestoreUse this to retrieve a list of collections from a Firestore database in the current project.
firestore_query_collectionfirestoreQuery Firestore documents from a collection with optional filters and ordering.
functions_get_logsfunctionsRetrieve and filter Cloud Functions log entries from Google Cloud Logging.
functions_list_functionsfunctionsList all deployed Cloud Functions in your Firebase project.
messaging_send_messagemessagingSend a Firebase Cloud Messaging push notification to a device registration token or topic.
remoteconfig_get_templateremoteconfigRetrieve the active or specified version of the Firebase Remote Config template.
remoteconfig_update_templateremoteconfigPublish a new Firebase Remote Config template or rollback to a previous version.
storage_get_object_download_urlstorageRetrieve the download URL for an object in a Cloud Storage bucket.
Prompt NameFeature GroupDescription
firebase:deploycoreUse this command to deploy resources to Firebase.

Arguments:
<prompt> (optional): any specific instructions you wish to provide about deploying
firebase:initcoreUse this command to set up Firebase services, like backend and AI features.
firestore:generate_security_rulesfirestoreGenerate secure Firebase Firestore Security Rules and corresponding unit tests for your project.
storage:generate_security_rulesstorageGenerate secure Firebase Storage Security Rules and corresponding unit tests for your project.
crashlytics:connectcrashlyticsUse this command to access a Firebase application's Crashlytics data.
Resource NameDescription
app_id_guideFirebase App Id Guide: guides the coding agent through choosing a Firebase App ID in the current project
crashlytics_investigations_guideFirebase Crashlytics Investigations Guide: Guides the coding agent when investigating bugs reported in Crashlytics issues, including procedures for diagnosing and fixing crashes.
crashlytics_issues_guideFirebase Crashlytics Issues Guide: Guides the coding agent when working with Crashlytics issues, including prioritization rules and procedures for diagnosing and fixing crashes.
crashlytics_reports_guideFirebase Crashlytics Reports Guide: Guides the coding agent through requesting Crashlytics reports, including setting appropriate filters and how to understand the metrics. The agent should read this guide before requesting any report.
backend_init_guideFirebase Backend Init Guide: guides the coding agent through configuring Firebase backend services in the current project
ai_init_guideFirebase GenAI Init Guide: guides the coding agent through configuring GenAI capabilities in the current project utilizing Firebase
firestore_init_guideFirestore Init Guide: guides the coding agent through configuring Firestore in the current project
firestore_rules_init_guideFirestore Rules Init Guide: guides the coding agent through setting up Firestore security rules in the project
auth_init_guideFirebase Authentication Init Guide: guides the coding agent through configuring Firebase Authentication in the current project
hosting_init_guideFirebase Hosting Deployment Guide: guides the coding agent through deploying to Firebase Hosting in the current project
docsFirebase Docs: loads plain text content from Firebase documentation, e.g. https://firebase.google.com/docs/functions becomes firebase://docs/functions

來源:src/mcp/README.md,提交 c9c2461

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.3.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分