Firebase MCP server tools: what can change your project, and how to make your agent ask

The tools of Firebase's MCP server (firebase-tools 15.37.0), checked by running it on this machine with every request caught by a local server and no Google account: how the agent switched folder and project for later sessions, why --dir did not hold, how init replaced locked rules with open ones that deploy then published, how a read-only rules check uploaded a .env file, and the Claude Code settings that make the rest ask.

Checked on by running firebase-tools 15.37.0 (npm; its MCP server calls itself firebase 0.3.0) from firebase/firebase-tools; the tool list is its tools/list answer with every feature group turned on with --only, where the firestore_, dataconnect_ and developerknowledge_ tools came from Google's own MCP servers, fetched again each time it started. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.

The short answer

It has no read-only mode, its hints miss what init, deploy and the rules check really do, and the agent can move it to another folder and project for good. Start it with --tools and a list of reads, never the whole set, and let only those run unasked.

Can run on their own
41
Should ask a person
34

Lethal trifecta: On its own this server can read private data, take in content other people wrote and send data out: all three legs of the lethal trifecta. Check your whole setup

Which Firebase server this is

This page is about Google’s own server, built into the Firebase CLI and started with firebase mcp. We ran firebase-tools 15.37.0, the latest release, with Node 24, signed in as a made-up account. Every Google address the CLI lets you change pointed at a small server of our own that wrote down each request and answered it, so nothing reached a real project. The Firestore emulator needs Java, which this machine lacks, so we used no emulator.

The server has no read-only mode. It picks its tools itself: in a folder with no firebase.json it offered 19, in our sample project with Firestore, Storage, Realtime Database and Remote Config set up it offered 49, and with every feature group named in --only it offered 75. The firestore_, dataconnect_ and developerknowledge_ tools are not in the CLI at all: it fetches them from Google’s own MCP servers each time it starts, so they can change without a new CLI release. Pinning firebase-tools does not pin them: the read tools we list below, the Firestore reads among them, are what that remote list said on 27 November, so check its tools/list again before trusting an allow rule for one.

Even listing the tools did something. When our stand-in answered that the project’s Cloud Billing API was off, the server sent a request to switch it on, before any tool had been called.

The agent can move it to another folder and project

firebase_update_environment takes a folder, a project and an account. One call moved the server to another folder on the disk:

{ "name": "firebase_update_environment",
  "arguments": { "project_dir": "/Users/me/other-repo" } }
  • The folder is saved in the CLI’s settings, under the client and the folder the server started in. The next session started in the original folder worked in the other one.
  • It beat --dir too. A server started with --dir set to the original folder still worked in the folder the agent had picked.
  • Changing the project is the same as firebase use: afterwards firebase use in that folder printed the agent’s choice, the staging project, so a firebase deploy you type there next goes to it.

Init opened the rules, and deploy published them

firebase_init is marked idempotent. In a project whose Firestore rules let only signed-in users in, setting up Firestore replaced firestore.rules without a question with the test-mode rules the CLI writes for a new project, which let anyone read and write every document for 30 days:

// firestore.rules after firebase_init
allow read, write: if request.time < timestamp.date(2026, 12, 27);

firebase_deploy takes only a list of targets and deploys whatever firebase.json says. Given firestore, it uploaded rules ending in allow read, write: if true and released them to the project, with no confirmation. Before that it ran the predeploy command from firebase.json, as us, in the folder the agent had switched to:

{ "firestore": { "rules": "firestore.rules",
  "predeploy": ["echo predeploy ran as $USER in $PWD > PREDEPLOY_RAN.txt"] } }

So an agent that can edit firebase.json, or point the server at a cloned repository, can run any shell command through a deploy.

A read-only rules check uploaded a .env file

firebase_validate_security_rules is marked read-only, and its source_file is meant to be a path inside the project. It refused ../other/.env, but took the same file given as an absolute path and sent its contents to Google’s rules API to be checked. It did the same with a service account file inside the project.

