Firebase

by gemini-dk

10 stars
370 downloads
1
GitHub

About

Integrates with Firebase services to enable user management, document operations, and file handling for applications using Firebase Authentication, Firestore, and Storage.

Details

Author
gemini-dk
Repository
gemini-dk/mcp-server-firebase
GitHub stars
10
Downloads
370
Categories
Developer Tools, Design, Workplace, File Management, AI, Infrastructure, API, Security, Cloud Service
Tags
#integration

- Retrieve Firebase users by ID or email
- Add, update, and delete Firestore documents
- List and manage Firestore collections and documents
- List files in a Storage directory
- Get file metadata and download URLs from Storage

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Firebase
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 /path/to/mcp-server-firebase/dist/index.js
    Environment
    • SERVICE_ACCOUNT_KEY_PATH /path/to/serviceAccountKey.json

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

1. Clone and build the project:

   git clone https://github.com/gemini-dk/mcp-server-firebase
cd mcp-server-firebase
npm install
npm run build

2. 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

3. 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.

- Get user by ID or email

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "firebase": {
            "env": {
                "SERVICE_ACCOUNT_KEY_PATH": "/path/to/serviceAccountKey.json"
            },
            "args": [
                "/path/to/mcp-server-firebase/dist/index.js"
            ],
            "command": "node"
        }
    }
}

Linux

{
    "env": {
        "SERVICE_ACCOUNT_KEY_PATH": "/path/to/serviceAccountKey.json"
    },
    "args": [
        "/path/to/mcp-server-firebase/dist/index.js"
    ],
    "command": "node"
}

Macos

{
    "env": {
        "SERVICE_ACCOUNT_KEY_PATH": "/path/to/serviceAccountKey.json"
    },
    "args": [
        "/path/to/mcp-server-firebase/dist/index.js"
    ],
    "command": "node"
}

Windows

{
    "env": {
        "SERVICE_ACCOUNT_KEY_PATH": "/path/to/serviceAccountKey.json"
    },
    "args": [
        "/path/to/mcp-server-firebase/dist/index.js"
    ],
    "command": "node"
}

Firebase MCP Server

Overview

This is a Firebase MCP (Model Context Protocol) server that provides a unified interface to interact with various Firebase services including Authentication, Firestore, and Storage.

Setup

1. Clone and build the project:
   git clone https://github.com/gemini-dk/mcp-server-firebase
   cd mcp-server-firebase
   npm install
   npm run build
   

2. 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

3. 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/documents

Storage

- List files in a directory - Get File metadata and Download URL

License

- MIT License
5.0 · 1 review

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.