Skip to main content
Glama
Firenook

Firenook

Official

Already using the Firebase emulators? Install Firenook and change one word:

npm install --save-dev firenook
- firebase emulators:start --import ./data
+ firenook emulators:start --import ./data

Same flags, same ports, and your firebase.json, rules, Functions code and app stay as they are. In a terminal, run it as npx firenook emulators:start. To keep your data between runs, with no export at every stop, add --keep-data.

Firenook needs Node 22, 24 or 26, on macOS, Linux or Windows. Starting a new project? npx firenook init sets one up. Get started covers both.

Why Firenook

A drop-in for the official emulator. Firenook reads firebase.json, .firebaserc, rules and indexes the way the Firebase CLI does, serves Firestore, Auth, Storage, Functions, Pub/Sub, Cloud Tasks and Eventarc on the same ports, and your client and Admin SDKs connect unchanged. It imports and exports the official format, so your data moves both ways. Every change is checked against recorded behaviour of the official emulator.

Fast and light. The services are native Rust and the data lives on disk, not in a Java heap. On a real application's two-hour workload, Firenook peaked at 2.11 GiB of memory where the official emulator reached 22.57 GiB, answered writes in 5.1 ms against 208 ms at the median, and used 61% less CPU.

Your data stays. Add --keep-data and Firestore, Auth and Storage come back with all your data in about half a second, even with millions of documents: no export at every stop, no import at every start. A crash loses at most the last second of writes, where the official emulator loses everything since its last export, and a stop always closes the data cleanly.

One package, nothing else to install. No Java, no firebase-tools, nothing else downloaded at install or start: one npm package with a native engine for macOS, Linux and Windows. Node runs your Functions, as in production. (An Extension from the registry is fetched once, on first use; firenook ext:vendor makes even that offline.)

A console and a terminal made for it. A web console for every service, live as your app runs, and a terminal screen that shows each function call, what triggered it, how long it took, and the stack trace when it fails.

Ready for your agent. firenook mcp gives a coding agent the running suite: read and write Firestore, manage users and sign in as them, read the logs and each function call with its error, ask the Security Rules why a request is denied, and work with Storage files, Pub/Sub, Cloud Tasks and Eventarc. npx firenook mcp add sets it up for Claude Code, Cursor and VS Code in the project's own files; other agents run the same npx firenook mcp. Nothing leaves your machine.

Related MCP server: Firestore MCP Server

What it emulates

Service

Port

Highlights

Firestore

8080

Native and web SDKs, realtime listeners, Security Rules, named databases, official import and export, a warning and a console Indexes page that adds the entry to firestore.indexes.json (or with --strict-indexes a refusal) for a query whose index the file does not declare

Authentication

9099

Every operation of the official Auth emulator: password, email link, phone, anonymous, custom tokens, test sign-in with Google, Apple and other providers, MFA, passkeys, tenants, blocking functions

Cloud Storage

9199

Firebase and Cloud Storage APIs, Security Rules evaluated natively, including firestore.get() and exists()

Cloud Functions

5001

HTTP, callable and streaming functions; Firestore, Storage, Auth, Pub/Sub, Eventarc, schedule and task-queue triggers; reload on save; --inspect-functions; functions:invoke for any trigger

Extensions

5001

Local, vendored or registry sources, offline once vendored

Pub/Sub

8085

Every RPC over gRPC and HTTP/JSON: push, ordering, filters, dead-letter topics, seek, snapshots, Avro schemas

Cloud Tasks

9499

Queues for onTaskDispatched with the official retry and rate-limit behaviour

Eventarc

9299

Custom events delivered to onCustomEventPublished

The console is on 4000, the hub on 4400 and logging on 4500. These are the official suite's ports, and firebase.json changes them the same way.

Realtime Database, Hosting, App Hosting and Data Connect are not emulated; a firebase.json that configures them still starts, with a warning. COMPATIBILITY.md records what each service covers and what it does not.

The console

