
Firebase Mcp Server
io.github.dasasianPublished by GitHub account dasasianv1.1.0Updated Oct 24, 2026
MCP server for Firebase — Firestore, Storage, Auth, and Cloud Logging, with schema validation.
Overview
A local MCP server for Firebase that lets an assistant browse, query and modify Firestore, Storage and Auth data, and query Cloud Functions logs.
- What you can do
- Explore and read Firestore collections and documents, run queries, counts, sums and statistics, and validate documents against path-based schemas with optional auto-discovery of unlisted collections and index-aware query checks. Import, update and delete Firestore documents. List, read, upload, copy, move, sync and delete Storage files, and inspect or set file access. List, create, update and delete Auth users and revoke their sessions. Query Cloud Functions logs with SQL-like filters, grouping and aggregations.
- When to use it
- Useful when you work with a Firebase project and want an assistant to inspect or edit Firestore data, manage Storage files or Auth users, or dig through Cloud Functions logs without leaving the chat. Schema files make validation and autocomplete more helpful, but it also works in discovery mode on unknown databases.
- Requirements
- Runs locally via npx or a global npm install (Node.js). Firebase authentication uses Application Default Credentials, so a configured Google Cloud/Firebase project and credentials are needed. Optional schema and index JSON paths can be passed at start; tool groups can be limited with a flag or an environment variable. Reading function logs needs the logging view accessor IAM role on the Admin SDK service account.
Installation
In SourceWeft
- Open Firebase Mcp Server in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Firebase MCP Server
[npm] [License: MIT] [Model Context Protocol server] [Node 18+]
General-purpose Model Context Protocol (MCP) server for Firebase (Firestore, Storage, Auth, Functions Logging) with schema-driven validation and context-efficient tools.
Features
- @ Mention Support - Reference Firestore documents with
@firebase:firestore://users/user-123 - Smart Autocomplete - MRU cache tracks accessed documents for quick re-reference
- Auto-Discovery - Shows both schema-based AND discovered collections
- Path-based schemas - Follows Firebase
firestore.rulesconvention - Schema evolution - Field status metadata (experimental → official → legacy)
- Hot reload - File watching, no restart needed when schemas change
- Flexible validation - Three modes: strict, warn (default), permissive
- Works without schemas - Discovery mode for exploring unknown databases
- Context-efficient tools - 99% token reduction for large datasets
- Index-aware queries - Validates queries against
firestore.indexes.json - Functions logging - SQL-like queries for Cloud Functions logs with aggregations and label filtering
Install
Add it to your MCP client (e.g. Claude Code) — runs via npx, no global install needed:
start takes an optional schema config path (default ./firestore-schemas.json) and an optional indexes path (default ./firestore.indexes.json) — see Schema Format. Firebase auth uses Application Default Credentials.
Or install the CLI globally:
Development (from source)
@ Mention Support (Resources)
Reference Firestore documents directly in Claude Code:
How It Works
When you type @firebase in Claude Code:
Shows schema-based collections (with validation):
- 📋 Users (User account documents)
- 📋 Posts (Blog post documents)
- 📋 Comments (Comments on posts)
Plus auto-discovered collections (no schema):
- 🔍 analytics
- 🔍 sessions
- 🔍 audit_logs
Configuration
Auto-discovery cost: ~$0.0003/day (negligible)
Tools
The server ships 33 tools in four groups. Every tool declares MCP annotations
(readOnlyHint, destructiveHint, idempotentHint, openWorldHint) so a client
can auto-approve reads and ask before writes.
Choosing which tools to load
All 33 tool definitions cost roughly 12k tokens of context on every session. If you only need part of the surface, narrow it:
Or set it in your MCP client config:
The --tools flag wins over the environment variable. Leaving both unset loads
everything, so upgrading never hides a tool you were already using. Calling a
tool from a group you switched off returns an error naming the group to add.
Firestore (12) — --tools firestore
firestore_show_collections— Show collections (read)firestore_read— Read document (read)firestore_export— Export collection (read)firestore_validate— Validate against schema (read)firestore_query_select— Query documents (read)firestore_query_collection_group— Query collection group (read)firestore_count— Count documents (read)firestore_sum— Sum a field (read)firestore_stats— Collection statistics (read)firestore_import— Import document (write, destructive)firestore_update— Update documents (write, destructive)firestore_delete— Delete documents (write, destructive)
Firebase Auth (6) — --tools auth
firebase_auth_list_users— List users (read)firebase_auth_get_user— Get user (read)firebase_auth_create_user— Create user (write)firebase_auth_update_user— Update user (write, destructive)firebase_auth_delete_user— Delete user (write, destructive)firebase_auth_revoke_sessions— Revoke sessions (write, destructive)
Firebase Storage (14) — --tools storage
firebase_storage_list_buckets— List buckets (read)firebase_storage_ls— List files (read)firebase_storage_stat— File metadata (read)firebase_storage_find— Find files (read)firebase_storage_get_url— Get file URL (read)firebase_storage_get_access— Get file access (read)firebase_storage_read— Download file to a local temp path (write)firebase_storage_upload— Upload file (write, destructive)firebase_storage_rm— Delete file (write, destructive)firebase_storage_cp— Copy file (write, destructive)firebase_storage_mv— Move file (write, destructive)firebase_storage_sync— Sync bucket to local (write, destructive)firebase_storage_push— Push local to bucket (write, destructive)firebase_storage_set_access— Set file access (write, destructive)
Cloud Logging (1) — --tools logs
firebase_functions_logs— Query Cloud Functions logs with SQL-like syntax (write)
firebase_storage_read and firebase_functions_logs are not marked read-only
because they write: the first downloads to a local temp file, the second updates
its auto-discovered logging schema on disk.
Reading function logs needs an extra IAM role. The Firebase Admin SDK service account has no Cloud Logging access by default, so
firebase_functions_logsfails withPERMISSION_DENIED: Permission denied for all log viewseven when every other tool works. Grant the role and allow a few minutes for it to take effect:
roles/logging.vieweralone may not be enough — the error names log views, and thelogging.views.accesspermission is inviewAccessor.
Example queries:
Schema Format
Schemas follow Firebase's path-based convention:
Documentation
- Installation Guide
- @ Mention Support Guide - How to use
@firebase:firestore://references - Configuration Reference
- Schema Creation Guide
- Functions Logging Guide - Query Cloud Functions logs with SQL-like syntax, aggregations, and custom labels
License
MIT
Source: README.md at commit 0d4d5b3
Tools
0Version history
1- v1.1.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts