cloud-datastore-interface-gateway
Facilitates robust interaction with Google's Firestore database, enabling streamlined document lifecycle management including creation, retrieval, modification, erasure, and sophisticated data querying with customizable constraints.
Author

gitskyflux
Quick Info
Actions
Tags
Cloud Datastore Interface Gateway (MCP Implementation)
This module serves as an MCP (Model Context Protocol) access layer, specifically engineered to interface directly with the Google Cloud Firestore NoSQL database service. It furnishes a standardized, clean API surface accessible via the Claude Desktop environment for all fundamental data operations.
Core Capabilities
- Initiate new records within designated Firestore collections.
- Fetch existing records identified by their unique keys from collections.
- Execute in-place modifications to current document contents.
- Permanently remove specified documents.
- Perform complex data retrieval operations incorporating predicate filtering, sorting directives, and result count limitations.
- Enumerate all currently active collections within the configured project(s).
Deployment Instructions
-
Prerequisite Installation: Secure necessary project dependencies:
npm install
-
Compilation Step: Generate the executable output:
npm run build
-
Configuration for Claude Desktop: Integrate the following stanza into your
claude_desktop_config.jsonfile:"firestore-mcp": { "command": "node", "args": [ "/path/to/firestore-mcp/build/index.js" ], "env": { "GOOGLE_CLOUD_PROJECTS": "project-alpha,project-beta" } }
Substitute
/path/to/firestore-mcp/build/index.jswith the actual compiled entry point. PopulateGOOGLE_CLOUD_PROJECTSwith a comma-delimited string of target GCP project identifiers; the first listed ID establishes the default scope.Authentication Prerequisite: The system necessitates corresponding service account credential files (e.g.,
project-alpha.json) to reside within a localkeys/directory structure for each specified project ID. Ensure the associated service account possesses requisite IAM roles, such asCloud Datastore Owneror equivalent permissions, to permit Firestore interaction.
Exposed Functional Endpoints
- fetchRecord: Retrieves a single data entry using its collection path and unique identifier.
- injectRecord: Posts a newly structured document into a specified collection.
- modifyRecord: Overwrites or merges specified fields within an existing document.
- purgeRecord: Removes a document instance from its collection.
- searchRecords: Executes filtered, ordered, and optionally limited searches across documents.
- catalogCollections: Provides a manifest of all accessible data collections.
Operational Examples (via Claude Desktop Prompts)
Retrieving Data
Example: "Fetch the user record identified as 'user123' residing within the 'users' collection."
Data Ingestion
Example: "Insert a new record into the 'clients' collection containing the payload: {\"name\": \"Jane Smith\", \"status\": \"Active\"}."
Record Modification
Example: "Apply an update to document 'user123' in the 'users' collection to set the 'status' field to 'Inactive'."
Data Deletion
Example: "Execute the removal of document 'user123' from the 'users' collection."
Complex Data Retrieval
Example: "Locate all entries in the 'products' collection where the price exceeds 100, sorted descending by creation date."
Collection Listing
Example: "Generate a list of all available collection identifiers."
Maintenance Mode
- Real-time Monitoring:
npm run dev
WIKIPEDIA: Management solutions encompass the array of applications, control mechanisms, computational frameworks, and methodological approaches utilized by enterprises to effectively navigate shifting market dynamics, maintain competitive viability, and elevate operational efficacy. These systems are broadly categorized across departmental functions such as strategic foresight, workflow automation, information stewardship, personnel oversight, and analytical decision support.