The console the Firebase emulators should have had. Google's Emulator UI has no page for your Functions, Pub/Sub, Cloud Tasks or Eventarc, only a log. Firenook's console covers every service it runs, live, on the Emulator UI's port, at http://127.0.0.1:4000/console:

  • Functions: every call with what triggered it, its outcome, its duration and its logs, and every schedule. The official UI has only the log.

  • Authentication: users, their activity, and an inbox of the sign-in codes and email links Auth would have sent, so you never dig through the terminal for them.

  • Firestore and Storage: browse, edit and upload, and read their security rules.

  • Pub/Sub, Cloud Tasks and Eventarc, which the official UI has no pages for.

  • An Overview of every service's health and recent problems, with snapshots and resets a click away.

Light and dark, works offline, sends nothing anywhere. Bookmarks to the official UI's pages open the matching console page.

Function invocations

Authentication

Firestore

Storage

More in the console guide.

Benchmarks

One server (a Ryzen 5 3600 with 64 GiB), one real application with 211,205 Firestore documents and 6.7 GB in Storage, and two hours of its traffic against each emulator in turn. Then each emulator alone on the same data: starts, stops, 26 query shapes and a store grown to 2.5 million documents.

Firenook answered 25 of the 26 query shapes faster and tied on the last, and both gave the same answers. The method, every figure and the limits are in the benchmarks.

Get started

Already using the Firebase emulator

1. Install it in the project, next to firebase-tools (keep that for deploying):

npm install --save-dev firenook    # or: bun add --dev firenook

Commit the lockfile: it keeps every machine and CI run on the release you installed, and the same engine, until you upgrade.

Every run keeps its working data under .firenook/, so add that folder to your .gitignore.

2. Check your project. This reads firebase.json the way the Firebase CLI does and changes nothing:

$ npx firenook init --adopt --dry-run
  skip    Firenook: firebase.json configures the hosting emulator, which Firenook does not implement; skipping it.
  ok      nothing to change; services: firestore, auth, storage, functions

It names any service Firenook skips (Realtime Database, Hosting, App Hosting, Data Connect) and any addition it would make, such as a missing emulators entry; npx firenook init --adopt applies those additions.

3. Swap the command. Same flags, same ports, and the same export format, so your existing data imports as it is:

 "scripts": {
-  "emulators": "firebase emulators:start --import ./data --export-on-exit",
-  "test:integration": "firebase emulators:exec \"npm test\""
+  "emulators": "firenook emulators:start --import ./data --export-on-exit",
+  "test:integration": "firenook emulators:exec \"npm test\""
 }

Your app connects to the same ports as before, so no code changes: connectFirestoreEmulator(db, '127.0.0.1', 8080), FIRESTORE_EMULATOR_HOST and the rest work unchanged.

4. Optionally, stop exporting at every stop. In place of --export-on-exit, add --keep-data and Firenook keeps your data between runs in .firenook/state. Every start after the first picks the data up where you left it, and ./data itself stays untouched:

npx firenook emulators:start --import ./data --keep-data

Going back is just as short: stop Firenook (it saves first), export with npx firenook emulators:export ./export, and start the official CLI on that export.

Starting a new project

npx firenook init

In a terminal, init opens on one screen with every choice already made: a demo-<folder> project, so nothing can reach a real Firebase project, every emulator on its usual port (one already in use is named, with what holds it), Functions in TypeScript, JavaScript or none, and the coding agents it finds. Enter takes them all. It then writes the official templates, installs the packages, pins Firenook in package.json, builds the TypeScript once, and starts the emulators in the same terminal. From then on:

npm run emulators            # firenook emulators:start --keep-data --build

A new project keeps its data between runs from the first start, and --build compiles your TypeScript as you save, with the errors in the log. In a script or CI, npx firenook init --yes does the same with no questions. Point your app at it:

connectFirestoreEmulator(db, '127.0.0.1', 8080);
connectAuthEmulator(auth, 'http://127.0.0.1:9099');
connectStorageEmulator(storage, '127.0.0.1', 9199);
connectFunctionsEmulator(functions, '127.0.0.1', 5001);

Firenook needs Node 22, 24 or 26 on macOS, Linux (glibc 2.28 or newer, so RHEL 8, Debian 10, Ubuntu 20.04, node:24-slim and later; not Alpine) or Windows x64. The getting started guide covers each step in more depth, including tests and keeping data.

Documentation

Status

Firenook 0.2.0 is the first stable release. Every release passes conformance replays against the official emulator and packed installs on all five platforms, and releases are measured against the official emulator with a real application (most recently 0.2.0, in the benchmarks). Commit your lockfile and upgrade on purpose; the releases list what each one carries.

Contributing

Firenook is built in the open under the Apache License 2.0. CONTRIBUTING.md explains how a change moves, from a recorded fixture of the official emulator to a release, and how to build and test from source. Report a bug or ask for a feature in the issues.

License and trademarks

Firenook is licensed under the Apache License 2.0; see NOTICE for the reference-only sources studied and TRADEMARKS.md for the use of the Firenook name and mark. Firebase, Cloud Firestore, Cloud Functions, Cloud Storage, Cloud Pub/Sub and Cloud Tasks are trademarks of Google LLC. Firenook is not affiliated with or endorsed by Google.

Available Tools

55 tools
auth_create_userA

Create an Auth emulator account with a synthetic email/password, phone number or display name (never real credentials).

Inputs: uid, email, disabled, password, +4 more.

auth_delete_userA
DestructiveIdempotent

Delete one Auth emulator account by uid, permanently (accounts:delete); an unknown uid is an error (USER_NOT_FOUND). To block its sign-ins but keep the account, use auth_disable_user; to end its sessions only, auth_revoke_tokens.

Inputs: uid (required).

auth_disable_userA
Idempotent

Disable an Auth emulator account: its sign-ins and token refreshes fail until it is enabled again.

Inputs: uid, uids, tenant.

auth_enable_userA
Idempotent

Enable a disabled Auth emulator account again, so it can sign in and refresh tokens: the reverse of auth_disable_user. An account that is already enabled is reported as unchanged.

Inputs: uid, uids, tenant.

auth_get_userA
Read-onlyIdempotent

Look up one Auth emulator account by uid, email or phone number (accounts:lookup; the first of the three given is used) and return its record with claims, providers and MFA, or found:false. To page through every account, use auth_list_users.

Inputs: uid, email, phoneNumber.

auth_list_tenantsA
Read-onlyIdempotent

List the Auth emulator's tenants (multi-tenancy) with their user counts and sign-in settings, optionally matching an id or display name. Pass a tenant id from here as tenant to auth_mint_token and the claims, disable, enable and revoke tools.

Inputs: q, limit.

auth_list_usersA
Read-onlyIdempotent

List Auth emulator accounts (accounts:batchGet) with uid, email, phone, display name, claims and provider data.

Inputs: pageToken, maxResults.

auth_mint_tokenA

Mint a Firebase ID token (valid one hour) and refresh token for an existing Auth emulator user, so an agent can call a function or the REST API as that user; claims replace the custom claims for this token only.

Inputs: uid (required), claims, tenant, provider.

auth_oob_codesA
Read-onlyIdempotent

The pending out-of-band codes (email verification, password reset, sign-in links) the Auth emulator holds instead of sending email. Phone sign-in codes are in auth_verification_codes.

Inputs: no named parameters.

auth_remove_claimsA
DestructiveIdempotent

Remove the named custom claim keys from an Auth emulator user, keeping its other claims.

Inputs: keys (required), uid, uids, tenant.

auth_revoke_tokensA
Destructive

Revoke an Auth emulator user's refresh tokens (validSince moves to now), so its existing sessions must sign in again.

Inputs: uid, uids, tenant.

auth_set_claimsA
DestructiveIdempotent

Set an Auth emulator user's custom claims: replace them (as the Admin SDK's setCustomUserClaims does) or with mode merge change only the given keys (a null value removes that key).

Inputs: claims (required), uid, mode, uids, +1 more.

auth_verification_codesA
Read-onlyIdempotent

List the pending phone verification codes the Auth emulator holds instead of sending SMS, to finish a phone sign-in in a test. Email verification, password reset and sign-in link codes are in auth_oob_codes.

Inputs: no named parameters.

emulators_clearA
DestructiveIdempotent

