MCP.so
ログイン

Firebase MCP Server

@gannonh

基本情報

カテゴリ

クラウドとインフラ

ライセンス

MIT

トランスポート

stdio

作者

gannonh

Firebase MCP Server について

🔥 Model Context Protocol (MCP) server for Firebase.

Firebase MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "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"
      }
    }
  }
}

Firebase MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

上のボタンで一時的なサンドボックスでこのサーバーを実行し、ツール一覧を取得できます。

概要

What is Firebase MCP?

Firebase MCP enables AI assistants to work directly with Firebase services, including Firestore document operations, Storage file management with upload capabilities, and Authentication user management and verification. It works with MCP client applications such as Claude Desktop, Augment Code, VS Code, and Cursor.

How to use Firebase MCP?

Add the server configuration to your MCP client’s settings file (e.g., claude_desktop_config.json). Provide the required environment variable SERVICE_ACCOUNT_KEY_PATH pointing to your Firebase service account key JSON, and optionally set FIREBASE_STORAGE_BUCKET. The server can be run via npx (recommended) or from a local installation, and supports both stdio and HTTP transports.

Key features of Firebase MCP

  • Firestore documents: add, list, get, update, delete
  • Firestore collections: list root collections and query collection groups
  • Storage files: list, get metadata, upload from content or URL
  • Authentication: get user by ID or email
  • HTTP transport with session management for multiple clients
  • Optional file logging for debugging

Use cases of Firebase MCP

  • Query and manage Firestore data through natural language conversation
  • Upload files to Firebase Storage and retrieve download URLs
  • Look up user details in Firebase Authentication
  • Perform CRUD operations on documents without writing code
  • Debug Firebase queries with file logging and MCP Inspector

よくある質問

1

What prerequisites are needed to run Firebase MCP?

You need a Firebase project with a service account key (JSON), and a Node.js environment.

2

Does the `firestore_list_collections` tool have a known issue?

Yes. It may show a Zod validation error in client logs, but the query still works correctly; this is a log-level bug in the MCP SDK that does not affect functionality.

3

How do I fix a “Storage Bucket Not Found” error?

Verify your bucket name in the Firebase Console and set the correct value in the `FIREBASE_STORAGE_BUCKET` environment variable.

4

What should I do if I get a “composite index required” error?

Follow the URL provided in the error message to create the required composite index in the Firebase Console, then retry the query after the index is ready.

5

How can I enable debugging for Firebase MCP?

Set `DEBUG_LOG_FILE=true` in the environment to log to `~/.firebase-mcp/debug.log`, or specify a custom path for file logging. You can also use the MCP Inspector for interactive debugging.

コメント

「クラウドとインフラ」の他のコンテンツ