Skip to content
← All MCP servers

Is the Firebase MCP server safe? What it can reach

What the Firebase MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

The Firebase MCP server ships inside the Firebase CLI and runs locally with your CLI login or Application Default Credentials. It acts with your Firebase account’s rights. It can deploy, send push messages and delete Firestore data. The --only flag narrows the feature groups, but the core group, deploy included, always stays on.

Who maintains it

ImplementationKindStatus
Firebase MCP server (firebase-tools mcp)Officialactive

It runs as a local process on your machine.

How it signs in

It reuses the credentials of the Firebase CLI: a logged-in user or Application Default Credentials. Every tool runs with that account’s permissions on the active project.

What its tools can do

KindTools
Readapphosting_fetch_logs, apphosting_list_backends, auth_get_users, firebase_validate_security_rules, firebase_get_project, firebase_list_apps, firebase_list_projects, firebase_get_sdk_config, firebase_get_environment, firebase_get_security_rules, firebase_read_resources, firebase_deploy_status, crashlytics_get_issue, crashlytics_list_events, crashlytics_batch_get_events, crashlytics_list_notes, crashlytics_get_report, realtimedatabase_get_data, dataconnect_build, dataconnect_list_services, functions_get_logs, functions_list_functions, remoteconfig_get_template, storage_get_object_download_url, firestore_get_document, firestore_list_documents, firestore_list_collections, firestore_query_collection, firestore_run_aggregation_query, firestore_get_database, firestore_list_databases, firestore_get_index, firestore_list_indexes, firestore_get_backup, firestore_list_backups, firestore_get_backup_schedule, firestore_list_backup_schedules, developerknowledge_search_documents, developerknowledge_answer_query, developerknowledge_get_documents
Writefirebase_login, firebase_logout, firebase_create_project, firebase_create_app, firebase_create_android_sha, firebase_update_environment, firebase_init, auth_update_user, auth_set_sms_region_policy, crashlytics_create_note, crashlytics_update_issue, dataconnect_execute, firestore_add_document, firestore_update_document, firestore_create_database, firestore_update_database, firestore_create_index, firestore_create_backup_schedule, firestore_update_backup_schedule
Can’t be undonefirebase_deploy, remoteconfig_update_template, messaging_send_message, realtimedatabase_set_data, crashlytics_delete_note, firestore_delete_document, firestore_delete_database, firestore_delete_index, firestore_delete_backup, firestore_delete_backup_schedule

The docs do not label tools read or write. The split here follows each tool’s listed description. dataconnect_execute runs a GraphQL query or mutation, so it can write. Some tools proxy to remote services, so local does not mean all data stays local.

Built-in limits

OptionWhat it does
--onlyTurns on only the listed feature groups (apphosting, auth, crashlytics, dataconnect, developerknowledge, firestore, functions, messaging, realtimedatabase, remoteconfig, storage). The core group is always available.
--dirSets the project directory, which must hold firebase.json. Without it the server exposes get_project_directory and set_project_directory.
--generate-tool-listPrints the tool list so you can write deny rules from the live names.

The risks

  • An injected instruction in a Crashlytics note, a Firestore document or a log line could make the agent call firebase_deploy and push whatever is in firebase.json to production.
  • messaging_send_message sends an FCM push to real devices by token or topic, and a sent push cannot be recalled.
  • firestore_delete_database, firestore_delete_backup and realtimedatabase_set_data can destroy or overwrite live data on the active project.
  • firebase_deploy lives in the core group, so --only does not remove it, and the account’s own permissions are the only limit left.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add firebase -- npx -y firebase-tools@latest mcp

Claude Code names MCP tools mcp__firebase__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "deny": [
      "mcp__firebase__firestore_delete_database",
      "mcp__firebase__firestore_delete_backup",
      "mcp__firebase__firestore_delete_backup_schedule",
      "mcp__firebase__firestore_delete_index",
      "mcp__firebase__messaging_send_message"
    ],
    "ask": [
      "mcp__firebase__firebase_deploy",
      "mcp__firebase__remoteconfig_update_template",
      "mcp__firebase__realtimedatabase_set_data",
      "mcp__firebase__firestore_delete_document",
      "mcp__firebase__crashlytics_delete_note",
      "mcp__firebase__dataconnect_execute",
      "mcp__firebase__auth_update_user",
      "mcp__firebase__firebase_create_project",
      "mcp__firebase__firebase_init",
      "mcp__firebase__firestore_add_document",
      "mcp__firebase__firestore_update_document"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.firebase]
command = "npx"
args = ["-y", "firebase-tools@latest", "mcp"]
disabled_tools = ["firestore_delete_database", "firestore_delete_backup", "firestore_delete_backup_schedule", "firestore_delete_index", "messaging_send_message"]

Checklist

  • Log in to the Firebase CLI with an account that can only reach a dev or staging project.
  • Start the server with --only and --dir to narrow groups and project.
  • Add the deny rules, and ask before firebase_deploy.
  • Keep production credentials out of the shell that runs the agent.

Checked against the vendor documentation on November 25, 2026. Firebase MCP server docs · firebase-tools MCP README

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing