
gannonh/firebase-mcp 是从 https://github.com/gannonh/firebase-mcp. 导入的 MCP 服务器候选服务器。
概览
gannonh/firebase-mcp 是从 https://github.com/gannonh/firebase-mcp. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
概述
Firebase MCP 使 AI 助手能够直接与 Firebase 服务协作,包括:
- Firestore:文档数据库操作
- 存储:具备强大上传功能的文件管理
- 认证:用户管理和验证
该服务器可与 MCP 客户端应用程序如 Claude Desktop、Augment Code、VS Code 和 Cursor 配合使用。
⚠️ 已知问题:
firestore_list_collections工具可能会在客户端日志中返回 Zod 验证错误。这是 MCP SDK 中的错误验证错误,我们的调查确认响应中没有布尔值。尽管出现错误信息,查询仍然正常,返回了正确的收集数据。这是一个日志级别错误,不影响功能。
⚡ 快速启动
先决条件
- 带有服务账户凭证的Firebase项目
- Node.js环境
1.安装MCP服务器
将服务器配置添加到你的MCP设置文件中:
- Claude桌面版:
~/Library/Application Support/Claude/claude_desktop_config.json - 增幅:
~/Library/Application Support/Code/User/settings.json - 光标:
[project root]/.cursor/mcp.json
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Firebase MCP
Overview
Firebase MCP enables AI assistants to work directly with Firebase services, including:
- Firestore: Document database operations
- Storage: File management with robust upload capabilities
- Authentication: User management and verification
The server works with MCP client applicatios such as Claude Desktop, Augment Code, VS Code, and Cursor.
⚠️ Known Issue: The
firestore_list_collectionstool may return a Zod validation error in the client logs. This is an erroneous validation error in the MCP SDK, as our investigation confirmed no boolean values are present in the response. Despite the error message, the query still works correctly and returns the proper collection data. This is a log-level error that doesn’t affect functionality.
⚡ Quick Start
Prerequisites
- Firebase project with service account credentials
- Node.js environment
1. 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
MCP Servers can be installed manually or at runtime via npx (recommended). How you install determines your configuration:
Configure for npx (recommended)
{
"firebase-mcp": {
"command": "npx",
"args": [
"-y",
"@gannonh/firebase-mcp"
],
"env": {
"SERVICE_ACCOUNT_KEY_PATH": "/absolute/path/to/serviceAccountKey.json",
"FIREBASE_STORAGE_BUCKET": "your-project-id.firebasestorage.app"
}
}
}
Configure for local installation
{
"firebase-mcp": {
"command": "node",
"args": [
"/absolute/path/to/firebase-mcp/dist/index.js"
],
"env": {
"SERVICE_ACCOUNT_KEY_PATH": "/absolute/path/to/serviceAccountKey.json",
"FIREBASE_STORAGE_BUCKET": "your-project-id.firebasestorage.app"
}
}
}
2. Test the Installation
Ask your AI client: “Please test all Firebase MCP tools.”
🛠️ Setup & Configuration
1. Firebase Configuration
- Go to Firebase Console → Project Settings → Service Accounts
- Click “Generate new private key”
- Save the JSON file securely
2. Environment Variables
Required
安装
npx -y @gannonh/firebase-mcp