Firebase services including Auth, Firestore and Storage.
Firebase MCP bridges the gap between Large Language Models (LLMs) and the robust backend services of Firebase, enabling AI assistants to seamlessly interact with your data and infrastructure. By leveraging the Model Context Protocol (MCP), this integration empowers LLMs to perform real-time operations on:
This server is designed to be compatible with leading MCP client applications such as Claude Desktop, Augment Code, VS Code, and Cursor, providing a unified experience across your AI development workflow.
Choose your preferred installation method:
npx
(Recommended)This method offers the simplest setup and ensures you're always running the latest version.
Locate your MCP settings file:
~/Library/Application Support/Claude/claude_desktop_config.json
~/Library/Application Support/Code/User/settings.json
[project root]/.cursor/mcp.json
Add the following configuration to your MCP settings file:
{ "firebase-mcp": { "command": "npx", "args": [ "-y", "@gannonh/firebase-mcp" ], "env": { "SERVICE_ACCOUNT_KEY_PATH": "/absolute/path/to/serviceAccountKey.json", "FIREBASE_STORAGE_BUCKET": "your-project-id.appspot.com" } } }
/absolute/path/to/serviceAccountKey.json
with the actual path to your Firebase service account key file.your-project-id.appspot.com
with your Firebase Storage bucket name. If you haven't customized your storage bucket, it will follow this naming convention.This method provides more control over the installation process.
Install the package:
npm install -g @gannonh/firebase-mcp
Locate your MCP settings file: (See paths above)
Add the following configuration to your MCP settings file:
{ "firebase-mcp": { "command": "node", "args": [ "/path/to/global/node_modules/@gannonh/firebase-mcp/dist/index.js" ], "env": { "SERVICE_ACCOUNT_KEY_PATH": "/absolute/path/to/serviceAccountKey.json", "FIREBASE_STORAGE_BUCKET": "your-project-id.appspot.com" } } }
/path/to/global/node_modules/@gannonh/firebase-mcp/dist/index.js
with the actual path to the index.js
file within the installed package. You can find this path by running npm list -g @gannonh/firebase-mcp
./absolute/path/to/serviceAccountKey.json
with the actual path to your Firebase service account key file.your-project-id.appspot.com
with your Firebase Storage bucket name.After configuring Firebase MCP, verify the installation by prompting your AI client with:
"Please test all Firebase MCP tools."
This will trigger a series of tests to ensure that all Firebase services are correctly connected and functioning.
Firebase MCP v1.3.3 introduces advanced file upload capabilities, enabling seamless integration of files into your Firebase Storage. This release includes two specialized tools:
storage_upload
: Upload files from various sources, including text, base64 encoded data, and local file paths.storage_upload_from_url
: Import files directly from external URLs, streamlining content ingestion.Local File Path (Recommended for all file types)
{ filePath: "my-report.pdf", content: "/path/to/local/file.pdf" }
Base64 Data URL (Ideal for smaller files)
{ filePath: "my-image.png", content: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..." }
Plain Text (Suitable for text-based files)
{ filePath: "readme.md", content: "# My README\n\nThis is a markdown file." }
External URL (Utilizing storage_upload_from_url
)
{ filePath: "document.pdf", url: "https://example.com/document.pdf" }
โ ๏ธ Important: For optimal reliability with binary files (e.g., images, PDFs), always prioritize the direct file path method.
Configure the following environment variables for Firebase MCP:
SERVICE_ACCOUNT_KEY_PATH
: The absolute path to your Firebase service account key JSON file (required).FIREBASE_STORAGE_BUCKET
: The name of your Firebase Storage bucket (optional). If not specified, it defaults to [projectId].appspot.com
.Refer to the following paths for configuring Firebase MCP within your preferred client application:
~/Library/Application Support/Claude/claude_desktop_config.json
~/Library/Application Support/Code/User/settings.json
[project root]/.cursor/mcp.json
| Tool | Description document.
๐ โ๏ธ Biomedical research server providing access to PubMed, ClinicalTrials.gov, and MyVariant.info.
๐ MCP server that provides SQL analysis, linting, and dialect conversion using [SQLGlot](https://github.com/tobymao/sqlglot)
๐ ๐ All-in-one MCP server for Postgres development and operations, with tools for performance analysis, tuning, and health checks
Supabase MCP Server with support for SQL query execution and database exploration tools