Firestore文档管理工具

这是一个通过REST API对Firestore文档和集合进行读取、写入、列出和删除的管理工具,适用于Firebase云数据库的日常开发与数据管理场景。

  • by PetrefiedThunder
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 PetrefiedThunder/mcp-firebase

使用说明

mcp-firebase

Read, write, and list Firestore documents and collections via the REST API.

Tools

Tool Description
get_document Get a Firestore document.
list_documents List documents in a collection.
create_document Create a Firestore document.
delete_document Delete a Firestore document.
list_collections List root collections (subcollection discovery).

Configuration

Variable Required Description
FIREBASE_PROJECT_ID Yes Firebase project ID
FIREBASE_API_KEY No Firebase Web API key

Installation

git clone https://github.com/PetrefiedThunder/mcp-firebase.git
cd mcp-firebase
npm install
npm run build

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "firebase": {
      "command": "node",
      "args": ["/path/to/mcp-firebase/dist/index.js"],
      "env": {
        "FIREBASE_PROJECT_ID": "your-firebase-project-id",
        "FIREBASE_API_KEY": "your-firebase-api-key"
      }
    }
  }
}

Usage with npx

npx mcp-firebase

License

Apache-2.0