DESTRUCTIVE: delete all data of the chosen services (every Firestore document, every Auth user and tenant, every Storage object, every Pub/Sub topic, subscription, schema and message, every Cloud Tasks task and its history). Clearing more than one service needs confirmProject set to the project id.

Inputs: sections (required), runTriggers, confirmProject.

emulators_exportA
DestructiveIdempotent

Export the running Firestore, Auth and Storage data to a dedicated directory (not the project or current directory, nor an ancestor of either), as firenook emulators:export does, for a later --import. It replaces an earlier export there and refuses any other non-empty directory unless force is true; the running data is untouched (emulators_clear wipes it).

Inputs: path (required), force.

eventarc_get_eventA
Read-onlyIdempotent

One Eventarc event with its attributes, data and every function delivery (outcome, duration, invocation id for functions_get_call).

Inputs: id (required).

eventarc_list_eventsA
Read-onlyIdempotent

The Eventarc events the suite received, newest first (custom events, replays and the Firebase services' own), with how many functions matched, received or failed each.

Inputs: q, limit, cursor, channel.

eventarc_publishA
Destructive

Publish a custom CloudEvent to an Eventarc channel (default the project's Firebase channel), as getEventarc().channel().publish() does; every matching function runs, and the report says which received it and how each call ended (after waiting about 3 s at most). To deliver a received event again, use eventarc_replay_event.

Inputs: type (required), data, text, source, +3 more.

eventarc_replay_eventA
Destructive

Deliver a received Eventarc event again to the functions it matches (a new event, origin replay), so their code runs again, and report the new deliveries.

Inputs: id (required), keepId.

extensions_listA
Read-onlyIdempotent

List the Firebase Extensions instances the suite runs: reference and version, state (running, loading, failed) with the load error, and their function count. Use it to see why an extension is not working; after editing an instance's .env or source, apply it with extensions_reload.

Inputs: no named parameters.

extensions_reloadA
Idempotent

Reload one Extensions instance (re-read its .env parameters and source, restart its functions) and report its state and functions afterwards.

Inputs: instance (required).

firenook_statusA
Read-onlyIdempotent

Show the running Firenook suite: how the project was found, hub locator, hub status, the emulators listing (host and port per service), the console address and the CLI version; with no project, the suites whose locators answer. Use it when another tool cannot reach the suite, or to find a service's port.

Inputs: no named parameters.

firestore_countB
Read-onlyIdempotent

Count the documents of a collection, or with collectionGroup of every collection with that id, that match optional where filters (a COUNT aggregation; no documents are read back).

Inputs: collection (required), where, database, collectionGroup.

firestore_deleteA
DestructiveIdempotent

Delete a document (recursive:true also its subcollections) or a collection (its documents; recursive:true everything beneath) through the emulator delete route.

Inputs: path (required), database, recursive.

firestore_getA
Read-onlyIdempotent

Read one Firestore document by path (collection/document[/subcollection/document]); returns its fields as plain JSON or exists:false.

Inputs: path (required), database.

firestore_list_collectionsA
Read-onlyIdempotent

List collection ids at the database root or under a document (listCollectionIds).

Inputs: path, database.

firestore_missing_indexesA
Read-onlyIdempotent

List the indexes production would refuse the app's queries for, from the queries run so far: each with the entry to add to its database's index file (firestore.indexes.json, under indexes or fieldOverrides), the first query that needed it (fields and operators, no values), how many did and when. database narrows it to one database and includeDeclared adds the entries the file already declares; saving the file puts an entry in force at once.

Inputs: database, includeDeclared.

firestore_queryA
Read-onlyIdempotent

Run a structured query over one collection, or with collectionGroup over every collection with that id (Firestore runQuery): optional where filters, ordering and limit; returns matching documents as plain JSON.

Inputs: collection (required), limit, where, orderBy, +2 more.

firestore_setA
Destructive

Write a Firestore document from plain JSON: replaces it, or with merge:true updates only the given top-level fields.

Inputs: data (required), path (required), merge, database.

functions_get_callA
Read-onlyIdempotent

Read one function call in full by its id from functions_list_calls: cause, request (method, path, headers, body; sensitive headers hidden), response (status, body), event payload, the error with its stack trace, the call's console output and timings. To run it again after a fix, use functions_replay_call.

Inputs: id (required), maxBodyChars.

functions_invokeA
Destructive

Invoke a loaded function: an HTTPS/callable request with data, or with eventData a background event (Firestore before/after, Storage object, Pub/Sub message, Auth user, schedule, Eventarc custom event, task queue payload) shaped as the official functions shell sends it. The function's own code runs, side effects included; to repeat a recorded call exactly, use functions_replay_call.

Inputs: name (required), auth, data, method, +5 more.

functions_listA
Read-onlyIdempotent

The functions loaded by the running suite: name, region, generation, trigger kind, event type or schedule, and the HTTPS URL of request/callable functions.

Inputs: no named parameters.

functions_list_callsA
Read-onlyIdempotent

List recent function calls, newest first: trigger kind and cause, outcome (succeeded, failed, timedOut, crashed...), HTTP status, duration and the first line of the error. Use it to find a failing call, then read that call whole with functions_get_call; to search every function's console output, use logs_search.

Inputs: q, kind, limit, cursor, +2 more.

functions_replay_callA
Destructive

Run a recorded function call again with the same request or event (after a fix, say) and report the new call: outcome, status, response body and its id for functions_get_call. The function's code runs again, side effects included.

Inputs: id (required), maxBodyChars.

logs_facetsA
Read-onlyIdempotent

Count the log lines matching a filter by level, service, function, codebase, extension instance and kind, to see where errors and warnings come from before reading them.

Inputs: q, to, from, text, +4 more.

pubsub_list_subscriptionsA
Read-onlyIdempotent

Every Pub/Sub subscription (of every topic, and detached ones) with its delivery type, filter, dead-letter topic and backlog.

Inputs: topic.

pubsub_list_topicsA
Read-onlyIdempotent

List the Pub/Sub emulator's topics with their published counts, subscriptions and the functions they trigger (schedule topics included). Use it to find a topic for pubsub_publish; each subscription's backlog and filter are in pubsub_list_subscriptions.

Inputs: no named parameters.

pubsub_peekA
Read-onlyIdempotent

Peek at a subscription's backlog in delivery order without pulling, leasing or acking anything: each message's state, attempts, attributes and data.

Inputs: subscription (required), full, limit, state, +1 more.

pubsub_publishA
Destructive

Publish one message to a Pub/Sub emulator topic: string data as given, other JSON as its text (base64-encoded on the wire), plus attributes; the functions subscribed to it run. To read a subscription's backlog without consuming it, use pubsub_peek; to run a scheduled function, schedules_run.

Inputs: topic (required), data, attributes, orderingKey.

rules_evaluateA
Read-onlyIdempotent

Ask the rules in force (or a draft) whether a request would be allowed: get, list, create, update or delete on a Firestore path or Storage object as a given user or unauthenticated; returns the verdict, the rule line that decided it and each evaluated expression's value. Nothing is written.

Inputs: path (required), method (required), uid, data, +13 more.

rules_getA
Read-onlyIdempotent

Read the Security Rules in force: the Firestore rules of a database and the Storage rules of a bucket (source, whether they are enforced, the file and its problems). To test whether a request would be allowed, use rules_evaluate; for requests already denied, rules_list_denials.

Inputs: bucket, service, database.

rules_list_denialsA
Read-onlyIdempotent

Recent requests the Security Rules denied (app clients only; admin and owner requests skip the rules), newest last; with explain, the rule lines that denied each one.

Inputs: uid, from, path, limit, +2 more.

schedules_listA
Read-onlyIdempotent

List the scheduled functions (onSchedule, pubsub.schedule): expression, time zone, next runs, paused state and the latest runs with their delivery. To run one now instead of waiting, use schedules_run.

Inputs: no named parameters.

schedules_runA
Destructive

Run a scheduled function now: publish one tick to its schedule topic, as Cloud Scheduler would, and report the run; the function's code runs, side effects included. schedules_list shows the scheduled functions and their latest runs.

Inputs: function (required).

storage_copyA
Destructive

Copy a Storage object (or a folder, a path ending in /) to a new path, in the same or another bucket; refuses to overwrite unless overwrite is true.

Inputs: to (required), path (required), bucket, toBucket, +1 more.

storage_deleteA
DestructiveIdempotent

DESTRUCTIVE: delete one Storage object, or with a path ending in / every object under that folder.

Inputs: path (required), bucket.

storage_get_metadataA
Read-onlyIdempotent

The metadata of one Storage object (content type, size, timestamps, custom metadata, download tokens) or exists:false.

Inputs: path (required), bucket.

storage_listA
Read-onlyIdempotent

List Storage objects and folder prefixes under a prefix (one level, like listAll).

Inputs: bucket, prefix, pageToken, maxResults.

storage_moveA
Destructive

Move (rename) a Storage object or a folder (a path ending in /), in the same or another bucket; refuses to overwrite unless overwrite is true.

Inputs: to (required), path (required), bucket, toBucket, +1 more.

storage_readA
Read-onlyIdempotent

Read a Storage object's content: text inline (text, JSON, XML, SVG...), anything else as base64; at most maxBytes are returned and truncated says whether there is more.

Inputs: path (required), bucket, encoding, maxBytes.

storage_uploadA
Destructive

Upload (create or replace) a Storage object from text or base64 bytes with a content type and custom metadata, as the Admin SDK would (rules skipped; finalize triggers run).

Inputs: path (required), text, base64, bucket, +4 more.

tasks_listA
Read-onlyIdempotent

The Cloud Tasks queues (with their pending and running counts) and the tasks waiting in them; with queue, only that queue's tasks, optionally in one state.

Inputs: limit, queue, state.

tasks_runA
Destructive

Dispatch one waiting Cloud Tasks task now instead of at its schedule time (it is sent on the next tick), so its function runs; tasks_list gives the queue and task ids.

Inputs: id (required), queue (required).

tasks_statsA
Read-onlyIdempotent

Report each Cloud Tasks queue's statistics as the official emulator's queueStats does: numberOfTasks, tasksAdded and failedTasks (five-minute counts divided by five), completedLastMin, runningTasks (the dispatch slots, not tasks running), maxRate and maxConcurrent. For the waiting tasks themselves, use tasks_list.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 55 tools

    Disambiguation4/5

    Tools are strongly namespaced by service (firestore_, auth_, storage_, functions_, logs_, rules_, pubsub_, tasks_, schedules_, eventarc_, extensions_, emulators_), and most actions are clearly distinct. A few near-neighbors need the descriptions to separate them confidently, such as functions_list_calls vs. logs_search, functions_invoke vs. functions_replay_call, and schedules_run vs. pubsub_publish, but the descriptions consistently cross-reference the right alternative.

    Naming Consistency5/5

    All 55 names use a consistent snake_case service-prefix plus action pattern (firestore_get, auth_disable_user, storage_upload, functions_replay_call, eventarc_list_events). Even noun-oriented tools like tasks_stats, logs_facets, and auth_oob_codes fit the same predictable scheme.

    Tool Count2/5

    The server covers a genuinely broad Firebase emulator suite, so many tools are justified individually, but 55 tools is a very large surface for an agent to select from reliably. The count goes well beyond the 15-25 range the rubric treats as already heavy, and several subdomains (Auth especially) could likely be consolidated.

    Completeness4/5

    Coverage is unusually thorough across Firestore, Auth, Storage, Functions, Rules, Pub/Sub, Tasks, Schedules, Eventarc, Extensions, and emulator lifecycle operations. Minor gaps remain, such as creating/deleting Pub/Sub topics and subscriptions or managing task queues themselves, but core lifecycle and debugging workflows are covered.

    Maintenance

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents and LLMs to securely interact with Firestore databases through complete CRUD operations (get, set, add, delete, query) while respecting Firestore Security Rules via the Firebase Client SDK.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with Firebase Firestore databases through full CRUD operations, collection management, and advanced query support. It features automatic type conversion for Firestore-specific data and tools for counting or filtering documents.
      1
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables inspection and querying of Firestore data and Cloud Function logs within the Firebase Emulator environment. It provides tools to navigate collections, retrieve documents, and filter function logs using regex and other criteria.
      9
      MIT