Firebase CLI and MCP Server [![Actions Status][gh-actions-badge]][gh-actions] [![Node Version][node-badge]][npm] [![NPM version][npm-badge]][npm] [](https://cursor.com/en/install-mcp?name=firebase&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImZpcmViYXNlLXRvb2xzIiwibWNwIiwiLS1kaXIiLCIuIl19)
The Firebase Command Line Interface (CLI) Tools can be used to test, manage, and deploy your Firebase project from the command line. This repository is also the home of the official Firebase MCP Server. For more information, please see the Firebase MCP Server documentation.
- Deploy code and assets to your Firebase projects
- Run a local web server for your Firebase Hosting site
- Interact with data in your Firebase database
- Import/Export users into/from Firebase Auth
To get started with the Firebase CLI, read the full list of commands below or check out the documentation.
Installation
Node Package
You can install the Firebase CLI using npm (the Node Package Manager). Note that you will need to install Node.js and npm. Installing Node.js should install npm as well.
To download and install the Firebase CLI run the following command:
npm install -g firebase-toolsThis will provide you with the globally accessible firebase command.
Standalone Binary
The standalone binary distribution of the Firebase CLI allows you to download a firebase executable without any dependencies.
To download and install the CLI run the following command:
curl -sL firebase.tools | bashCommands
The command firebase --help lists the available commands and firebase <command --help shows more details for an individual command.
If a command is project-specific, you must either be inside a project directory with an active project alias or specify the Firebase project id with the -P <projectid flag.
Below is a brief list of the available commands and their function: