
A Model Context Protocol (MCP) server implementation that provides database capabilities for Chroma
A Model Context Protocol (MCP) server implementation that provides database capabilities for Chroma
·
Chroma - the open-source embedding database.
The fastest way to build Python or JavaScript LLM apps with memory!
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 here.
Flexible Client Types
Collection Management
Document Operations
chroma_list_collections - List all collections with pagination supportchroma_create_collection - Create a new collection with optional HNSW configurationchroma_peek_collection - View a sample of documents in a collectionchroma_get_collection_info - Get detailed information about a collectionchroma_get_collection_count - Get the number of documents in a collectionchroma_modify_collection - Update a collection's name or metadatachroma_delete_collection - Delete a collectionchroma_add_documents - Add documents with optional metadata and custom IDschroma_query_documents - Query documents using semantic search with advanced filteringchroma_get_documents - Retrieve documents by IDs or filters with paginationchroma_update_documents - Update existing documents' content, metadata, or embeddingschroma_delete_documents - Delete specific documents from a collectionChroma 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
claude_desktop_config.json file:"chroma": {
"command": "uvx",
"args": [
"chroma-mcp"
]
}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.
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"].
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.
Find reference usages, such as shared knowledge bases & adding memory to context windows in the Chroma MCP Docs
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" 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.
This repo does not document an install step we could read. Check the README on GitHub.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/chroma-mcp-server to learn what the "Chroma MCP Server" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
This server doesn't publish a machine-readable tool manifest, and it doesn't expose a public endpoint we could ask. Connect the server locally to see what it exposes.
MCP Toolbox for Databases is an open source MCP server for databases.
A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
v0.2.6Release notesv0.2.5Release notesv0.2.4Release notesv0.2.3Release notesv0.2.2Release notesv0.2.1Release notesv0.2.0Release notesConnect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "chroma-mcp-server" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
MCP Toolbox for Databases is an open source MCP server for databases.
Databases
A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
Databases
One email a week. New agents, MCP servers and skills, and what is actually getting traction.