---
title: "Introducing the MongoDB Google ADK Integration: Durable Memory for Agent State"
description: "The MongoDB Google ADK Integration provides developers with durable memory for agent state using MongoDB as the unified data platform. It introduces MongoDbSessionService to persist sessions, events, and scoped state with optimistic concurrency control, and MongoDBMemoryService that ingests session events idempotently and recalls memories through keyword matching across sessions. Working with Google ADK 2.0 and the Gemini Enterprise Agent Platform, the integration supports MongoDB Atlas and self-managed MongoDB 8.0+ deployments. Built-in search capabilities, including vector search via Voyage AI embeddings and hybrid search combining vector and full-text search through the $rankFusion stage, give agents fast access to operational data without separate systems. This unified architecture means developers can keep agent state, searchable data, and application records in the same database, eliminating separate databases, search engines, and synchronization pipelines."
---

# Introducing the MongoDB Google ADK Integration: Durable Memory for Agent State

[MongoDB](https://yomu.fyi/company/mongodb) · Nov 3, 2026

**Type:** Announcement

## Summary

The MongoDB Google ADK Integration provides developers with durable memory for agent state using MongoDB as the unified data platform. It introduces MongoDbSessionService to persist sessions, events, and scoped state with optimistic concurrency control, and MongoDBMemoryService that ingests session events idempotently and recalls memories through keyword matching across sessions. Working with Google ADK 2.0 and the Gemini Enterprise Agent Platform, the integration supports MongoDB Atlas and self-managed MongoDB 8.0+ deployments. Built-in search capabilities, including vector search via Voyage AI embeddings and hybrid search combining vector and full-text search through the $rankFusion stage, give agents fast access to operational data without separate systems. This unified architecture means developers can keep agent state, searchable data, and application records in the same database, eliminating separate databases, search engines, and synchronization pipelines.

## Context

AI agents require durable memory and context retention as they transition from prototypes to real-world applications, but developers currently lack a built-in solution and must build custom data store tooling. This integration addresses that gap by providing an ADK-native data and persistence layer for agent state using MongoDB.

## Approach / What changed

The solution provides two key services: MongoDbSessionService for persisting sessions and state with optimistic concurrency control, and MongoDBMemoryService for idempotent cross-session memory recall via keyword matching. It also leverages MongoDB’s built-in vector search (Voyage AI embeddings) and hybrid search ($rankFusion) for agent data retrieval. The integration works with Google ADK 2.0 and supports MongoDB Atlas and self-managed MongoDB 8.0+ deployments.

## Takeaways

- The integration includes MongoDbSessionService for persisting sessions, events, and scoped state with optimistic concurrency control and configurable collections.
- MongoDBMemoryService provides cross-session memory recall through idempotent ingestion of session events and keyword matching, preventing duplicate entries.
- Agents can leverage MongoDB’s built-in hybrid search that combines vector search via Voyage AI embeddings with full-text search using the $rankFusion aggregation stage.

## FAQ

### Which MongoDB deployment versions are supported?

The integration supports MongoDB Atlas and self-managed MongoDB 8.0+ deployments for vector and hybrid search. Developers can use a connection string or bring an existing PyMongo client.

### How does the integration handle concurrent session updates?

MongoDbSessionService includes optimistic concurrency control to help applications safely manage concurrent updates to session state and data.

### How is memory ingestion kept duplicate-free?

MongoDBMemoryService ingests session events idempotently, meaning duplicate entries are prevented when the same session is added again.

**Tags:** [Agent Memory](https://yomu.fyi/topic/agent-memory), [AI Agents](https://yomu.fyi/topic/ai-agents), [Google ADK](https://yomu.fyi/topic/google-adk), [MongoDB](https://yomu.fyi/topic/mongodb), [Vector Search](https://yomu.fyi/topic/vector-search)

- Source: [MongoDB](https://www.mongodb.com/company/blog/product-release-announcements/introducing-mongodb-google-adk-integration-durable-memory-agent-state)
- Source URL: https://www.mongodb.com/company/blog/product-release-announcements/introducing-mongodb-google-adk-integration-durable-memory-agent-state
- Ingested by Yomu: 2026-11-04T18:01:12.427Z

[Read original post](https://www.mongodb.com/company/blog/product-release-announcements/introducing-mongodb-google-adk-integration-durable-memory-agent-state)
