mcp-registry/firebase-mcp

    ==================
      
       /// MCP ///
      /// FIR ///
        
    ==================
        
    [server:online]
    [protocol:ready]

firebase-mcp

by gannonh

Model Context Protocol (MCP) server that lets AI assistants directly use Firebase services (Firestore, Storage, Authentication).

184
33
Open Source

Installation

1. Prerequisites
• Node.js v18 or later
• Firebase CLI (`npm i -g firebase-tools`)
• A Firebase/Google-Cloud project with billing enabled
2. Clone & install
git clone https://github.com/gannonh/firebase-mcp.git cd firebase-mcp npm install
3. Configure environment values
• Copy `.env.example` (if present) to `.env` and fill in keys such as:
OPENAI_API_KEY=<your-openai-key> MCP_ALLOWED_ORIGINS=http://localhost:3000,https://yourapp.com
• Or use Firebase runtime config:
firebase functions:config:set openai.key="<YOUR_OPENAI_KEY>" mcp.allowed_origins="http://localhost:3000"
4. Link the repo to your Firebase project
firebase login firebase use --add # pick or create a project
5. Run locally for testing
npm run build # or ts-node for dev firebase emulators:start --only functions
Endpoints will be available at `http://127.0.0.1:5001/<project-id>/<region>/mcp/*`.
6. Deploy to production
firebase deploy --only functions
Optional
• If the repo contains Hosting, deploy both: `firebase deploy --only hosting,functions`
• Add CI by using the supplied GitHub Action workflow ( `.github/workflows/deploy.yml` ).

Documentation

License: MIT License
Updated 7/15/2025