firebase-mcp — Claude Code MCP server: what it does, how to install
Connects Firebase services to AI development tools via MCP. Helps query databases, inspect user accounts, and view runtime logs directly inside the editor.
claude mcp add firebase-mcp -- npx -y firebase-toolsWhat firebase-mcp does
This server provides development assistants with direct access to your Firebase projects using standard I/O. It queries documents in Cloud Firestore and Realtime Database. It also updates user records in Firebase Authentication. Setup stays minimal.
The tool executes commands using credentials from your local Firebase CLI configuration. If your CLI environment is not authenticated, tool calls fail immediately. You will need Node.js with npm on your machine.
What it helps with
- query and update documents in Cloud Firestore
- inspect security rules across Firestore and Storage
- retrieve runtime logs from Cloud Functions
- search and manage user profiles in Firebase Authentication
Example prompts for the agent
- Fetch the user account details for [email protected] from Firebase Auth
- Read recent Cloud Functions logs to debug the latest errors
- List all active backends configured in App Hosting
How to install firebase-mcp
Platform CLI
claude mcp add firebase-mcp -- npx -y firebase-toolsPlatform CLI
codex mcp add mcp -- npx -y firebase-toolsConfig file
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"firebase-tools"
]
}
}
}Config file
{
"servers": {
"mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"firebase-tools"
]
}
}
}Platform CLI
gemini mcp add mcp npx -y firebase-toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about firebase-mcp
How to install firebase-mcp in Claude Code?
Run claude mcp add firebase-mcp -- npx -y firebase-tools. This launches the server via npx and attaches it over standard I/O.
What credentials does firebase-mcp use?
It relies on credentials already configured for the Firebase CLI on your system. Run your normal CLI login command before starting queries.
Which Firebase features can the assistant control?
The server supports Firestore and Realtime Database. It also handles Authentication and Crashlytics diagnostics.