mcp-server-firebase
0
The MCP Server Firebase project is a Firebase-based implementation of a Model Context Protocol (MCP) server. It supports both local and Cloudflare Workers modes to interact with Firestore databases, providing functionalities such as document management and query capabilities.
MCP Server Firebase
A Model Context Protocol (MCP) server implementation based on Firebase, offering two operation modes:
- Local Node.js mode (using Firebase Admin SDK)
- Cloudflare Workers mode (using Firebase REST API)
Features
- Firestore database operations (read, write, update, delete documents)
- Query lists of collections and subcollections
- Support for query filters
Requirements
- Node.js 18 or higher
- Firebase project
- Firebase service account (for local mode)
- Firebase Web API key (for Cloudflare Workers mode)
Directory Structure
src/index.ts
- Entry point for local Node.js modesrc/worker.ts
- Entry point for Cloudflare Workers modesrc/mcp/
- MCP server implementation codesrc/lib/
- Common utility functions
Security Notes
- Do not commit service account keys or API keys to Git repositories
- Set sensitive information as environment variables or use Secrets before deploying
- Set appropriate security rules for Firestore