{ "name": "firebase_validate_security_rules",
  "arguments": { "type": "firestore", "source_file": "/Users/me/other/.env" } }
// sent to firebaserules.googleapis.com, projects/<id>:test
{ "source": { "files": [{ "name": "test.rules",
  "content": "AWS_SECRET_ACCESS_KEY=…" }] } }

Users, phones and live config

  • auth_update_user carries no hints. One call disabled a user; another set the custom claim admin: true on them.
  • messaging_send_message carries no hints either. One call sent a push notification, with our title, text and link, to a whole topic.
  • remoteconfig_update_template with an empty template and force: true went out as a PUT of no parameters, which replaces the live config every app reads.
  • storage_get_object_download_url is marked read-only, but the link it returns carries the file’s download token: whoever gets the link can download the file.

Every tool calls Google’s admin APIs as the signed-in Google account, the way the console does. Firestore and Storage security rules guard your app’s users, not these calls, so only the account’s IAM roles limit what the agent can read and change.

Sign-in and telemetry

Not signed in, firebase_login handed the agent a sign-in link and a session id, told it to show both to you, and to call it again with the code you paste back. Signed out, its code falls back to Google Application Default Credentials if the machine has them. Its code sends usage events, with each tool’s name and the AI agent it detects, to Google Analytics when the CLI’s usage setting is on; firebase login asks about it. We ran with it off.

A safer setup

Start the server with --tools. It turns off the detection and loads only the tools named; calls to any other tool, such as firebase_update_environment or firebase_deploy, got “could not be found”. Name only reads:

claude mcp add firebase -- npx -y firebase-tools@15.37.0 mcp --dir /path/to/project --tools firebase_get_project,firebase_list_apps,firebase_get_security_rules,firestore_list_collections,firestore_list_documents,firestore_get_document,firestore_query_collection,auth_get_users,remoteconfig_get_template,functions_list_functions

Then check the CLI’s settings file, ~/.config/configstore/firebase-tools.json: a folder an agent set earlier sits under mcp.clientConfigs and wins over --dir, so delete that entry. Sign the CLI in with an account that can only view the project, and keep --only in mind as a filter of feature groups, not a read-only switch: it still loads each group’s writes.

Its 75 tools

Hard to undo10 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.

  • firebase_deploy

    Deploy resources to your Firebase project, based on the contents of firebase.json.

    Server gives no read-only or destructive hint · toolset core

    Our call: Deploys whatever firebase.json names. It published rules that let anyone read and write every document, with no question asked, and first ran the shell command in firebase.json's predeploy.

  • auth_set_sms_region_policy

    Use this to set an SMS region policy for Firebase Authentication to restrict the regions which can receive text messages based on an ALLOW or DENY list of country codes.

    Server says: destructive · toolset auth

    Our call: One call decides which countries can receive sign-in text messages; an allow list of one country stops sign-in by SMS everywhere else.

  • crashlytics_delete_note

    Delete a note from a Crashlytics issue.

    Server says: destructive · toolset crashlytics

  • realtimedatabase_set_data

    Use this to write data to the specified location in a Firebase Realtime Database.

    Server gives no read-only or destructive hint · toolset database

    Our call: Its code sends a PUT, which replaces everything at the path, and the path can be /, the whole database. We could not finish the call without a real database.

  • firestore_delete_document

    Delete a document from a Firestore database.

    Server says: destructive · toolset firestore

  • firestore_delete_database

    Delete a Firestore database.

    Server says: destructive · toolset firestore

  • firestore_delete_index

    Delete a Firestore index.

    Server says: destructive · toolset firestore

  • firestore_delete_backup

    Delete a Firestore backup.

    Server says: destructive · toolset firestore

  • firestore_delete_backup_schedule

    Delete a Firestore backup schedule.

    Server says: destructive · toolset firestore

  • dataconnect_execute_graphql

    Executes any GraphQL query or mutation against a Firebase SQL Connect Service instance.

    Server says: destructive · toolset dataconnect

