Chroma

Chroma

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

5.0K

13 Tools

Packaged by
Requires Secrets
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

About

Chroma MCP Server

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

What is an MCP Server?

Characteristics

AttributeDetails
Docker Imagemcp/chroma
Authorchroma-core
Repositoryhttps://github.com/chroma-core/chroma-mcp
Dockerfilehttps://github.com/chroma-core/chroma-mcp/blob/main/Dockerfile
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/chroma --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceApache License 2.0

Available Tools (13)

Tools provided by this ServerShort Description
chroma_add_documentsAdd documents to a Chroma collection.
chroma_create_collectionCreate a new Chroma collection with configurable HNSW parameters.
chroma_delete_collectionDelete a Chroma collection.
chroma_delete_documentsDelete documents from a Chroma collection.
chroma_fork_collectionFork a Chroma collection.
chroma_get_collection_countGet the number of documents in a Chroma collection.
chroma_get_collection_infoGet information about a Chroma collection.
chroma_get_documentsGet documents from a Chroma collection with optional filtering.
chroma_list_collectionsList all collection names in the Chroma database with pagination support.
chroma_modify_collectionModify a Chroma collection's name or metadata.
chroma_peek_collectionPeek at documents in a Chroma collection.
chroma_query_documentsQuery documents from a Chroma collection with advanced filtering.
chroma_update_documentsUpdate documents in a Chroma collection.

Tools Details

Tool: chroma_add_documents

Add documents to a Chroma collection.

ParametersTypeDescription
collection_namestringName of the collection to add documents to
documentsarrayList of text documents to add
idsarrayList of IDs for the documents (required)
metadatasstringoptionalOptional list of metadata dictionaries for each document

Tool: chroma_create_collection

Create a new Chroma collection with configurable HNSW parameters.

ParametersTypeDescription
collection_namestringName of the collection to create
embedding_function_namestringoptionalName of the embedding function to use. Options: 'default', 'cohere', 'openai', 'jina', 'voyageai', 'ollama', 'roboflow'
metadatastringoptionalOptional metadata dict to add to the collection

Tool: chroma_delete_collection

Delete a Chroma collection.

ParametersTypeDescription
collection_namestringName of the collection to delete

Tool: chroma_delete_documents

Delete documents from a Chroma collection.

ParametersTypeDescription
collection_namestringName of the collection to delete documents from
idsarrayList of document IDs to delete

Tool: chroma_fork_collection

Fork a Chroma collection.

ParametersTypeDescription
collection_namestringName of the collection to fork
new_collection_namestringName of the new collection to create

Tool: chroma_get_collection_count

Get the number of documents in a Chroma collection.

ParametersTypeDescription
collection_namestringName of the collection to count

Tool: chroma_get_collection_info

Get information about a Chroma collection.

ParametersTypeDescription
collection_namestringName of the collection to get info about

Tool: chroma_get_documents

Get documents from a Chroma collection with optional filtering.

ParametersTypeDescription
collection_namestringName of the collection to get documents from
idsstringoptionalOptional list of document IDs to retrieve
includearrayoptionalList of what to include in response. By default, this will include documents, and metadatas.
limitstringoptionalOptional maximum number of documents to return
offsetstringoptionalOptional number of documents to skip before returning results
wherestringoptionalOptional metadata filters using Chroma's query operators
where_documentstringoptionalOptional document content filters

Tool: chroma_list_collections

List all collection names in the Chroma database with pagination support.

ParametersTypeDescription
limitstringoptionalOptional maximum number of collections to return
offsetstringoptionalOptional number of collections to skip before returning results

Tool: chroma_modify_collection

Modify a Chroma collection's name or metadata.

ParametersTypeDescription
collection_namestringName of the collection to modify
new_metadatastringoptionalOptional new metadata for the collection
new_namestringoptionalOptional new name for the collection

Tool: chroma_peek_collection

Peek at documents in a Chroma collection.

ParametersTypeDescription
collection_namestringName of the collection to peek into
limitintegeroptionalNumber of documents to peek at

Tool: chroma_query_documents

Query documents from a Chroma collection with advanced filtering.

ParametersTypeDescription
collection_namestringName of the collection to query
query_textsarrayList of query texts to search for
includearrayoptionalList of what to include in response. By default, this will include documents, metadatas, and distances.
n_resultsintegeroptionalNumber of results to return per query
wherestringoptionalOptional metadata filters using Chroma's query operators
where_documentstringoptionalOptional document content filters

Tool: chroma_update_documents

Update documents in a Chroma collection.

ParametersTypeDescription
collection_namestringName of the collection to update documents in
idsarrayList of document IDs to update (required)
documentsstringoptionalOptional list of new text documents.
embeddingsstringoptionalOptional list of new embeddings for the documents.
metadatasstringoptionalOptional list of new metadata dictionaries for the documents.

Use this MCP Server

{
  "mcpServers": {
    "chroma": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CHROMA_API_KEY",
        "mcp/chroma"
      ],
      "env": {
        "CHROMA_API_KEY": "your-api-key"
      }
    }
  }
}

Why is it safer to run MCP Servers with Docker?

Manual installation

You can install the MCP server using:

Installation for

Related servers