
gannonh/firebase-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
gannonh/firebase-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/gannonh/firebase-mcp.
Обзор
gannonh/firebase-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/gannonh/firebase-mcp.
Обзор (машинный перевод)
Обзор
Firebase MCP позволяет ассистентам ИИ работать напрямую с сервисами Firebase, включая:
- Firestore: Операции с базой данных документов
- Хранилище: управление файлами с надёжными возможностями загрузки
- Аутентификация: управление пользователями и проверка
Сервер работает с приложениями клиента MCP, такими как Claude Desktop, Augment Code, VS Code и Cursor.
⚠️ Известная проблема: Инструмент
firestore_list_collectionsможет вернуть ошибку валидации Zod в журналах клиента. Это ошибочная ошибка валидации в MCP SDK, так как наше расследование подтвердило, что в ответе отсутствуют булевые значения. Несмотря на сообщение об ошибке, запрос работает корректно и возвращает необходимые данные сбора. Это ошибка на уровне журнала, которая не влияет на функциональность.
⚡ Быстрый старт
Требования
- Проект Firebase с учётными данными сервисных аккаунтов
- Node.js окружающая среда
1. Установка MCP Server
Добавьте конфигурацию сервера в файл настроек MCP:
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json - Аугмент:
~/Library/Application Support/Code/User/settings.json - Курсор:
[project root]/.cursor/mcp.json
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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