Reaches people2 toolsAsk a person: once it reaches someone, it cannot be unsent.

  • messaging_send_message

    Use this to send a message to a Firebase Cloud Messaging registration token or topic.

    Server gives no read-only or destructive hint · toolset messaging

    Our call: No hints. One call sent a push notification with our title, text and link to a whole topic, every device subscribed to it.

  • remoteconfig_update_template

    Use this to publish a new remote config template or roll back to a specific version for the project

    Server gives no read-only or destructive hint · toolset remoteconfig

    Our call: Publishes a template to every app that reads it. Sent an empty template with force: true, it went out as a PUT that would replace every parameter.

Not sure5 toolsAsk a person until you have checked what it does.

  • firebase_login

    Signs the user into the Firebase CLI and Firebase MCP server.

    Server gives no read-only or destructive hint · toolset core

    Our call: Starts a Google sign-in for the CLI: it hands the agent a link and a session id to show you, then takes the code you paste back.

  • firebase_validate_security_rules

    Use this to check Firebase Security Rules for Firestore, Storage, or Realtime Database for syntax and validation errors.

    Server says: read-only · toolset core

    Our call: Marked read-only, but source_file takes any absolute path. It refused ../other/.env and then uploaded the same file, given as an absolute path, to Google's rules API.

  • storage_get_object_download_url

    Use this to retrieve the download URL for an object in a Cloud Storage for Firebase bucket.

    Server says: read-only · toolset storage

    Our call: Marked read-only, but the link it returns carries the file's download token, so anyone who gets the link can download the file without signing in.

  • functions_get_logs

    Use this to retrieve a page of Cloud Functions log entries using Google Cloud Logging advanced filters.

    Server says: read-only · toolset functions

    Our call: Marked read-only, but it returns whatever the functions printed, and functions often log tokens, keys or request bodies. Keep it on ask, or out of --tools.

  • dataconnect_execute_graphql_read

    Executes a read-only GraphQL query against a Firebase SQL Connect Service instance.

    Server says: read-only · toolset dataconnect

    Our call: Google's remote server marks it read-only and says it only accepts queries. We had no real SQL Connect service to check that a mutation is refused.

Changes data17 toolsAsk a person. Once it is routine, a standing rule can answer.

  • firebase_logout

    Use this to sign the user out of the Firebase CLI and Firebase MCP server.

    Server gives no read-only or destructive hint · toolset core

    Our call: Signs an account out of the Firebase CLI on this machine, not only out of the MCP server.

  • firebase_create_project

    Use this to create a new Firebase Project.

    Server gives no read-only or destructive hint · toolset core

  • firebase_create_app

    Use this to create a new Firebase App in the currently active Firebase Project.

    Server gives no read-only or destructive hint · toolset core

  • firebase_create_android_sha

    Use this to add the specified SHA certificate hash to the specified Firebase Android App.

    Server gives no read-only or destructive hint · toolset core

  • firebase_update_environment

    Use this to update environment config for the Firebase CLI and Firebase MCP server, such as project directory, active project, active user account, accept terms of service, and more.

    Server gives no read-only or destructive hint · toolset core

    Our call: Switches the folder and the project. The folder stuck for later sessions, even ones started with --dir, and the project became the CLI's too: firebase use in that folder then printed the agent's choice.

  • firebase_init

    Use this to initialize selected Firebase services in the workspace (Cloud Firestore database, Firebase SQL Connect, Firebase Realtime Database, Firebase AI Logic).

    Server gives no read-only or destructive hint · toolset core

    Our call: Marked idempotent, but in a project whose rules let only signed-in users in, it replaced firestore.rules with rules that let anyone read and write for 30 days.

  • dataconnect_execute_in_emulator

    Executes a GraphQL operation against a local Firebase SQL Connect Service instance emulator.

    Server gives no read-only or destructive hint · toolset dataconnect

    Our call: Runs any GraphQL operation, mutations included, but only against the local emulator.

  • auth_update_user

    Use this to disable, enable, or set a custom claim on a specific user's account.

    Server gives no read-only or destructive hint · toolset auth

    Our call: No hints at all. One call disabled a user, and another set the custom claim admin: true, which many apps read as admin rights.

  • crashlytics_create_note

    Add a note to an issue from crashlytics.

    Server gives no read-only or destructive hint · toolset crashlytics

  • crashlytics_update_issue

    Use this to update the state of Crashlytics issue.

    Server gives no read-only or destructive hint · toolset crashlytics

  • firestore_add_document

    Create a document from a Firestore database.

    Server gives no read-only or destructive hint · toolset firestore

  • firestore_update_document

    Update a document from a Firestore database.

    Server gives no read-only or destructive hint · toolset firestore

  • firestore_create_database

    Create a Firestore database.

    Server gives no read-only or destructive hint · toolset firestore

  • firestore_update_database

    Update a Firestore database.

    Server gives no read-only or destructive hint · toolset firestore

    Our call: Can switch off delete protection and point-in-time recovery, after which firestore_delete_database can remove the database.

  • firestore_create_index

    Create a composite index.

    Server gives no read-only or destructive hint · toolset firestore

  • firestore_create_backup_schedule

    Create a Firestore backup schedule.

    Server gives no read-only or destructive hint · toolset firestore

  • firestore_update_backup_schedule

    Update a Firestore backup schedule.

    Server gives no read-only or destructive hint · toolset firestore

