Enables interaction with Google Cloud Datastore, providing tools for listing entity kinds, retrieving specific entities by key, querying and filtering entities with pagination, and counting entities with optional filters.
MCP Datastore Server
An MCP (Model Context Protocol) server for Google Cloud Datastore that provides simple query capabilities.
Features
- List Kinds: Get all available entity kinds (tables) in your Datastore
- Get Entity: Retrieve a specific entity by key
- Query Entities: Basic querying with pagination
- Filter Entities: Simple equality filtering on any field (including key fields)
- Count Entities: Count entities in a kind with optional filtering
Setup
- Install dependencies:
- Set up authentication:
- Set
GOOGLE_CLOUD_PROJECT
environment variable - Set
GOOGLE_APPLICATION_CREDENTIALS
to point to your service account key file - Or use Application Default Credentials (ADC)
- Set
- Build the project:
- Run the server:
Available Tools
datastore_list_kinds
Lists all available entity kinds in the Datastore.
datastore_get
Gets an entity by its key.
kind
: Entity kindkey
: Entity key (name or ID)parent
: Parent key (optional)
datastore_query
Queries entities with optional pagination.
kind
: Entity kind to querylimit
: Maximum results (default: 100)offset
: Results to skip (default: 0)
datastore_filter
Filters entities by field equality.
kind
: Entity kind to queryfield
: Field name to filter on (including__key__
orkey
)value
: Value to match exactlylimit
: Maximum results (default: 100)
datastore_count
Counts entities in a kind with optional filtering.
kind
: Entity kind to countfield
: Field name to filter on (optional)value
: Value to match exactly (required if field is provided)
Examples
An 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.
Related MCP Servers
- -securityFlicense-qualityAn MCP server that enables interaction with Google's Cloud Healthcare API, allowing users to manage healthcare data, FHIR resources, DICOM stores, and healthcare datasets through natural language commands.Last updated -Python
- -securityFlicense-qualityAn MCP Server that enables interaction with Google Cloud's Data Loss Prevention (DLP) API, allowing users to discover, classify, and protect sensitive data through natural language commands.Last updated -Python
- -securityFlicense-qualityAn MCP (Multi-Agent Conversation Protocol) Server providing natural language access to Google's Cloud Datastore services through the v1beta1 API.Last updated -Python
- -securityFlicense-qualityAn MCP Server that enables interaction with Google Cloud SQL Admin API, allowing users to manage Cloud SQL database instances through natural language commands.Last updated -Python