MCP Datastore Server
Provides access to Google Cloud Datastore (Firestore in Datastore mode), enabling operations such as creating, updating, and deleting entities, running complex queries and aggregations, and managing transactions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Datastore Server Find all User entities where age is greater than 25"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Datastore Server
A Model Context Protocol (MCP) server that provides access to Google Firestore in Datastore mode.
Features
This MCP server exposes the following tools for interacting with Google Cloud Datastore:
Entity Operations
datastore_get: Get an entity by kind and key
datastore_insert: Insert a new entity
datastore_update: Update an existing entity
datastore_upsert: Insert or update an entity
datastore_delete: Delete an entity by kind and key
Query Operations
datastore_query: Query entities with filters and ordering
datastore_runAggregationQuery: Run aggregation queries (count, sum, avg)
datastore_listKinds: List all entity kinds (types) in the Datastore
Key Operations
datastore_allocateIds: Allocate IDs for incomplete keys
datastore_createKey: Create a complete or incomplete key
Transaction Operations
datastore_runInTransaction: Execute multiple operations in a transaction
Related MCP server: Cloud Datastore API MCP Server
Setup
Prerequisites
A Google Cloud project with Datastore API enabled
Service account credentials with appropriate Datastore permissions
Installation
npm install
npm run buildConfiguration
Set the following environment variables:
# Path to your service account JSON key file
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json
# Your Google Cloud project ID
export GOOGLE_CLOUD_PROJECT=your-project-idOr you can provide them when running the server:
GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json GOOGLE_CLOUD_PROJECT=your-project-id npm startUsage
Running the Server
npm startUsing with Claude Desktop
Add this to your Claude Desktop configuration file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"datastore": {
"command": "node",
"args": [
"d:\\projects\\mcp-datastore\\build\\index.js"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "C:\\path\\to\\service-account-key.json",
"GOOGLE_CLOUD_PROJECT": "your-project-id"
}
}
}
}Tool Examples
Get an Entity
{
"kind": "User",
"keyId": "12345"
}Insert an Entity
{
"kind": "User",
"data": {
"name": "John Doe",
"email": "john@example.com",
"age": 30
}
}Query Entities
{
"kind": "User",
"filters": [
{
"property": "age",
"operator": ">",
"value": 25
}
],
"orderBy": [
{
"property": "name",
"descending": false
}
],
"limit": 10
}Run Aggregation Query
{
"kind": "Order",
"aggregations": [
{
"type": "count",
"alias": "total_orders"
},
{
"type": "sum",
"property": "amount",
"alias": "total_amount"
}
]
}List Entity Kinds
{
"namespace": "optional-namespace" // Optional: specify namespace to list kinds from
}This returns all entity kinds (types) in your Datastore, including both user-defined kinds and system metadata kinds (prefixed with __Stat_).
License
MIT
Available Tools
11 toolsdatastore_allocateIdsC
Allocate IDs for incomplete keys
Inputs: kind (required), count (required), namespace.
datastore_createKeyC
Create a complete or incomplete key
Inputs: kind (required), keyId, namespace, path.
datastore_deleteC
Delete an entity from Datastore
Inputs: kind (required), keyId (required), namespace.
datastore_getC
Get an entity by kind and key from Datastore
Inputs: kind (required), keyId (required), namespace, ancestors.
datastore_insertC
Insert a new entity into Datastore
Inputs: kind (required), data (required), keyId, namespace, +1 more.
datastore_listKindsB
List all entity kinds (types) in the Datastore by querying the kind metadata
Inputs: namespace.
datastore_queryC
Query entities from Datastore with optional filters, ordering, and pagination
Inputs: kind (required), filters, orderBy, limit, +3 more.
datastore_runAggregationQueryC
Run an aggregation query (count, sum, avg) on Datastore entities
Inputs: kind (required), aggregations (required), filters, namespace.
datastore_runInTransactionB
Execute multiple operations within a transaction
Inputs: operations (required).
datastore_updateC
Update an existing entity in Datastore
Inputs: kind (required), keyId (required), data (required), namespace, +1 more.
datastore_upsertC
Insert or update an entity in Datastore (upsert operation)
Inputs: kind (required), keyId (required), data (required), namespace, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Every tool has a clearly distinct purpose with no ambiguity. Each targets a specific Datastore operation (e.g., get vs. query vs. runAggregationQuery), and even similar-sounding tools like insert, update, and upsert are clearly differentiated in their descriptions.
All tools follow a consistent 'datastore_verbNoun' pattern with snake_case throughout. The naming is predictable and readable, making it easy to understand each tool's function at a glance.
With 11 tools, this server is well-scoped for Datastore operations. Each tool earns its place by covering essential CRUD, querying, transaction, and metadata functions without being overwhelming or sparse.
The toolset provides complete coverage for Datastore operations, including key management (allocateIds, createKey), CRUD (insert, get, update, delete, upsert), querying (query, runAggregationQuery), transactions (runInTransaction), and metadata (listKinds). There are no obvious gaps that would hinder agent workflows.
Maintenance
Related MCP Connectors
The Google Compute Engine MCP server is a fully-managed Model Context Protocol server that provides tools to manage Google Compute Engine resources through AI agents. It enables capabilities including instance management (creating, starting, stopping, resetting, listing), disk management, handling instance templates and group managers, viewing machine and accelerator types, managing images, and accessing reservation and commitment information. The server operates as a zero-deployment, enterprise-grade endpoint at https://compute.googleapis.com/mcp with built-in IAM-based security.
MCP server for interacting with the Supabase platform
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables large language models like Claude to perform comprehensive interactions with Firebase Firestore databases, supporting full CRUD operations, complex queries, and advanced features like transactions and TTL management.15 npm4MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP (Multi-Agent Conversation Protocol) Server providing natural language access to Google's Cloud Datastore services through the v1beta1 API.-
- FlicenseBqualityDmaintenanceAn MCP server that provides simple query capabilities for Google Cloud Datastore, allowing users to list kinds, retrieve entities, run basic queries with pagination, filter entities by equality, and count entities.51-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables interaction with Google Cloud Filestore API, allowing management of Filestore instances, backups, and shares through natural language commands.-