Firebase MCP Server

Firebase MCP server for interacting with Firebase services through the Model Context Protocol

Local serverstdioGo

What is the Firebase MCP server?

Firebase MCP server for interacting with Firebase services through the Model Context Protocol. Exposed over MCP by the firebase mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

What it actually does

MCP Servers can be installed manually or at runtime via npx (recommended). How you install determines your configuration:

Adding it to your client

MCP_TRANSPORT on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Its toolset

Everything the assistant can do here goes through one of these:

  • 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

Configuration

You will need 5 environment variables: SERVICE_ACCOUNT_KEY_PATH, FIREBASE_STORAGE_BUCKET, DEBUG_LOG_FILE, MCP_HTTP_HOST, MCP_HTTP_PATH. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Firebase project with service account credentials - Node.js environment

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Firebase.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the firebase mcp server does with a few real requests.

When to reach for it

Plenty of team communication servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Firebase's toolset — firestore_add_document, firestore_list_documents, firestore_get_document and 11 more — is a fair guide to whether it matches your workflow. It is maintained by gannonh; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
firestore_add_documentAdd a document to a collection
firestore_list_documentsList documents with filtering
firestore_get_documentGet a specific document
firestore_update_documentUpdate an existing document
firestore_delete_documentDelete a document
firestore_list_collectionsList root collections
firestore_query_collection_groupQuery across subcollections
storage_list_filesList files in a directory
storage_get_file_infoGet file metadata and URL
storage_uploadUpload file from content
storage_upload_from_urlUpload file from URL
auth_get_userGet user by ID or email
PrerequisitesThe Prerequisites tool exposed by this server.
RequiredThe Required tool exposed by this server.

How to install the Firebase MCP server

{
  "mcpServers": {
    "firebase-1": {
      "command": "npx",
      "args": ["-y", "MCP_TRANSPORT"],
      "env": {
        "SERVICE_ACCOUNT_KEY_PATH": "your-value",
        "FIREBASE_STORAGE_BUCKET": "your-value",
        "DEBUG_LOG_FILE": "your-value",
        "MCP_HTTP_HOST": "your-value",
        "MCP_HTTP_PATH": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Firebase project with service account credentials - Node.js environment
VariableDescriptionRequired
SERVICE_ACCOUNT_KEY_PATHCredential the server authenticates with.Yes
FIREBASE_STORAGE_BUCKETConfiguration value read at startup.Optional
DEBUG_LOG_FILEConfiguration value read at startup.Optional
MCP_HTTP_HOSTEndpoint or connection string the server talks to.Optional
MCP_HTTP_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use Firebase to firestore add document.
  • Use Firebase to firestore list documents.
  • Use Firebase to firestore get document.

Frequently asked questions

It connects Firebase to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (firestore_add_document, firestore_list_documents, firestore_get_document, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Firebase directly.