1.7 KiB
Firebase CLI and MCP server
The Firebase CLI includes a built-in local MCP server that can help with common tasks.
-
Locate MCP configuration
Find the configuration file for your agent (e.g.,
~/.codeium/windsurf/mcp_config.json,cline_mcp_settings.json, orclaude_desktop_config.json).Note: If the document or its containing directory does not exist, create them and initialize the file with
{ "mcpServers": {} }before proceeding. -
Check existing configuration
Open the configuration file and check the
mcpServerssection for afirebaseentry.-
Firebase is already configured if the
commandis"firebase"OR if thecommandis"npx"with"firebase-tools"and"mcp"in theargs. -
Important: If a valid
firebaseentry is found, the MCP server is already configured. Skip step 3 and proceed directly to step 4.
Example valid configurations:
"firebase": { "command": "npx", "args": ["-y", "firebase-tools@latest", "mcp"] }OR
"firebase": { "command": "firebase", "args": ["mcp"] } -
-
Add or update configuration
If the
firebaseentry is missing or incorrect, add it to themcpServersobject:"firebase": { "command": "npx", "args": [ "-y", "firebase-tools@latest", "mcp" ] }CRITICAL: Merge this configuration into the existing file. You MUST preserve any other existing servers inside the
mcpServersobject. -
Verify configuration
Save the file and confirm the
firebaseblock is present and is properly formatted JSON.