Chroma

Databases

A Model Context Protocol (MCP) server implementation that provides database capabilities for Chroma.

Your AI app calls the Chroma MCP server, which does the work through tools like chroma_list_collections, chroma_create_collection, chroma_peek_collection and chroma_get_collection_info and sends the result back to the chat.

About Chroma

Chroma is the official MCP server from chroma-core, filed in our directory under databases. A Model Context Protocol (MCP) server implementation that provides database capabilities for Chroma.

The README for Chroma lists tools such as chroma_list_collections, chroma_create_collection, chroma_peek_collection and chroma_get_collection_info, which your AI app can call once the server is connected.

At a glance

Publisher
chroma-core, the company behind the product
Runs
See the README for setup
Written in
Python
License
Apache-2.0
GitHub stars
604

Tools Chroma gives your AI app

  • chroma_list_collectionsList all collections with pagination support.
  • chroma_create_collectionCreate a new collection with optional HNSW configuration.
  • chroma_peek_collectionView a sample of documents in a collection.
  • chroma_get_collection_infoGet detailed information about a collection.
  • chroma_get_collection_countGet the number of documents in a collection.
  • chroma_modify_collectionUpdate a collection's name or metadata.
  • chroma_delete_collectionDelete a collection.
  • chroma_add_documentsAdd documents with optional metadata and custom IDs.
  • chroma_query_documentsQuery documents using semantic search with advanced filtering.
  • chroma_get_documentsRetrieve documents by IDs or filters with pagination.
  • chroma_update_documentsUpdate existing documents' content, metadata, or embeddings.
  • chroma_delete_documentsDelete specific documents from a collection.

Tool names as the Chroma README lists them. Your AI app shows the live list once Chroma is connected.

How to set up Chroma

  1. Follow the install steps in the Chroma README; it is written in Python, so have that toolchain ready.
  2. Check the Chroma README for keys or settings; the registry lists none that Chroma requires.
  3. Add Chroma to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Chroma tools to confirm the connection.
  5. Run one read-only task with Chroma first, such as a call to chroma_list_collections, before you allow anything that writes or sends.

Chroma compared with similar servers

  • Ratel by ratel-ai has fewer GitHub stars than Chroma (581 against 604); Chroma is official while Ratel is a community server, and both run locally.
  • Redis by redis has more GitHub stars than Chroma (647 against 604); both are official servers, and both run locally. The Redis README lists 7 tools to Chroma's 12.
  • Apple Health by neiltron has fewer GitHub stars than Chroma (580 against 604); Chroma is official while Apple Health is a community server, and both run locally.

Before you connect Chroma

  • Give Chroma its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Chroma tool call until you trust what it does with them.
  • Treat text that Chroma fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Chroma on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Chroma

How marketing and sales teams put Chroma to work, by company size. Pick the size closest to yours and start Chroma on one use case.

Small business

  • A small business with its own app can ask Chroma plain questions about customers and orders, without writing SQL.
  • Owners can use Chroma to pull a list of customers who haven't bought in 90 days and plan a win-back email.
  • Chroma runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing analysts can connect Chroma to answer campaign questions from the warehouse directly, instead of waiting on the data team's queue.
  • Lifecycle teams can use Chroma to build audience lists from product data and check counts before a send.
  • Start with chroma_list_collections and chroma_create_collection, the tools Chroma lists first, and add more once the team trusts the results.

Enterprise

  • Enterprises should point Chroma at a read replica with a read-only role, so agents query freely without risk to production data.
  • Data teams can expose curated views through Chroma, so marketing gets self-serve answers without access to raw customer tables.
  • Because Chroma comes from chroma-core, the company behind the product, it follows that product's own auth and permissions, which security teams usually prefer.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Chroma README

From chroma-core/chroma-mcp on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

Chroma - the open-source embedding database.
The fastest way to build Python or JavaScript LLM apps with memory!

| | Docs (docs.trychroma.com) | Homepage

Chroma MCP Server

The Model Context Protocol (MCP) is an open protocol designed for effortless integration between LLM applications and external data sources or tools, offering a standardized framework to seamlessly provide LLMs with the context they require.

This server provides data retrieval capabilities powered by Chroma, enabling AI models to create collections over generated data and user inputs, and retrieve that data using vector search, full text search, metadata filtering, and more.

This is a MCP server for self-hosting your access to Chroma. If you are looking for Package Search you can find the repository for that github.com/chroma-core/package-search.

Features

  • Flexible Client Types

    • Ephemeral (in-memory) for testing and development
    • Persistent for file-based storage
    • HTTP client for self-hosted Chroma instances
    • Cloud client for Chroma Cloud integration (automatically connects to api.trychroma.com)
  • Collection Management

    • Create, modify, and delete collections
    • List all collections with pagination support
    • Get collection information and statistics
    • Configure HNSW parameters for optimized vector search
    • Select embedding functions when creating collections
  • Document Operations

    • Add documents with optional metadata and custom IDs
    • Query documents using semantic search
    • Advanced filtering using metadata and document content
    • Retrieve documents by IDs or filters
    • Full text search capabilities
Supported Tools
  • chroma_list_collections - List all collections with pagination support
  • chroma_create_collection - Create a new collection with optional HNSW configuration
  • chroma_peek_collection - View a sample of documents in a collection
  • chroma_get_collection_info - Get detailed information about a collection
  • chroma_get_collection_count - Get the number of documents in a collection
  • chroma_modify_collection - Update a collection's name or metadata
  • chroma_delete_collection - Delete a collection
  • chroma_add_documents - Add documents with optional metadata and custom IDs
  • chroma_query_documents - Query documents using semantic search with advanced filtering
  • chroma_get_documents - Retrieve documents by IDs or filters with pagination
  • chroma_update_documents - Update existing documents' content, metadata, or embeddings
  • chroma_delete_documents - Delete specific documents from a collection
Embedding Functions

Chroma MCP supports several embedding functions: default, cohere, openai, jina, voyageai, and roboflow.

The embedding functions utilize Chroma's collection configuration, which persists the selected embedding function of a collection for retrieval. Once a collection is created using the collection configuration, on retrieval for future queries and inserts, the same embedding function will be used, without needing to specify the embedding function again. Embedding function persistance was added in v1.0.0 of Chroma, so if you created a collection using version <=0.6.3, this feature is not supported.

When accessing embedding functions that utilize external APIs, please be sure to add the environment variable for the API key with the correct format, found in Embedding Function Environment Variables

Usage with Claude Desktop

  1. To add an ephemeral client, add the following to your claude_desktop_config.json file:
"chroma": {
    "command": "uvx",
    "args": [
        "chroma-mcp"
    ]
}
  1. To add a persistent client, add the following to your claude_desktop_config.json file:
"chroma": {
    "command": "uvx",
    "args": [
        "chroma-mcp",
        "--client-type",
        "persistent",
        "--data-dir",
        "/full/path/to/your/data/directory"
    ]
}

This will create a persistent client that will use the data directory specified.

  1. To connect to Chroma Cloud, add the following to your claude_desktop_config.json file:
"chroma": {
    "command": "uvx",
    "args": [
        "chroma-mcp",
        "--client-type",
        "cloud",
        "--tenant",
        "your-tenant-id",
        "--database",
        "your-database-name",
        "--api-key",
        "your-api-key"
    ]
}

This will create a cloud client that automatically connects to api.trychroma.com using SSL.

Note: Adding API keys in arguments is fine on local devices, but for safety, you can also specify a custom path for your environment configuration file using the --dotenv-path argument within the args list, for example: "args": ["chroma-mcp", "--dotenv-path", "/custom/path/.env"].

  1. To connect to a [self-hosted Chroma instance on your own cloud provider](https://docs.trychroma.com/ production/deployment), add the following to your claude_desktop_config.json file:
"chroma": {
    "command": "uvx",
    "args": [
      "chroma-mcp", 
      "--client-type", 
      "http", 
      "--host", 
      "your-host", 
      "--port", 
      "your-port", 
      "--custom-auth-credentials",
      "your-custom-auth-credentials",
      "--ssl",
      "true"
    ]
}

This will create an HTTP client that connects to your self-hosted Chroma instance.

Demos

Find reference usages, such as shared knowledge bases & adding memory to context windows in the Chroma MCP Docs

Using Environment Variables

You can also use environment variables to configure the client. The server will automatically load variables from a .env file located at the path specified by --dotenv-path (defaults to .chroma_env in the working directory) or from system environment variables. Command-line arguments take precedence over environment variables.

# Common variables
export CHROMA_CLIENT_TYPE="http"  # or "cloud", "persistent", "ephemeral"

# For persistent client
export CHROMA_DATA_DIR="/full/path/to/your/data/directory"

# For cloud client (Chroma Cloud)
export CHROMA_TENANT="your-tenant-id"
export CHROMA_DATABASE="your-database-name"
export CHROMA_API_KEY="your-api-key"

# For HTTP client (self-hosted)
export CHROMA_HOST="your-host"
export CHROMA_PORT="your-port"
export CHROMA_CUSTOM_AUTH_CREDENTIALS="your-custom-auth-credentials"
export CHROMA_SSL="true"

# Optional: Specify path to .env file (defaults to .chroma_env)
export CHROMA_DOTENV_PATH="/path/to/your/.env" 
Embedding Function Environment Variables

When using external embedding functions that access an API key, follow the naming convention CHROMA_<>_API_KEY="<key>". So to set a Cohere API key, set the environment variable CHROMA_COHERE_API_KEY="". We recommend adding this to a .env file somewhere and using the CHROMA_DOTENV_PATH environment variable or --dotenv-path flag to set that location for safekeeping.

Questions about Chroma

What is the Chroma MCP server?

A Model Context Protocol (MCP) server implementation that provides database capabilities for Chroma. Chroma is published by chroma-core, the company behind the product, on GitHub at chroma-core/chroma-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Chroma MCP server?

Chroma doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (chroma-core/chroma-mcp). Like most servers, Chroma ends with a command or URL you paste into your AI app's MCP config.

Does Chroma need an API key?

The registry lists no required keys for Chroma. Check the Chroma README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Chroma an official MCP server?

Yes. Chroma is published by chroma-core, the company that makes the product it connects to, so it follows that product's own API and auth.

What license is Chroma under?

Chroma is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Chroma; the service it connects to has its own terms.