Skip to main content
Glama

Chroma MCP Server

CI codecov PyPI - Version

A Model Context Protocol (MCP) server integration for Chroma, the open-source embedding database.

Overview

Chroma MCP Server creates a persistent, searchable "working memory" for AI-assisted development:

  • Automated Context Recall: AI assistants can query relevant information from past sessions

  • Developer-Managed Persistence: Store key decisions and insights in ChromaDB via MCP

  • Second Brain Integration: Integrates with IDE workflows to create a unified knowledge hub

Key features:

  • Automated Codebase Indexing: Track and index code changes

  • Automated Chat Logging: Log AI interactions with enhanced context capture (code diffs, tool sequences)

  • Bidirectional Linking: Connect discussions to code changes for tracing feature evolution

  • Semantic Code Chunking: Preserve logical code structures for more meaningful context retrieval

  • Working Memory Tools: MCP commands for capturing and retrieving development context

  • Validation System: Evidence-based validation for code changes and learning promotions

  • Automated Test-Driven Learning: Fully automated workflow from test failure to verified fix and learning promotion. See the Pytest Plugin Usage Guide to integrate this into your projects.

See the Getting Started with your Second Brain guide for more details.

Related MCP server: Eternity MCP

Quick Start

Installation

# Basic installation
pip install chroma-mcp-server

# Full installation with all embedding models
pip install "chroma-mcp-server[full]"

Running

# With in-memory storage (data lost on restart)
chroma-mcp-server --client-type ephemeral

# With persistent storage
chroma-mcp-server --client-type persistent --data-dir ./my_data

Cursor Integration

Add or modify .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "chroma": {
      "command": "uvx",
      "args": [
        "chroma-mcp-server"
      ],
      "env": {
        "CHROMA_CLIENT_TYPE": "persistent",
        "CHROMA_DATA_DIR": "/path/to/your/data",
        "CHROMA_LOG_DIR": "/path/to/your/logs",
        "LOG_LEVEL": "INFO",
        "MCP_LOG_LEVEL": "INFO",
        "MCP_SERVER_LOG_LEVEL": "INFO"
      }
    }
  }
}

Recent Improvements

  • Enhanced Context Capture: Automatically extracts code diffs, tool sequences, and assigns confidence scores

  • Bidirectional Linking: Creates navigable connections between chat discussions and code changes

  • Semantic Code Chunking: Uses logical boundaries (functions, classes) instead of fixed-size chunks

  • Server-Side Timestamp Enforcement: Ensures consistent timestamps across all collections

  • Automatic Collection Creation: Essential collections (e.g., chat_history_v1, codebase_v1) are automatically created on server startup if they don't exist.

  • Enhanced Logging System: Per-execution log files prevent contamination of JSON communication in stdio mode

  • Embedding Function Management: Tools to update collection metadata when changing embedding functions

  • Collection Setup Command: Simplifies creation of multiple collections with consistent configuration

  • Auto-Promote Workflow: Streamlined derived learning promotion with automatic handling of high-confidence entries

  • Smart Defaults: Interactive promotion with intelligent defaults for all fields based on context

  • Low Confidence Warnings: Visual indicators for entries that may need more careful review

  • Automated Test Workflow: Fully automated capture of test failures, monitoring for fixes, and validated learning promotion

Documentation

Comprehensive documentation is available in the docs directory:

License

Chroma MCP Server is licensed under the MIT License with Commons Clause. This means you can:

Allowed:

  • Use Chroma MCP Server for any purpose (personal, commercial, academic)

  • Modify the code

  • Distribute copies

  • Create and sell products built using Chroma MCP Server

Not Allowed:

  • Sell Chroma MCP Server itself

  • Offer Chroma MCP Server as a hosted service

  • Create competing products based on Chroma MCP Server

See the LICENSE.md file for the complete license text.

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    F
    maintenance
    A Model Context Protocol server providing vector database capabilities through Chroma, enabling semantic document search, metadata filtering, and document management with persistent storage.
    Last updated
    6
    41
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    A privacy-focused local memory server that provides long-term semantic storage and retrieval for AI agents using SQLite and ChromaDB. It enables LLMs to persist and query text, chat histories, and PDF documents across sessions through the Model Context Protocol.
    Last updated
    MIT
  • A
    license
    B
    quality
    B
    maintenance
    Persistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based, Persistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based organization, and team collaboration via Model Context Protocol.
    Last updated
    67
    266
    2
    MIT
  • A
    license
    B
    quality
    B
    maintenance
    MCP server that provides cross-session persistent memory for AI coding assistants using local vector database and semantic search, enabling automatic recall of project context, issues, and tasks.
    Last updated
    9
    91
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.

  • Universal memory for AI agents and tools. Save, organize and search context anywhere.

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/djm81/chroma_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server