
Firebase Mcp
io.github.firebase由 GitHub 账号 firebase 发布v0.3.0更新于 Oct 24, 2026
Gives AI development tools Firebase-specific capabilities and expertise.
概览
本地 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 客户端。
安装
在 SourceWeft 中
- 打开 控制台中的 Firebase Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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:
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:
-
Add the Firebase marketplace for Claude plugins:
-
Install the Claude plugin for Firebase:
-
Verify the installation:
Option 2: Configure MCP server manually
Alternatively, you can manually configure the Firebase MCP server by running:
You can verify the installation by running:
It should show:
Cursor
Add to .cursorrules in your project directory or configure in Cursor settings:
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
Firebase Studio
To configure Firebase Studio to use the Firebase MCP server, edit or create the configuration file: .idx/mcp.json
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).
来源:src/mcp/README.md,提交 c9c2461
工具
0版本历史
1- v0.3.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分