---
title: "Claude Code Firebase setup: Connect and automate workflow"
description: "Learn how to connect Claude Code to Firebase using MCP and Agent Skills. Follow our guide for project verification, secure workflows, and environment setup."
---

# Claude Code Firebase setup: Connect and automate workflow

Published: 2026-10-02T08:08:05.862Z

Author: [Goon Nguyen](/author/goon)

Reading time: 13 minutes

Learn how to connect Claude Code to Firebase using MCP and Agent Skills. Follow our guide for project verification, secure workflows, and environment setup.

# Claude Code Firebase setup: Connect Firebase with MCP and agent skills

Integrating Claude Code with Firebase connects your AI assistant to Firebase tools via a plugin or local MCP server. Since setup alone doesn't grant access, this guide walks you through installation, project verification, and safe modifications-focusing on manual registration to ensure you target the right project without risking changes.

![Image](https://cdn.agentkit.best/blog/cfai-media/6a8a2316c40e4fa117b9850eb4e092119177e7d9f5ae984d0f65e6068931fc37-2e9b6eba99f265ea7754868b3050276fa9ba4a5045db5d08e86cd79f185ff0cf.jpg)

> **How do I connect Claude Code to Firebase?** - Register the Firebase MCP server from your application directory, authenticate with Firebase Tools, and confirm the project through non-mutating checks. A Firebase plugin is an alternative—not an additional requirement. Avoid registering both routes for the same integration unless you deliberately need separate configurations.

Run in your terminal:

`npx -y firebase-tools@latest login
claude mcp add --transport stdio --scope local firebase -- npx -y firebase-tools@latest mcp
`

These commands use the current package release, not a version tested for this article.

## How the Claude Code–Firebase integration works

[Claude Code](https://agentkit.best/blog/claude-code-guides/what-is-claude-code-a-complete-guide-to-the-ai-coding-tool) is the MCP client; Firebase Tools provides the local server process. They communicate through stdio transport, meaning standard input and output rather than a separately hosted web endpoint.

The process runs locally, but its tools can contact remote Firebase APIs. Its effective identity and IAM (Identity and Access Management) permissions determine which operations are authorized. A running server does not prove access to every service.

![Image](https://cdn.agentkit.best/blog/cfai-media/5956a3d67ff7aa540bbb3acb4cf99b7b08f54ed7f47cbf7dbc170593005d113d-6c024be227786dc07832d39c183a91d5e3e69988d90e53ec4d54cfc9027cf3c6.jpg)

### Prerequisites

Files such as `firebase.json` and `.firebaserc` provide local context. They do not prove which cloud project a subsequent operation will target.

### Run a basic environment check

`node --version
npm --version
npx --version
claude --version
npx -y firebase-tools@latest --version
`

A global Firebase CLI installation is unnecessary for this route. The `firebase --version` command works only when that executable is installed and available.

Record versions before troubleshooting. For repeatable onboarding, replace `@latest` with a reviewed version after validation. Follow Firebase CLI documentation for runtime requirements and authentication behavior.

## Install the Firebase plugin for Claude Code

Use the plugin route only after confirming its current marketplace source and package identifier. Marketplace registration, plugin installation, and an active MCP connection are separate states.

The supplied installation references disagree between Firebase repositories. Consequently, this guide does not present either marketplace registration command as verified or label an unconfirmed package “official.”

### Step 1 - Confirm and add the Firebase plugin marketplace

In Claude Code, open the plugin manager:

`/plugin`

Marketplace registration makes packages discoverable. It does not install them or authenticate Firebase.

### Step 2 - Install the Firebase plugin

Install the package identified by the confirmed marketplace. If its marketplace name and package name are both `firebase`, the terminal installation command is:

`claude plugin install firebase@firebase
`

That identifier is conditional on the marketplace manifest; it is not proof of provenance.

Inspect the package contents before adoption. Determine whether it supplies [MCP configuration](https://agentkit.best/blog/claude-code-guides/claude-code-mcp-configuration-a-practical-setup-guide), Agent Skills, or both. Do not add a second manual Firebase server merely because installation has completed.

### Step 3 - Confirm the Plugin Is Available

Return to `/plugin` to inspect installation and enablement. Then inspect MCP connection status inside Claude Code:

`/mcp
`

An installed plugin may not be enabled for the current scope or loaded into the active session. Follow the interface’s activation instructions rather than repeatedly reinstalling it.

> ***Expected state:**** The intended package is enabled, its Firebase server connects, and tools appear. Cloud access still requires the verification steps below.*

## Configure the Firebase MCP server manually

**Manual Firebase MCP setup registers a startup command directly with Claude Code.** Run it from the application directory, especially when a repository contains multiple applications.

### Add Firebase MCP to Claude Code

`claude mcp add --transport stdio --scope local firebase -- npx -y firebase-tools@latest mcp
`

The meaningful parts are:

The `-y` option does not approve Firebase writes. npm execution, Claude Code tool approval, and cloud authorization are different controls.

For team use, pin a reviewed Firebase Tools version and update it deliberately. Also inspect existing registrations before adding another server with overlapping tools.

### Set explicit project context when needed

In a monorepo, register and launch Claude Code from the Firebase application directory. Check existing overrides if behavior differs from that directory’s configuration.

Inspect supported server options with:

`npx -y firebase-tools@latest mcp --help
`

Use directory flags only when the installed release documents their syntax. Starting an MCP process directly does not register it with Claude Code.

### Limit exposed Firebase features

If your release supports feature filtering, select documented identifiers from its help or documentation. Do not copy an assumed `--only` list across versions.

Filtering reduces exposed tools; it does not replace IAM or restrict every shell command Claude Code might run.

![Image](https://cdn.agentkit.best/blog/cfai-media/2f53b6f4c25653e8b1aa66032775d3cb9ec27d692ddfed5d51da661fbd6b7b23-3ac434fa556cbb75a5b1f78675c6990e891a8167c363798a2ed3cb5f12b82ed9.jpg)

## Verify the connection and run your first safe workflows

Verify Firebase MCP connection status, repository context, and live access separately. Seeing tools in Claude Code proves discovery—not correct project selection or successful authorization.

First inspect `/mcp`. Then use narrowly scoped requests. A read-only prompt communicates intent, but restricted credentials and tool permissions provide stronger protection.

### Read-only verification prompts

### What a successful result should show

Use this reusable acceptance checklist:

A login listing alone may not establish the identity used by a process with credential overrides. Inspect those overrides without displaying secret values.

Check repository diffs and tool history. For sensitive environments, consult available audit records; an empty Git diff does not prove no remote changes occurred.

### Stop if the project context is wrong

Stop before any write-capable workflow if the identity, project ID, or environment is unexpected.

Inspect the working directory, Firebase configuration, aliases, explicit overrides, and authentication context. Correct one cause at a time, then repeat verification.

## What Claude Code can do with Firebase MCP and agent skills

Available operations depend on the installed tools, credentials, permissions, and project setup. Treat the active tool inventory as the capability boundary—not a broad Firebase feature list.

Agent Skills provide task-specific instructions. They do not authenticate a session or grant cloud access.

### High-value Firebase workflows

Do not infer that MCP implements every workflow in this table. Claude Code may instead read local code or propose a Firebase CLI command.

For the hypothetical SaaS team, Firestore modeling can begin without reading customer records. Share a sanitized schema and representative synthetic examples first.

### Firebase MCP vs. Agent Skills vs. Firebase CLI

**Progressive disclosure** means relevant skill instructions can load when needed instead of placing all guidance into the initial context. It does not guarantee lower token use or correct generated code.

### Install Firebase agent skills

Confirm repository provenance and installer syntax against Firebase Agent Skills documentation before installation. The supplied references identify inconsistent repository names, so no Skills installation command is presented here as verified.

Review the installer’s destination and select the intended Claude Code scope. Prefer project-specific installation when guidance belongs to one repository.

Check whether the Firebase plugin already supplies equivalent skills. Duplicate or conflicting instructions can make behavior less predictable.

After installation, inspect the installed skill files and Claude Code’s available-skills interface. Confirm that a relevant task discovers the intended skill. Discovery is distinct from evidence that the skill executed correctly.

### Safe prompts to try

Generated rules, implementation plans, and patches still require review and relevant tests.

## Security and troubleshooting checklist

A local MCP server can still change production resources. Prompt wording, tool permissions, IAM, and Firebase Security Rules operate at different layers.

### Production safety checklist

Read operations can disclose sensitive information and incur usage costs. Request only the minimum data needed, even during troubleshooting.

Claude Code permission settings can restrict tool execution, but their exact behavior depends on configuration. Review shell access alongside MCP permissions; restricting one path does not necessarily restrict another.

![Image](https://cdn.agentkit.best/blog/cfai-media/a4bfdce1e8a15f2b3207b7efa47d92bbe51f1fd8f536a259d331f1be7ec0c365-e7fd1d2a76bf55c72590a1be8e43895f8c672df95d54be2854a3c1c574f3ff94.jpg)

### Common setup problems

Do not assign Owner or Editor as a generic fix. Missing `firebase.json` also does not explain every cloud-access failure.

### Diagnostic order

Change one variable at a time. Reauthentication cannot fix an unsupported tool, and a package update cannot correct an unintended project alias.

Before sharing logs, remove tokens, account details, document contents, and sensitive project identifiers. Preserve error categories and version information for diagnosis.

## Frequently asked questions

### What is the Firebase MCP server for Claude Code?

The Firebase MCP server is a local integration that connects Claude Code to your Firebase project. It uses the Model Context Protocol to expose Firebase tools—like Firestore, Authentication, and Crashlytics—directly to your AI agent, allowing it to perform operations securely without requiring manual service account keys.

### How does the Firebase plugin differ from manual MCP registration?

Manual MCP registration is the route this guide leads with, because the available plugin installation references point to conflicting repositories. Confirm the current marketplace source and package identifier before using the plugin route; it offers packaged defaults, while manual registration gives explicit control over the startup command and directory context.

### Do Firebase Agent Skills grant access to my cloud project?

No. Agent Skills provide task-specific guidance and modern SDK patterns to help Claude Code write accurate, secure code. They do not grant cloud access; the Firebase MCP server provides the tools and actual connectivity, while your local Firebase CLI authentication determines your permissions.

### How do I verify that Claude Code is targeting the correct project?

Always use read-only prompts to confirm project context before running operations. Ask Claude Code to list the current resolved project ID and verify it matches your intended Firebase development environment. Never perform mutations or deployments until you have explicitly confirmed the project ID within the active session.

### Are my production resources protected when using Claude Code?

Claude Code interacts with your project using your own identity and credentials. To protect production, always isolate your development projects, apply least-privilege IAM roles, and require human review for any code changes, security rule modifications, or database mutations before they are deployed to a production environment.

### Can I limit the tools exposed to Claude Code?

Possibly, depending on your release. If feature filtering is supported, read the identifiers from `npx -y firebase-tools@latest mcp --help` rather than copying a list from a tutorial. Filtering reduces exposed tools; it does not replace IAM authorization or restrict shell commands.

**Read more**:

## Conclusion

A reliable Claude Code Firebase integration requires choosing a single setup route, authenticating properly, and verifying your project ID using non-mutating checks before making changes. While MCP, Agent Skills, and the Firebase CLI streamline operations and offer guidance, they do not replace strict IAM permissions, code reviews, and explicit human approval. 

Keep setup simple for single projects, and evaluate reusable workflows as you scale across repositories—always ensuring Firebase credentials and core decisions remain firmly under your control.
