loading…
Search for a command to run...
loading…
Enables querying and management of live Firebase projects, providing access to Firestore collections and documents. It also allows users to retrieve and filter
Enables querying and management of live Firebase projects, providing access to Firestore collections and documents. It also allows users to retrieve and filter Cloud Function logs directly through the Model Context Protocol.
MCP server for querying live Firebase projects - Firestore and Cloud Function logs.
npm install
npm run build
Uses Application Default Credentials. Run:
gcloud auth application-default login
The server auto-detects the Firebase project from .firebaserc in the current working directory.
Override with env var:
FIREBASE_PROJECT_ID=my-project
Add to claude_desktop_config.json:
{
"mcpServers": {
"firebase-live": {
"command": "node",
"args": ["/Users/nigelthorne/code/firebase_live_mcp_server/dist/index.js"],
"cwd": "/path/to/your/firebase/project",
"env": {
"FIREBASE_PROJECT_ID": "optional-override"
}
}
}
}
The cwd should point to a directory with .firebaserc for auto-detection.
| Tool | Description |
|---|---|
list_collections |
List top-level Firestore collections |
list_subcollections |
List subcollections of a document |
list_documents |
List documents in a collection |
get_document |
Get a single document by path |
query_collection |
Query with filters, ordering, limit |
get_function_logs |
Get Cloud Function logs with grep filtering |
pattern - Regex to filter log messagesseverity - Minimum level: DEBUG/INFO/NOTICE/WARNING/ERROR/CRITICALfunctionName - Filter by function namelimit - Max entries (default 50)hoursAgo - Fetch logs from last N hours (default 1)Your gcloud account needs:
roles/datastore.viewer - Firestore read accessroles/logging.viewer - Cloud Logging read accessДобавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"firebase-live-mcp-server": {
"command": "npx",
"args": []
}
}
}