Firebase MCP Server

Firebase MCP Server

mcp-firebase•byrobertodevs

A Firebase Admin SDK MCP server built with FastMCP that offers tools for managing Firebase Authentication users and Firestore documents.

License: MIT License•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Provides Authentication tools to create, list, retrieve, update, and delete Firebase users, plus generate email verification and password reset links.
  • •Provides Firestore tools to list collections and documents, get, create, update, and delete documents, and perform atomic batch writes.
  • •Returns consistent responses indicating success with data or an error message.

BEST FOR

  • •Managing Firebase Authentication users such as creating accounts, updating profiles, and generating verification or reset links.
  • •Working with Firestore data, including creating and updating documents and running atomic multi-operation writes.

ABOUT MCP-FIREBASE

Firebase MCP Server is cataloged as an MCP server attributed to robertodevs. A Firebase Admin SDK MCP server built with FastMCP that offers tools for managing Firebase Authentication users and Firestore documents. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Firebase MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What services does this MCP server manage?

It manages Firebase Authentication and Firestore operations through the Firebase Admin SDK.

Can I use this server with Claude Desktop?

Yes, the README describes installing the server in Claude Desktop using the MCP install command.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 21f4e6587820 · 采集于 2026-11-13 10:28:44 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Firebase MCP Server

A Firebase Admin SDK MCP (Model-Controller-Provider) server that provides a set of tools for managing Firebase Authentication and Firestore operations. This server can be used with Cursor IDE or Claude Desktop for seamless integration with AI assistants.

Features

Authentication Tools

  • create_user: Create new Firebase users
  • get_users: List all users in Firebase Auth
  • get_user: Get specific user details
  • update_user: Update user properties (email, display name, password)
  • delete_user: Remove users from Firebase Auth
  • verify_email: Generate email verification links
  • reset_password: Generate password reset links

Firestore Tools

  • get_collections: List all Firestore collections
  • get_documents: List all documents in a collection
  • get_document: Get specific document data
  • create_document: Create new documents
  • update_document: Update existing documents
  • delete_document: Remove documents from Firestore
  • batch_write: Perform multiple write operations atomically

Prerequisites

  • Python 3.7 or higher
  • Firebase project with Admin SDK enabled
  • Firebase service account key
  • Cursor IDE or Claude Desktop (for AI assistant integration)

Setup

  1. Create a Firebase Project

    • Go to Firebase Console
    • Create a new project or select an existing one
    • Enable Authentication and Firestore services
  2. Get Firebase Admin SDK Credentials

    • In Firebase Console, go to Project Settings > Service Accounts
    • Click "Generate New Private Key"
    • Save the JSON file as service-account-key.json in your project root
  3. Install Dependencies

    pip install firebase-admin fastmcp
    
  4. Configure the Server

    • Update the service account key path in firebase.py:
      cred = credentials.Certificate("path/to/your/service-account-key.json")
      

Running the Server

  1. Start the MCP Server

    You can run the server in several ways:

    # Using the MCP CLI (recommended)
    mcp dev firebase.py
    
    # With environment variables
    mcp dev firebase.py -v FIREBASE_KEY=path/to/key.json
    
    # With custom name
    mcp dev firebase.py --name "Firebase Tools Server"
    
    # Load environment variables from file
    mcp dev firebase.py -f .env
    
  2. Install in Claude Desktop

    # Basic installation
    mcp install firebase.py
    
    # Install with custom name
    mcp install firebase.py --name "Firebase Tools"
    
    # Install with environment variables
    mcp install firebase.py -v FIREBASE_KEY=path/to/key.json -v OTHER_VAR=value
    mcp install firebase.py -f .env
    
  3. Direct Execution

    For advanced scenarios, you can run the server directly:

    from mcp.server.fastmcp import FastMCP
    
    mcp = FastMCP("Firebase Tools")
    
    if __name__ == "__main__":
        mcp.run()
    

    Then run with:

    python firebase.py
    # or
    mcp run firebase.py
    

Debugging

  1. Server Logs

    The MCP server provides detailed logging. You can enable debug logs by setting the environment variable:

    mcp dev firebase.py -v MCP_LOG_LEVEL=debug
    
  2. Lifespan Management

    For debugging initialization and cleanup, implement the lifespan API:

    from contextlib import asynccontextmanager
    from collections.abc import AsyncIterator
    from mcp.server import Server
    
    @asynccontextmanager
    async def server_lifespan(server: Server) -> AsyncIterator[dict]:
        # Initialize Firebase on startup
        firebase_app = initialize_firebase()
        try:
            yield {"firebase": firebase_app}
        finally:
            # Cleanup on shutdown
            await firebase_app.delete()
    
    # Pass lifespan to server
    server = Server("firebase-tools", lifespan=server_lifespan)
    
  3. Tool Testing

    You can test individual tools using the MCP CLI:

    # Test a specific tool
    mcp test firebase.py --tool create_user
    
    # Test with specific arguments
    mcp test firebase.py --tool create_user --args '{"email": "test@example.com"}'
    
  4. Integration Testing

    For testing the full server integration:

    # Start server in test mode
    mcp dev firebase.py --test
    
    # In another terminal, run integration tests
    mcp test-integration firebase.py
    

Usage Examples

Authentication Operations

# Create a new user
await create_user(email="user@example.com", password="securepassword123")

# Update user properties
await update_user(
    user_id="user123",
    email="newemail@example.com",
    display_name="New Name"
)

# Send email verification
await verify_email(
    user_id="user123",
    action_url="https://yourapp.com/verified"
)

# Generate password reset link
await reset_password(
    email="user@example.com",
    action_url="https://yourapp.com/reset-complete"
)

Firestore Operations

# Create a document
await create_document(
    collection_id="users",
    document_id="user123",
    data={
        "name": "John Doe",
        "age": 30
    }
)

# Update a document
await update_document(
    collection_id="users",
    document_id="user123",
    data={
        "age": 31
    }
)

# Get document data
await get_document(
    collection_id="users",
    document_id="user123"
)

# Perform atomic batch operations
await batch_write(operations=[
    {
        "type": "create",
        "collection_id": "users",
        "document_id": "user1",
        "data": {
            "name": "John Doe",
            "email": "john@example.com"
        }
    },
    {
        "type": "update",
        "collection_id": "profiles",
        "document_id": "profile1",
        "data": {
            "age": 30,
            "occupation": "Developer"
        }
    },
    {
        "type": "delete",
        "collection_id": "temp",
        "document_id": "temp1"
    }
])

Response Format

All tools return responses in a consistent format:

# Success response
{
    "success": True,
    "data": {...}  # or relevant success data
    "message": "Operation completed successfully"
}

# Error response
{
    "success": False,
    "error": "Error message details"
}

Security Considerations

  1. Service Account Key

    • Never commit your service-account-key.json to version control
    • Add it to .gitignore
    • Use environment variables in production
  2. Authentication

    • Always validate user input
    • Implement proper error handling
    • Follow Firebase security best practices

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For issues and feature requests, please create an issue in the GitHub repository.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Firebase MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-firebase)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage