Firebase MCP logo

Firebase MCP

by gannonh

Firebase MCP enables AI assistants to work directly with Firebase services like Firestore, Storage, and Authentication. It allows AI clients to interact with your Firebase project.

View on GitHub

Last updated: N/A

What is Firebase MCP?

Firebase MCP is a server that allows AI assistants to interact with Firebase services. It provides tools for managing data in Firestore, uploading files to Storage, and handling user authentication.

How to use Firebase MCP?

To use Firebase MCP, you need a Firebase project with service account credentials and a Node.js environment. Install the server and configure it with your service account key path and storage bucket. Then, configure your AI client (Claude Desktop, Augment Code, VS Code, or Cursor) to use the Firebase MCP server.

Key features of Firebase MCP

  • Firestore document management (add, list, get, update, delete, query)

  • Firebase Storage file management with upload capabilities (from text, base64, local file paths, and URLs)

  • User authentication management (get user by ID or email)

  • Integration with popular AI clients (Claude Desktop, Augment Code, VS Code, Cursor)

  • Automatic content type detection for Storage uploads

  • Generation of permanent public URLs for uploaded files

Use cases of Firebase MCP

  • Building AI-powered applications that require access to Firebase data

  • Automating Firebase tasks using AI assistants

  • Creating AI-driven content management systems

  • Enabling AI clients to interact with user authentication data

  • Developing intelligent chatbots that can access and manipulate Firebase resources

FAQ from Firebase MCP

How do I configure the server?

You can configure the server either via npx (recommended) or by installing it locally. You'll need to provide the path to your Firebase service account key and the Firebase Storage bucket name.

What AI clients are supported?

The server works with MCP client applications such as Claude Desktop, Augment Code, VS Code, and Cursor.

How do I upload files to Firebase Storage?

You can use the storage_upload tool to upload files from text, base64 content, or local file paths. The storage_upload_from_url tool allows you to import files directly from external URLs.

What permissions are required for the service account?

The service account needs to have the necessary permissions to access Firestore, Storage, and Authentication services in your Firebase project.

What do I do if I get a 'Storage Bucket Not Found' error?

Verify your bucket name in the Firebase Console → Storage and ensure the correct bucket name is set in the FIREBASE_STORAGE_BUCKET environment variable.