Skip to main content
Glama
Firebase Crashlytics MCP

Firebase Crashlytics MCP

by hram
README.md
# Firebase Crashlytics MCP

[Инструкция на русском](README.ru.md)

A standalone stdio MCP server for Firebase Crashlytics issue investigations. It supports ranked reports, Firebase Console links, crash events and developer notes.

## Setup

1. Install Node.js 22+, clone this repository, and run `npm ci`.
2. Find the Firebase project ID and app ID in Firebase Console. Ask for the Firebase Crashlytics Viewer role or equivalent access on the project.
3. Configure the MCP server and start a fresh session. Use a protected service account credential file, or supply a short-lived OAuth access token through `FIREBASE_CRASHLYTICS_TOKEN`.

```json
{
  "mcpServers": {
    "firebase-crashlytics-mcp": {
      "command": "node",
      "args": ["/absolute/path/firebase-crashlytics-mcp/src/mcp.mjs"],
      "env": {
        "FIREBASE_CRASHLYTICS_SERVICE_ACCOUNT_FILE": "/private/firebase-credentials.json",
        "FIREBASE_CRASHLYTICS_PROJECT_ID": "example-project",
        "FIREBASE_CRASHLYTICS_APP_ID": "android:com.example.demo"
      }
    }
  }
}
```

In meta-agent use a custom stdio entry with `id`, `command`, `args` and `env` or `envFrom`.

Call `crashlytics_setup` for the setup checklist. It works without credentials. Pass `check_access: true` to test read access using the configured app or explicit `project_id` and `app_id`. The probe does not return crash data.

| Tool | Purpose |
|---|---|
| `firebase_list_top_crash_issues` | Read and save an issue ranking |
| `firebase_get_ranked_crash_issue_details` | Investigate a position in the last saved ranking |
| `firebase_get_crash_issue_from_url` | Read an issue and match the event referenced by a Firebase Console URL |
| `firebase_get_crash_issue` | Read an issue by ID |
| `firebase_list_crash_events` | List events with filters and pagination |
| `firebase_get_crash_event` | Read one event |
| `firebase_list_crash_issue_notes` | Read developer notes |
| `firebase_create_crash_issue_note` | Publish a developer note with explicit confirmation |

Use `FIREBASE_CRASHLYTICS_ALLOW_WRITE=true` to enable notes. The tool also requires `confirmed: true` and an identity with permission to create notes.

The server stores rankings and query responses locally. Set `FIREBASE_CRASHLYTICS_STATE_DIR` to a private, dedicated directory. By default it uses `firebase-crashlytics-mcp` under `XDG_STATE_HOME` or `~/.local/state`. Separate state directories keep saved rankings and crash data isolated. Crash responses may contain user data.

`GOOGLE_APPLICATION_CREDENTIALS` can point to the service account file. `FIREBASE_CRASHLYTICS_REQUEST_TIMEOUT_MS` defaults to 30000 per HTTP request. Run `npm test` to test the client without live credentials.

TDQS

B3.1/5.0

Scored across 9 tools

Disambiguation4/5

Three tools retrieve a single crash issue (by ID, by console URL, by rank in the last saved ranking), which is an inherent overlap, but the descriptions clearly state the different lookup keys so an agent can pick correctly. The list/get pair for events and the notes pair (list vs. create) are cleanly separated. Setup and note-writing tools are distinct from the rest.

Naming Consistency4/5

All names are snake_case verb_noun with a firebase_ prefix, except crashlytics_setup which uses a different prefix and no verb, and the noun number varies inconsistently between create_crash_issue_note (singular) and list_crash_issue_notes (plural). The pattern is still highly predictable overall.

Tool Count5/5

Nine tools is well within the ideal range and each earns its place: one setup/verification tool, discovery (top issues, ranked details), targeted reads (by ID, by URL, events, notes) and one write. Nothing looks like padding or a leftover.

Completeness4/5

Read coverage for investigation is strong (rankings, ranked details, ID/URL lookup, events, notes), but the write side is a dead end: issues cannot be closed, resolved, or have their state/assignee updated, and notes cannot be edited or deleted. Also no tool to list the Firebase apps/projects that the app-scoped calls require, though setup partially covers access verification.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues