Skip to main content
The Agent Development Kit (ADK) is Google’s open-source framework for building AI agents. Chroma integrates with ADK via the Chroma MCP server, giving your agents access to semantic memory, knowledge base retrieval, and persistent context across sessions.

Prerequisites

  • Python 3.10+
  • uvx installed (curl -LsSf https://astral.sh/uv/install.sh | sh)

Setup

Chroma Cloud is a fully managed, serverless database-as-a-service. Get started in 30 seconds - $5 in free credits included.
1

Install and log in

Then authenticate with Chroma Cloud:
2

Create a database

3

Get your connection variables

This will output your CHROMA_TENANT, CHROMA_DATABASE, and CHROMA_API_KEY. Use them in the code below.
4

Create your agent

Python

Example: Semantic Memory Agent

This example builds a personal assistant that uses Chroma as a persistent semantic memory store. The agent remembers facts from past conversations — user preferences, project context, decisions — and recalls them when relevant.The agent’s instruction tells it to create a Chroma collection for storing memories, and to use it for storage and retrieval:
Python
With this setup, a conversation might look like:
For a more in-depth look at building agentic memory with Chroma, see the Agentic Memory guide.

Available Tools

Once connected, your ADK agent will have access to the following Chroma tools:

Collection Management

Document Operations

Resources