Prerequisites
- Ensure you have access to the
claude_desktop_config.json file for configuration.
- Obtain necessary credentials and information for your desired client type (e.g., tenant ID, database name, API key).
Client Setup
1. Ephemeral Client Setup
claude_desktop_config.json file for configuration.Add the following configuration to your claude_desktop_config.json file:
"chroma": {
"command": "uvx",
"args": [
"chroma-mcp"
]
}
2. Persistent Client Setup
Add the following configuration to your claude_desktop_config.json file, replacing /full/path/to/your/data/directory with your desired data directory path:
"chroma": {
"command": "uvx",
"args": [
"chroma-mcp",
"--client-type",
"persistent",
"--data-dir",
"/full/path/to/your/data/directory"
]
}
3. Cloud Client Setup
Add the following configuration to your claude_desktop_config.json file, replacing placeholders with your actual credentials:
"chroma": {
"command": "uvx",
"args": [
"chroma-mcp",
"--client-type",
"cloud",
"--tenant",
"your-tenant-id",
"--database",
"your-database-name",
"--api-key",
"your-api-key"
]
}
4. HTTP Client Setup for Self-Hosted Instance
Add the following configuration to your claude_desktop_config.json file, replacing placeholders with your actual host information and credentials:
"chroma": {
"command": "uvx",
"args": [
"chroma-mcp",
"--client-type",
"http",
"--host",
"your-host",
"--port",
"your-port",
"--custom-auth-credentials",
"your-custom-auth-credentials",
"--ssl",
"true"
]
}
Environment Variables Configuration
Alternatively, configure the client using 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"