Back to Blog

How to Connect Firebase MCP

(edited: March 10, 2026)

Setup Guide

This guide is written based on Claude Code.

Connecting to MCP (Model Context Protocol) might sound intimidating, but it’s actually quite simple. The setup varies slightly depending on your operating system.

MacOS

JSON
{
  "mcpServers": {
    "firebase": {
      "command": "npx",
      "args": ["-y", "firebase-tools@latest", "mcp"]
    }
  }
}

On MacOS, you can execute the command directly using npx since it runs within a Unix-based terminal.

Windows

JSON
{
  "mcpServers": {
    "firebase": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "firebase-tools@latest", "mcp"]
    }
  }
}

On Windows, you cannot call npx directly in the configuration. You must wrap it using cmd with the /c flag. This is a crucial detail to keep in mind.

How to Verify the Connection

To verify that the connection is active:

  1. Enter Claude Code by typing claude in your terminal.
  2. Use the /mcp command to view the list of connected MCP servers.

If the connection is not visible, you can use the /doctor command to diagnose the issue or try reconnecting.

Comments