mcp-server-firebase
by: gemini-dk
mcp server firebase
📌Overview
Purpose: The Firebase MCP Server facilitates a unified interface for seamless interaction with various Firebase services, enhancing developer efficiency and integration.
Overview: This framework serves as an MCP (Model Context Protocol) server, enabling users to work with key Firebase functionalities such as Authentication, Firestore, and Storage in a streamlined manner.
Key Features:
-
Unified API Interface: Offers a cohesive way to interact with multiple Firebase services, minimizing complexity for developers.
-
Comprehensive Service Support: Provides essential functionalities for Authentication (user management), Firestore (data handling), and Storage (file management), all in one package.
Firebase MCP Server
Overview
Firebase MCP (Model Context Protocol) server provides a unified interface to interact with Firebase services including Authentication, Firestore, and Storage.
Setup
-
Clone and build the project:
git clone https://github.com/gemini-dk/mcp-server-firebase cd mcp-server-firebase npm install npm run build
-
Get Firebase service account key:
- Go to Firebase Console > Project Settings > Service accounts
- Click "Generate new private key"
- Save the JSON file to your project directory
-
Configure
mcp_settings.json
:{ "firebase-mcp": { "command": "node", "args": [ "/path/to/mcp-server-firebase/dist/index.js" ], "env": { "SERVICE_ACCOUNT_KEY_PATH": "/path/to/serviceAccountKey.json" } } }
Replace
/path/to/mcp-server-firebase
with the actual path where you cloned the repository.
Replace/path/to/serviceAccountKey.json
with the path to your service account key file.
Available APIs
Authentication
- Get user by ID or email
Firestore
- Add, update, delete documents
- List collections and documents
Storage
- List files in a directory
- Get file metadata and Download URL
License
MIT License