Firestore MCP Server
Firestore MCP 服务器
一个用于直接与 Google Firestore 交互的 MCP(模型上下文协议)服务器。该服务器提供了一个简洁的界面,用于通过 Claude Desktop 创建、读取、更新和删除 Firestore 文档。
特征
在 Firestore 集合中创建文档
从 Firestore 集合中读取文档
更新现有文档
删除文档
使用筛选、排序和限制来查询文档
列出可用的集合
Related MCP server: GCP MCP
设置
安装依赖项:
npm install构建项目:
npm run build配置 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
This server cannot be deployed
Maintenance
Related MCP Connectors
Interact with your Google Cloud Firestore resources using natural language commands.
Personal CRM for Claude. Contacts live as plain-text files in your own Google Drive.
Multiple Google accounts (Gmail, Calendar, Drive, Contacts, Tasks) in one Claude connector.
Give Claude only the Google Drive files you choose. Every action logged.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceConnects Claude Desktop directly to databases, allowing it to explore database structures, write SQL queries, analyze datasets, and create reports through an API layer with tools for table exploration and query execution.3,303 PyPI419Mozilla Public 2.0
- FlicenseBqualityDmaintenanceEnables managing Google Cloud Platform resources through natural language commands in Claude Desktop, supporting comprehensive operations across compute, storage, databases, networking, monitoring, and IAM without manual credential setup.5620-
- FlicenseNot gradedqualityDmaintenanceProvides Claude Desktop with secure access to multiple database connections, allowing users to query MySQL, PostgreSQL, SQLite, and SQL Server databases directly through natural language.-
- AlicenseNot gradedqualityDmaintenanceConnects Claude Desktop to Google Docs and Google Drive, enabling comprehensive document reading, writing, formatting, structuring, and complete Drive file management including shared drives support through OAuth 2.0 authentication.6 npm3MIT