MCP Catalogs
Home

firebase-mcp

by gannonh·243·Score 46

Firebase MCP server providing Firestore, Storage, and Authentication tools for AI assistants.

databasecloud-storagedeveloper-tools
42
Forks
16
Open issues
7 mo ago
Last commit
2d ago
Indexed

Overview

Firebase MCP is a well-documented Model Context Protocol server that enables AI assistants to interact directly with Firebase services. It provides comprehensive tools for Firestore document operations, file management in Firebase Storage, and user authentication. The server supports both stdio and HTTP transport, allowing flexible integration with various MCP clients like Claude Desktop, VS Code, and Cursor. The implementation includes proper error handling, debugging capabilities, and detailed API reference.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:AI assistants managing Firestore databases directly through conversational interactions
you:Automated file upload and management in Firebase Storage via AI commands
you:User authentication and management in AI applications using Firebase Auth
you:What is the Zod validation error with firestore_list_collections?
you:How do I enable debugging for the MCP server?

When to choose this

Choose Firebase MCP when you need AI assistants to directly interact with Firebase services, especially if you're already using Firebase in your application stack and want to eliminate the need for custom API integrations.

When NOT to choose this

Avoid this server if you don't use Firebase services or if you need more extensive database operations beyond what Firebase offers, as it's locked into Firebase's ecosystem.

Tools this server exposes

12 tools extracted from the README
  • firestore_add_document

    Add a document to a collection

  • firestore_list_documents

    List documents with filtering

  • firestore_get_document

    Get a specific document

  • firestore_update_document

    Update an existing document

  • firestore_delete_document

    Delete a document

  • firestore_list_collections

    List root collections

  • firestore_query_collection_group

    Query across subcollections

  • storage_list_files

    List files in a directory

  • storage_get_file_info

    Get file metadata and URL

  • storage_upload

    Upload file from content

  • storage_upload_from_url

    Upload file from URL

  • auth_get_user

    Get user by ID or email

Comparable tools

firestore-mcpgoogle-cloud-mcpgeneric-database-mcp

Installation

Installation

  1. Install the MCP server by adding it to your MCP configuration file:

For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "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"
    }
  }
}
  1. Configure your Firebase project:

- Go to Firebase Console → Project Settings → Service Accounts - Generate and save a private key - Set the SERVICE_ACCOUNT_KEY_PATH environment variable

  1. Restart your MCP client to load the new server

FAQ

What is the Zod validation error with firestore_list_collections?
This is a known issue where the tool may return a validation error in client logs. Despite the error message, the query works correctly and returns proper collection data. It's a log-level error that doesn't affect functionality.
How do I enable debugging for the MCP server?
Set the DEBUG_LOG_FILE environment variable to 'true' to log to the default location (~/.firebase-mcp/debug.log) or specify a custom file path. You can also view logs in real-time using 'tail -f' or by capturing stderr.

Compare firebase-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.