Chroma Memory
FreeNot checkedAn MCP server that gives Claude (and any MCP client) a shared team knowledge base with semantic search. Backed by ChromaDB and Google Gemini embeddings — works
About
An MCP server that gives Claude (and any MCP client) a shared team knowledge base with semantic search. Backed by ChromaDB and Google Gemini embeddings — works across languages (RU + EN).
README
An MCP server that gives Claude (and any MCP client) a shared team knowledge base with semantic search. Backed by ChromaDB and Google Gemini embeddings — works across languages (RU + EN).
How It Works
The server stores team knowledge as entries in ChromaDB. Each entry has a project, slug, title, content (Markdown), tags, type, and author. When someone asks a question, Claude runs a semantic search and answers with full context. When someone makes a decision worth sharing, they tell Claude to save it — and it's available to every team member.
Claude ──MCP──▶ chroma-memory-mcp ──▶ ChromaDB
│
▼
Gemini Embeddings
(multilingual RU+EN)
Quick Start
1. Start the server
git clone https://github.com/sfrangulov/chroma-memory-mcp
cd chroma-memory-mcp
export GOOGLE_API_KEY=your-gemini-api-key
docker compose up -d
The server is now available at http://localhost:3000/mcp.
2. Connect Claude Code
Add .mcp.json to your project root:
{
"mcpServers": {
"chroma-memory": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}
3. Connect Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"chroma-memory": {
"type": "http",
"url": "http://localhost:3000/mcp"
}
}
}
MCP Tools
| Tool | Description | Key params |
|---|---|---|
write_entry |
Create a new memory entry | project, slug, title, content, tags?, type? |
read_entry |
Read entry by project + slug | project, slug |
update_entry |
Update an existing entry | project, slug, + fields to change |
delete_entry |
Delete an entry | project, slug |
search |
Semantic search across entries | query, project?, author?, n_results? |
list_entries |
List entries with filters | project?, author?, type? |
list_projects |
List all project names | — |
Entry types
note(default) — general knowledgedecision— architectural or process decisionssnippet— reusable code fragmentsdoc— documentation and reference materiallog— event logs and session records
Entry ID format
{project}:{slug} — for example mobile-app:auth-decision.
Configuration
| Variable | Required | Default | Description |
|---|---|---|---|
GOOGLE_API_KEY |
Yes | — | Gemini API key for embeddings |
CHROMA_URL |
No | http://localhost:8000 |
ChromaDB connection URL |
CHROMA_COLLECTION |
No | memories |
ChromaDB collection name |
MCP_PORT |
No | 3000 |
Server port |
MCP_HOST |
No | 0.0.0.0 |
Server bind address |
MCP_BASE_URL |
No* | — | Public HTTPS URL (required for OAuth) |
GOOGLE_CLIENT_ID |
No* | — | Google OAuth client ID |
GOOGLE_CLIENT_SECRET |
No* | — | Google OAuth client secret |
REDIS_URL |
No | — | Redis URL for session storage (enables replicas > 1) |
*OAuth is optional. Without it, the server runs in dev mode (no auth).
Without GOOGLE_API_KEY, semantic search is disabled (CRUD still works).
Deployment
Local (Docker Compose)
export GOOGLE_API_KEY=your-gemini-api-key
docker compose up -d
This starts ChromaDB + Redis + MCP server. Data persists in Docker volumes.
Production (Docker Compose + OAuth)
export GOOGLE_API_KEY=your-gemini-api-key
export GOOGLE_CLIENT_ID=your-client-id
export GOOGLE_CLIENT_SECRET=your-client-secret
export MCP_BASE_URL=https://memory.example.com
docker compose up -d
With OAuth enabled, each user authenticates via Google — their email becomes the author field on entries.
Kubernetes (Helm)
A Helm chart is included in helm/chroma-memory-mcp/. It deploys:
- MCP server (Node.js) — Deployment + Service
- ChromaDB — Deployment + PVC + Service
- Ingress with TLS (cert-manager + Let's Encrypt)
- Secrets for API keys
Prerequisites
- Kubernetes cluster with nginx ingress controller
- cert-manager with a ClusterIssuer (for TLS)
- DNS record pointing your domain to the cluster
Install
helm install chroma-memory ./helm/chroma-memory-mcp \
--set secrets.googleApiKey=YOUR_GEMINI_API_KEY \
--set secrets.googleClientId=YOUR_GOOGLE_CLIENT_ID \
--set secrets.googleClientSecret=YOUR_GOOGLE_CLIENT_SECRET \
--set ingress.host=memory.example.com
Key Helm values
# Namespace for all resources
namespace: chroma-memory
# MCP server
mcp:
image:
repository: sfrangulov/chroma-memory-mcp
tag: "0.1.2"
replicas: 1
port: 3000
# ChromaDB
chromadb:
image:
repository: chromadb/chroma
tag: "1.5.2"
persistence:
size: 5Gi
storageClass: microk8s-hostpath
# Ingress
ingress:
enabled: true
className: public
host: memory.example.com
tls:
enabled: true
clusterIssuer: lets-encrypt
Upgrade
# Build new Docker image
docker build --platform linux/amd64 -t sfrangulov/chroma-memory-mcp:0.x.x .
docker push sfrangulov/chroma-memory-mcp:0.x.x
# Update Helm release
helm upgrade chroma-memory ./helm/chroma-memory-mcp \
--set mcp.image.tag=0.x.x \
--reuse-values
Nginx ingress notes
The Helm chart configures nginx annotations for MCP streaming:
proxy-buffering: off— required for Streamable HTTP transportproxy-read-timeout: 3600— long-lived connectionsproxy-body-size: 16m— large entries
Building the Docker image
# For local use
docker build -t chroma-memory-mcp .
# For Kubernetes (must be linux/amd64)
docker build --platform linux/amd64 -t sfrangulov/chroma-memory-mcp:0.x.x .
docker push sfrangulov/chroma-memory-mcp:0.x.x
Authentication
For production deployments, enable Google OAuth2:
- Go to Google Cloud Console → APIs & Services → Credentials
- Create an OAuth 2.0 Client ID (Web application type)
- Add authorized redirect URI:
https://your-domain.com/oauth/google/callback - Enable the Generative Language API (for Gemini embeddings)
- Create an API Key (restrict to Generative Language API)
- Set
MCP_BASE_URL,GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET, andGOOGLE_API_KEY
The server automatically exposes OAuth discovery endpoints:
/.well-known/oauth-authorization-server/.well-known/oauth-protected-resource
Without OAuth (dev mode), the server accepts all requests and sets author to anonymous.
OAuth Flow Details
- Tokens are opaque UUIDs issued by this server (not Google JWTs)
- Token TTL: 24 hours — users re-authenticate daily
- Refresh tokens are not supported — sessions expire after 24h
- Google ID tokens are cryptographically verified via JWKS
- Server restart invalidates all sessions (unless Redis is configured)
HTTP Endpoints
| Endpoint | Method | Description |
|---|---|---|
/mcp |
POST |
Main MCP endpoint (tool calls) |
/mcp |
GET |
SSE stream (server notifications) |
/mcp |
DELETE |
Session cleanup |
/health |
GET |
Health check ({ status: "ok" }) |
Usage Examples
Save a decision
"Remember for the team: we chose PostgreSQL over MongoDB for ACID compliance."
Claude calls write_entry with project, slug, title, content, and tags.
Search memory
"What did we decide about authentication?"
Claude calls search with the query, reviews results, and answers with context.
Browse a project
"What's in our project memory?"
Claude calls list_projects, then list_entries for the relevant project.
Tech Stack
| Dependency | Purpose |
|---|---|
@modelcontextprotocol/sdk |
MCP server framework (Streamable HTTP) |
chromadb v3 |
Vector database client |
@chroma-core/google-gemini |
Gemini embedding function |
express v5 |
HTTP server |
jose |
Google JWT verification (JWKS) |
helmet |
Security headers |
express-rate-limit |
Rate limiting |
ioredis |
Redis client (optional, for scaling) |
zod |
Input schema validation |
Project Structure
├── server.js # MCP server + Express app
├── lib/
│ ├── memory-store.js # ChromaDB wrapper (CRUD + search)
│ ├── auth.js # Email extraction from auth info
│ ├── oauth-provider.js # Google OAuth2 provider
│ └── session-store.js # TTL session store (Memory/Redis)
├── test/ # Unit + integration tests (Vitest)
├── Dockerfile # Production image (node:20-slim)
├── docker-compose.yml # Local development
├── docker-compose.test.yml # Integration test environment
├── helm/ # Kubernetes Helm chart
│ └── chroma-memory-mcp/
│ ├── Chart.yaml
│ ├── values.yaml
│ └── templates/
└── SKILL.md # Claude skill for using the MCP tools
Development
npm install
# Run unit tests
npm test
# Run integration tests (requires Docker)
docker compose -f docker-compose.test.yml up -d --wait
npm run test:integration
docker compose -f docker-compose.test.yml down
Set TEST_CHROMA_URL to override the default http://localhost:8100 for integration tests.
License
MIT
Install Chroma Memory in Claude Desktop, Claude Code & Cursor
unyly install chroma-memory-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add chroma-memory-mcp -- npx -y github:sfrangulov/chroma-memory-mcpFAQ
Is Chroma Memory MCP free?
Yes, Chroma Memory MCP is free — one-click install via Unyly at no cost.
Does Chroma Memory need an API key?
No, Chroma Memory runs without API keys or environment variables.
Is Chroma Memory hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Chroma Memory in Claude Desktop, Claude Code or Cursor?
Open Chroma Memory on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Chroma Memory with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
