Firebase MCP
Overview
- Firestore: Document database operations
- Storage: File management with robust upload capabilities
- Authentication: User management and verification
Quick Start
Prerequisites
- Firebase project with service account credentials
- Node.js environment
1. Install MCP Server
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json
- Augment:
~/Library/Application Support/Code/User/settings.json
- Cursor:
[project root]/.cursor/mcp.json
Configure for npx (recommended)
Configure for local installation
2. Test the Installation
Latest Features: Storage Upload (v1.3.3)
- `storage_upload`: Upload files from text, base64 content, or local file paths
- `storage_upload_from_url`: Import files directly from external URLs
Key Benefits
- Permanent Public URLs: All uploads generate non-expiring public URLs
- Content Type Detection: Automatic detection from file extensions and data
- Multiple Upload Methods: Flexible options for different use cases
- Rich Response Formatting: Clear, well-structured upload confirmations
Upload Methods
- Local File Path (Recommended for all file types)
- Base64 Data URL (For smaller files)
- Plain Text (For text files)
- External URL (Using storage_upload_from_url)
Important: For binary files like images and PDFs, always use the direct file path method for best reliability.
Setup & Configuration
1. Firebase Configuration
- Go to Firebase Console Project Settings Service Accounts
- Click "Generate new private key"
- Save the JSON file securely
2. Environment Variables
SERVICE_ACCOUNT_KEY_PATH
: Path to your Firebase service account key JSON (required)
FIREBASE_STORAGE_BUCKET
: Bucket name for Firebase Storage (optional, defaults to[projectId].appspot.com
)
3. Client Integration
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
VS Code / Augment
~/Library/Application Support/Code/User/settings.json
Cursor
[project root]/.cursor/mcp.json
API Reference
Firestore Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Storage Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Authentication Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Developer Guide
Installation & Building
Running Tests
Project Structure
Troubleshooting
Common Issues
Storage Bucket Not Found
- Verify your bucket name in Firebase Console Storage
- Set the correct bucket name in
FIREBASE_STORAGE_BUCKET
environment variable
Firebase Initialization Failed
- Check that your service account key path is correct and absolute
- Ensure the service account has proper permissions for Firebase services
Composite Index Required
- Look for the provided URL in the error message
- Follow the link to create the required index in Firebase Console
- Retry your query after the index is created (may take a few minutes)
Response Formatting
Storage Upload Response Example
Contributing
- Fork the repository
- Create a feature branch
- Implement changes with tests (80%+ coverage required)
- Submit a pull request
License
Related Resources
Firebase MCP
Overview
- Firestore: Document database operations
- Storage: File management with robust upload capabilities
- Authentication: User management and verification
Quick Start
Prerequisites
- Firebase project with service account credentials
- Node.js environment
1. Install MCP Server
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json
- Augment:
~/Library/Application Support/Code/User/settings.json
- Cursor:
[project root]/.cursor/mcp.json
Configure for npx (recommended)
Configure for local installation
2. Test the Installation
Latest Features: Storage Upload (v1.3.3)
- `storage_upload`: Upload files from text, base64 content, or local file paths
- `storage_upload_from_url`: Import files directly from external URLs
Key Benefits
- Permanent Public URLs: All uploads generate non-expiring public URLs
- Content Type Detection: Automatic detection from file extensions and data
- Multiple Upload Methods: Flexible options for different use cases
- Rich Response Formatting: Clear, well-structured upload confirmations
Upload Methods
- Local File Path (Recommended for all file types)
- Base64 Data URL (For smaller files)
- Plain Text (For text files)
- External URL (Using storage_upload_from_url)
Important: For binary files like images and PDFs, always use the direct file path method for best reliability.
Setup & Configuration
1. Firebase Configuration
- Go to Firebase Console Project Settings Service Accounts
- Click "Generate new private key"
- Save the JSON file securely
2. Environment Variables
SERVICE_ACCOUNT_KEY_PATH
: Path to your Firebase service account key JSON (required)
FIREBASE_STORAGE_BUCKET
: Bucket name for Firebase Storage (optional, defaults to[projectId].appspot.com
)
3. Client Integration
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
VS Code / Augment
~/Library/Application Support/Code/User/settings.json
Cursor
[project root]/.cursor/mcp.json
API Reference
Firestore Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Storage Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Authentication Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Developer Guide
Installation & Building
Running Tests
Project Structure
Troubleshooting
Common Issues
Storage Bucket Not Found
- Verify your bucket name in Firebase Console Storage
- Set the correct bucket name in
FIREBASE_STORAGE_BUCKET
environment variable
Firebase Initialization Failed
- Check that your service account key path is correct and absolute
- Ensure the service account has proper permissions for Firebase services
Composite Index Required
- Look for the provided URL in the error message
- Follow the link to create the required index in Firebase Console
- Retry your query after the index is created (may take a few minutes)
Response Formatting
Storage Upload Response Example
Contributing
- Fork the repository
- Create a feature branch
- Implement changes with tests (80%+ coverage required)
- Submit a pull request