Skip to main content
Glama

Firestore MCP Server

by gitskyflux

Firestore MCP 服务器

一个用于直接与 Google Firestore 交互的 MCP(模型上下文协议)服务器。该服务器提供了一个简洁的界面,用于通过 Claude Desktop 创建、读取、更新和删除 Firestore 文档。

特征

  • 在 Firestore 集合中创建文档
  • 从 Firestore 集合中读取文档
  • 更新现有文档
  • 删除文档
  • 使用筛选、排序和限制来查询文档
  • 列出可用的集合

设置

  1. 安装依赖项
    npm install
  2. 构建项目
    npm run build
  3. 配置 Claude Desktop :将以下内容添加到您的claude_desktop_config.json中:
    "firestore-mcp": { "command": "node", "args": [ "/path/to/firestore-mcp/build/index.js" ], "env": { "GOOGLE_CLOUD_PROJECTS": "project-id" } }
    将 args 中的路径替换为 index.js 的实际路径。在 GOOGLE_CLOUD_PROJECTS 中定义以逗号分隔的项目 ID 列表。示例: google-project-id1,google-project-id2第一个列出的项目是默认项目。应用程序希望在每个项目的 keys 文件夹中找到 .json 凭证文件。例如:keys/google-project-id1.json、keys/google-project-id2.json。请确保云服务帐户具有与 Cloud Firestore 交互的适当权限,例如Cloud Datastore Owner或更低权限。

可用工具

  • getDocument :从集合中根据 ID 获取文档
  • createDocument :在集合中创建新文档
  • updateDocument :更新现有文档
  • deleteDocument :删除文档
  • queryDocuments :使用过滤器、排序和限制查询文档
  • listCollections :列出所有可用的集合

Claude Desktop 中的示例用法

以下是如何使用 Claude Desktop 中每个工具的示例:

获取文档

Get the document with ID "user123" from the "users" collection

创建文档

Create a new document in the "users" collection with the following data: { "name": "John Doe", "email": "john@example.com", "age": 30 }

更新文档

Update the document with ID "user123" in the "users" collection to change the age to 31

删除文档

Delete the document with ID "user123" from the "users" collection

查询文档

Find all users over 25 years old, ordered by name

列表集合

List all available Firestore collections

发展

  • 监视模式npm run dev
-
security - not tested
-
license - not tested
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

通过 Claude Desktop 直接与 Google Firestore 数据库交互的界面,支持跨集合创建、读取、更新和查询文档等操作。

  1. 特征
    1. 设置
      1. 可用工具
        1. Claude Desktop 中的示例用法
          1. 获取文档
          2. 创建文档
          3. 更新文档
          4. 删除文档
          5. 查询文档
          6. 列表集合
        2. 发展

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            Enables interaction with NeoDB, a social book cataloging service, by providing tools to fetch user info, search books, and retrieve detailed book information through its API.
            Last updated -
            2
            Python
            MIT License
            • Apple
          • A
            security
            F
            license
            A
            quality
            Integrates local Zotero libraries with Claude's Desktop interface, allowing users to access and manage their library collections via a local API.
            Last updated -
            6
            12
            Python
          • A
            security
            F
            license
            A
            quality
            A server providing a unified interface to interact with Firebase services, including Authentication, Firestore, and Storage.
            Last updated -
            9
            7
            TypeScript
          • -
            security
            A
            license
            -
            quality
            Integrates with Google Drive to enable listing, searching, and reading files, plus reading and writing to Google Sheets.
            Last updated -
            91
            86
            TypeScript
            MIT License

          View all related MCP servers

          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/gitskyflux/firestore-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server