Firebase MCP Server
Provides tools for Firebase Authentication (user management) and Firestore (document/collection operations, advanced queries).
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Firebase MCP ServerCreate a new user with email test@example.com and password secret123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Firebase MCP Server for Railway
A Firebase Model Context Protocol (MCP) server designed for deployment on Railway.com using Streamable HTTP transport.
Features
Firebase Authentication: User management (create, read, update, delete users)
Firestore Database: Document and collection operations with advanced querying
HTTP/HTTPS API: Streamable HTTP transport for remote MCP client connections
Railway Ready: Optimized for Railway.com deployment with proper configuration
Related MCP server: Firebase Management MCP Server
Quick Deploy to Railway
Or manually:
Fork this repository
Connect to Railway.com
Set environment variables (see below)
Deploy!
Environment Variables
Required
Set these in Railway's environment variables:
# Firebase service account as JSON string (recommended for Railway)
FIREBASE_SERVICE_ACCOUNT_JSON='{"type":"service_account","project_id":"your-project",...}'
# OR use file path (less secure for cloud deployment)
# FIREBASE_SERVICE_ACCOUNT_PATH="/path/to/service-account.json"
# Optional API key for authentication
MCP_API_KEY="your-secret-api-key"Getting Firebase Service Account
Go to Firebase Console
Select your project → Settings → Service Accounts
Click "Generate new private key"
Copy the entire JSON content and set as
FIREBASE_SERVICE_ACCOUNT_JSON
Local Development
# Install dependencies
npm install
# Copy environment template
cp .env.example .env
# Edit .env with your Firebase credentials
# Run in development mode
npm run dev
# Build for production
npm run build
npm startAPI Endpoints
Once deployed on Railway, your server will have:
Health Check:
GET https://your-app.railway.app/healthMCP Endpoint:
POST https://your-app.railway.app/mcp
Connecting MCP Clients
Claude Desktop Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"firebase-remote": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-fetch", "https://your-app.railway.app/mcp"],
"env": {
"AUTHORIZATION": "Bearer your-secret-api-key"
}
}
}
}Other MCP Clients
Configure any MCP client to connect to:
URL:
https://your-app.railway.app/mcpTransport: Streamable HTTP
Auth:
Bearer your-secret-api-key(ifMCP_API_KEYis set)
Available Tools
Firebase Authentication
firebase_get_user- Get user by UIDfirebase_create_user- Create new user with email/passwordfirebase_list_users- List all users (with pagination)firebase_delete_user- Delete user by UID
Firestore Database
firebase_get_document- Get single documentfirebase_set_document- Create/overwrite documentfirebase_update_document- Update specific fieldsfirebase_delete_document- Delete documentfirebase_query_collection- Advanced collection queries with filters, ordering, limits
Example Usage
After connecting to Claude Desktop:
"Create a new user with email test@example.com and password secret123"
"Get all documents from the 'products' collection where price > 100, ordered by name"
"Update the user document in 'users' collection with ID 'user123' to set status to 'active'"Security Considerations
Always use HTTPS in production (Railway provides this automatically)
Set
MCP_API_KEYfor authenticationUse Firebase security rules to restrict database access
Never expose service account keys in client-side code
Deployment Architecture
MCP Client (Claude Desktop)
↓ HTTPS + Streamable HTTP
Railway.com Server
↓ Admin SDK
Firebase Project (Auth + Firestore)Local vs Official Firebase MCP
Feature | This Server | Official Firebase CLI MCP |
Deployment | ✅ Railway.com | ❌ Local only (stdio) |
Transport | ✅ Streamable HTTP | ❌ Stdio only |
Remote Access | ✅ Yes | ❌ No |
Tools Count | 9 core tools | 40+ tools |
Maintenance | Custom | Google maintained |
Use this server for remote/cloud deployments. Use the official Firebase CLI MCP for local development.
Support
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/petepc/fb-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server