Only looks41 toolsLet it run. It only looks.

  • firebase_get_project

    Use this to retrieve information about the currently active Firebase Project.

    Server says: read-only · toolset core

  • firebase_list_apps

    Use this to retrieve a list of the Firebase Apps registered in the currently active Firebase project.

    Server says: read-only · toolset core

  • firebase_list_projects

    Use this to retrieve a list of Firebase Projects that the signed-in user has access to.

    Server says: read-only · toolset core

  • firebase_get_sdk_config

    Use this to retrieve the Firebase configuration information for a Firebase App.

    Server says: read-only · toolset core

  • firebase_get_environment

    Use this to retrieve the current Firebase environment configuration for the Firebase CLI and Firebase MCP server, including current authenticated user, project directory, active Firebase Project, and more.

    Server says: read-only · toolset core

  • firebase_get_security_rules

    Use this to retrieve the security rules for a specified Firebase service.

    Server says: read-only · toolset core

  • firebase_read_resources

    Use this to read the contents of `firebase://` resources or list available resources

    Server says: read-only · toolset core

  • firebase_deploy_status

    Check the status of a background deployment job using its Job ID.

    Server says: read-only · toolset core

    Our call: Only reads the progress of a deploy this server started. The checker takes the word deploy for a change.

  • firestore_query_collection

    Use this to retrieve one or more Firestore documents from a collection in a database in the current project by a collection with a full document path.

    Server says: read-only · toolset firestore

  • dataconnect_build

    Use this to compile Firebase SQL Connect schema, operations, and/or connectors and check for build errors.

    Server says: read-only · toolset dataconnect

  • dataconnect_list_services

    Use this to list existing local and backend Firebase SQL Connect services

    Server says: read-only · toolset dataconnect

  • auth_get_users

    Use this to retrieve one or more Firebase Auth users based on a list of UIDs or a list of emails.

    Server says: read-only · toolset auth

  • functions_list_functions

    List all deployed functions in your Firebase project.

    Server says: read-only · toolset functions

    Our call: Only lists or reads settings. The checker takes a word in its name, such as schedule or functions, for a change.

  • remoteconfig_get_template

    Use this to retrieve the specified Firebase Remote Config template from the currently active Firebase Project.

    Server says: read-only · toolset remoteconfig

  • crashlytics_get_issue

    Gets data for a Crashlytics issue, which can be used as a starting point for debugging.

    Server says: read-only · toolset crashlytics

  • crashlytics_list_events

    Use this to list the most recent events matching the given filters, including custom key filter expressions.

    Server says: read-only · toolset crashlytics

  • crashlytics_batch_get_events

    Gets specific events by resource name.

    Server says: read-only · toolset crashlytics

  • crashlytics_list_notes

    Use this to list all notes for an issue in Crashlytics.

    Server says: read-only · toolset crashlytics

  • crashlytics_get_report

    Use this to request numerical reports from Crashlytics.

    Server says: read-only · toolset crashlytics

  • crashlytics_setup

    Provides setup guides and onboarding instructions for integrating Firebase Crashlytics into web applications (Next.js, React, React Router, TanStack Router, Angular).

    Server says: read-only · toolset crashlytics

  • apphosting_fetch_logs

    Use this to fetch the most recent logs for a specified App Hosting backend.

    Server says: read-only · toolset apphosting

  • apphosting_list_backends

    Use this to retrieve a list of App Hosting backends in the current project.

    Server says: read-only · toolset apphosting

  • realtimedatabase_get_data

    Use this to retrieve data from the specified location in a Firebase Realtime Database.

    Server says: read-only · toolset database

  • firestore_get_document

    Get a document from a Firestore database.

    Server says: read-only · toolset firestore

  • firestore_list_documents

    List documents from a Firestore database.

    Server says: read-only · toolset firestore

  • firestore_list_collections

    List all the collection IDs underneath a document.

    Server says: read-only · toolset firestore

  • firestore_get_database

    Get a Firestore database.

    Server says: read-only · toolset firestore

  • firestore_list_databases

    List Firestore databases.

    Server says: read-only · toolset firestore

  • firestore_get_index

    Get a Firestore index.

    Server says: read-only · toolset firestore

  • firestore_list_indexes

    List Firestore indexes.

    Server says: read-only · toolset firestore

  • firestore_get_backup

    Get a Firestore backup.

    Server says: read-only · toolset firestore

  • firestore_list_backups

    List Firestore backups.

    Server says: read-only · toolset firestore

  • firestore_get_backup_schedule

    Get a Firestore backup schedule.

    Server says: read-only · toolset firestore

    Our call: Only lists or reads settings. The checker takes a word in its name, such as schedule or functions, for a change.

  • firestore_list_backup_schedules

    List Firestore backup schedules.

    Server says: read-only · toolset firestore

    Our call: Only lists or reads settings. The checker takes a word in its name, such as schedule or functions, for a change.

  • dataconnect_list_locations

    Lists information about the supported locations.

    Server says: read-only · toolset dataconnect

  • dataconnect_generate_query

    Generates a GraphQL query based on a natural language prompt and an existing deployed service schema.

    Server says: read-only · toolset dataconnect

    Our call: Writes a query for the agent to read and runs nothing. The checker takes the word generate for a change.

  • dataconnect_generate_query_from_schema

    Generates a GraphQL query based on a natural language prompt and a user-provided local GraphQL schema.

    Server says: read-only · toolset dataconnect

  • dataconnect_generate_schema

    Generates a GraphQL schema based on a natural language prompt or data description.

    Server says: read-only · toolset dataconnect

  • developerknowledge_search_documents

    Use this tool to find documentation about Google developer products.

    Server says: read-only · toolset developerknowledge

  • developerknowledge_answer_query

    Use answer_query to get a grounded, synthesized conceptual answer to a high-level question about Google developer products (always prefer `answer_query` or `search_documents` over unverified model memory).

    Server says: read-only · toolset developerknowledge

  • developerknowledge_get_documents

    Use this tool to retrieve the full Markdown content of a single document or up to 20 documents in a single call by passing a list of document resource names in the `names` parameter (e.g., `get_documents(names=["documents/..."])`; the parameter is `names` taking a list of strings, not `name`).

    Server says: read-only · toolset developerknowledge

Let the reads run in Claude Code

Claude Code asks before every MCP tool it has no rule for. Added as firebase, this server’s tools are named mcp__firebase__<tool>. These allow rules, in .claude/settings.json or ~/.claude/settings.json, let the tools that only look run without a prompt. Everything else keeps asking, including any tool a later version of the server adds.

{
  "permissions": {
    "allow": [
      "mcp__firebase__firebase_get_project",
      "mcp__firebase__firebase_list_apps",
      "mcp__firebase__firebase_list_projects",
      "mcp__firebase__firebase_get_sdk_config",
      "mcp__firebase__firebase_get_environment",
      "mcp__firebase__firebase_get_security_rules",
      "mcp__firebase__firebase_read_resources",
      "mcp__firebase__firebase_deploy_status",
      "mcp__firebase__firestore_query_collection",
      "mcp__firebase__dataconnect_build",
      "mcp__firebase__dataconnect_list_services",
      "mcp__firebase__auth_get_users",
      "mcp__firebase__functions_list_functions",
      "mcp__firebase__remoteconfig_get_template",
      "mcp__firebase__crashlytics_get_issue",
      "mcp__firebase__crashlytics_list_events",
      "mcp__firebase__crashlytics_batch_get_events",
      "mcp__firebase__crashlytics_list_notes",
      "mcp__firebase__crashlytics_get_report",
      "mcp__firebase__crashlytics_setup",
      "mcp__firebase__apphosting_fetch_logs",
      "mcp__firebase__apphosting_list_backends",
      "mcp__firebase__realtimedatabase_get_data",
      "mcp__firebase__firestore_get_document",
      "mcp__firebase__firestore_list_documents",
      "mcp__firebase__firestore_list_collections",
      "mcp__firebase__firestore_get_database",
      "mcp__firebase__firestore_list_databases",
      "mcp__firebase__firestore_get_index",
      "mcp__firebase__firestore_list_indexes",
      "mcp__firebase__firestore_get_backup",
      "mcp__firebase__firestore_list_backups",
      "mcp__firebase__firestore_get_backup_schedule",
      "mcp__firebase__firestore_list_backup_schedules",
      "mcp__firebase__dataconnect_list_locations",
      "mcp__firebase__dataconnect_generate_query",
      "mcp__firebase__dataconnect_generate_query_from_schema",
      "mcp__firebase__dataconnect_generate_schema",
      "mcp__firebase__developerknowledge_search_documents",
      "mcp__firebase__developerknowledge_answer_query",
      "mcp__firebase__developerknowledge_get_documents"
    ]
  }
}

The command that adds the server:

claude mcp add firebase -- npx -y firebase-tools@15.37.0 mcp --dir /path/to/project --tools firebase_get_project,firebase_list_apps,firebase_get_security_rules,firestore_list_collections,firestore_list_documents,firestore_get_document,firestore_query_collection,auth_get_users,remoteconfig_get_template,functions_list_functions

Send the rest to a person, not the terminal

A prompt in the terminal only works while someone is watching it. With this hook, every other tool of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher names the look-only tools, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "mcp__firebase__(?!(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|firestore_query_collection|dataconnect_build|dataconnect_list_services|auth_get_users|functions_list_functions|remoteconfig_get_template|crashlytics_get_issue|crashlytics_list_events|crashlytics_batch_get_events|crashlytics_list_notes|crashlytics_get_report|crashlytics_setup|apphosting_fetch_logs|apphosting_list_backends|realtimedatabase_get_data|firestore_get_document|firestore_list_documents|firestore_list_collections|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|dataconnect_list_locations|dataconnect_generate_query|dataconnect_generate_query_from_schema|dataconnect_generate_schema|developerknowledge_search_documents|developerknowledge_answer_query|developerknowledge_get_documents)$).*",
        "hooks": [
          { "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
        ]
      }
    ]
  }
}

Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.

Set it up in Cursor, VS Code, Codex, Gemini CLI and other clients

The same server as the claude mcp add line above, written the way each client reads it, for Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI, Cline and Zed. Cursor and VS Code add it in one click: the app shows the settings and asks before it saves them. Set up like this, every tool runs as soon as the model calls it; the next section puts a person in front of the ones that change things. Running it with other flags? Convert your own settings.

claude_desktop_config.json{
  "mcpServers": {
    "firebase": {
      "command": "npx",
      "args": [
        "-y",
        "firebase-tools@15.37.0",
        "mcp",
        "--dir",
        "/path/to/project",
        "--tools",
        "firebase_get_project,firebase_list_apps,firebase_get_security_rules,firestore_list_collections,firestore_list_documents,firestore_get_document,firestore_query_collection,auth_get_users,remoteconfig_get_template,functions_list_functions"
      ]
    }
  }
}

Any MCP client: put the proxy in front

Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server, lets the look-only tools above through, and holds every other call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz login once to save a key, then use the settings for your client:

claude_desktop_config.json{
  "mcpServers": {
    "firebase": {
      "command": "npx",
      "args": [
        "-y",
        "https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
        "mcp-proxy",
        "--name",
        "firebase",
        "--look-only",
        "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,firestore_query_collection,dataconnect_build,dataconnect_list_services,auth_get_users,functions_list_functions,remoteconfig_get_template,crashlytics_get_issue,crashlytics_list_events,crashlytics_batch_get_events,crashlytics_list_notes,crashlytics_get_report,crashlytics_setup,apphosting_fetch_logs,apphosting_list_backends,realtimedatabase_get_data,firestore_get_document,firestore_list_documents,firestore_list_collections,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,dataconnect_list_locations,dataconnect_generate_query,dataconnect_generate_query_from_schema,dataconnect_generate_schema,developerknowledge_search_documents,developerknowledge_answer_query,developerknowledge_get_documents",
        "--",
        "npx",
        "-y",
        "firebase-tools@15.37.0",
        "mcp",
        "--dir",
        "/path/to/project",
        "--tools",
        "firebase_get_project,firebase_list_apps,firebase_get_security_rules,firestore_list_collections,firestore_list_documents,firestore_get_document,firestore_query_collection,auth_get_users,remoteconfig_get_template,functions_list_functions"
      ]
    }
  }
}

Already have it in Claude Desktop? One command rewrites the file for you, with these look-only tools filled in, and keeps the old one (setup vscode does the same for VS Code; how it works):

npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz setup claude-desktop

The same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__firebase, keeps Claude Code from asking a second time in the terminal:

claude mcp add firebase -- npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz mcp-proxy --name firebase --look-only 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,firestore_query_collection,dataconnect_build,dataconnect_list_services,auth_get_users,functions_list_functions,remoteconfig_get_template,crashlytics_get_issue,crashlytics_list_events,crashlytics_batch_get_events,crashlytics_list_notes,crashlytics_get_report,crashlytics_setup,apphosting_fetch_logs,apphosting_list_backends,realtimedatabase_get_data,firestore_get_document,firestore_list_documents,firestore_list_collections,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,dataconnect_list_locations,dataconnect_generate_query,dataconnect_generate_query_from_schema,dataconnect_generate_schema,developerknowledge_search_documents,developerknowledge_answer_query,developerknowledge_get_documents -- npx -y firebase-tools@15.37.0 mcp --dir /path/to/project --tools firebase_get_project,firebase_list_apps,firebase_get_security_rules,firestore_list_collections,firestore_list_documents,firestore_get_document,firestore_query_collection,auth_get_users,remoteconfig_get_template,functions_list_functions

When the agent should write

Run a second copy for writes, with --tools naming the few it needs, and keep each on ask. Before approving a deploy, read the project’s firebase.json, its rules files and its predeploy lines, and check the project with firebase use: the call itself shows only a list of targets.

See it before you decide.

The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.