Name | chroma-mcp JSON |
Version |
0.2.6
JSON |
| download |
home_page | None |
Summary | Chroma MCP Server - Vector Database Integration for LLM Applications |
upload_time | 2025-08-14 15:33:49 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | None |
keywords |
chroma
embeddings
llm
mcp
vector-database
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<p align="center">
<a href="https://trychroma.com"><img src="https://user-images.githubusercontent.com/891664/227103090-6624bf7d-9524-4e05-9d2c-c28d5d451481.png" alt="Chroma logo"></a>
</p>
<p align="center">
<b>Chroma - the open-source embedding database</b>. <br />
The fastest way to build Python or JavaScript LLM apps with memory!
</p>
<p align="center">
<a href="https://discord.gg/MMeYNTmh3x" target="_blank">
<img src="https://img.shields.io/discord/1073293645303795742?cacheSeconds=3600" alt="Discord">
</a> |
<a href="https://github.com/chroma-core/chroma/blob/master/LICENSE" target="_blank">
<img src="https://img.shields.io/static/v1?label=license&message=Apache 2.0&color=white" alt="License">
</a> |
<a href="https://docs.trychroma.com/" target="_blank">
Docs
</a> |
<a href="https://www.trychroma.com/" target="_blank">
Homepage
</a>
</p>
# Chroma MCP Server
[](https://smithery.ai/server/@chroma-core/chroma-mcp)
[The Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) 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.
## 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](#embedding-function-environment-variables)
## Usage with Claude Desktop
1. To add an ephemeral client, add the following to your `claude_desktop_config.json` file:
```json
"chroma": {
"command": "uvx",
"args": [
"chroma-mcp"
]
}
```
2. To add a persistent client, add the following to your `claude_desktop_config.json` file:
```json
"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.
3. To connect to Chroma Cloud, add the following to your `claude_desktop_config.json` file:
```json
"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"]`.
4. 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:
```json
"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](https://docs.trychroma.com/integrations/frameworks/anthropic-mcp#using-chroma-with-claude)
### 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.
```bash
# 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.
Raw data
{
"_id": null,
"home_page": null,
"name": "chroma-mcp",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "chroma, embeddings, llm, mcp, vector-database",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/4c/c3/2d9ddd1efa833d46f7c5274235e63b2a352e69e6c9aa6fb9da9d1d4bd08e/chroma_mcp-0.2.6.tar.gz",
"platform": null,
"description": "<p align=\"center\">\n <a href=\"https://trychroma.com\"><img src=\"https://user-images.githubusercontent.com/891664/227103090-6624bf7d-9524-4e05-9d2c-c28d5d451481.png\" alt=\"Chroma logo\"></a>\n</p>\n\n<p align=\"center\">\n <b>Chroma - the open-source embedding database</b>. <br />\n The fastest way to build Python or JavaScript LLM apps with memory!\n</p>\n\n<p align=\"center\">\n <a href=\"https://discord.gg/MMeYNTmh3x\" target=\"_blank\">\n <img src=\"https://img.shields.io/discord/1073293645303795742?cacheSeconds=3600\" alt=\"Discord\">\n </a> |\n <a href=\"https://github.com/chroma-core/chroma/blob/master/LICENSE\" target=\"_blank\">\n <img src=\"https://img.shields.io/static/v1?label=license&message=Apache 2.0&color=white\" alt=\"License\">\n </a> |\n <a href=\"https://docs.trychroma.com/\" target=\"_blank\">\n Docs\n </a> |\n <a href=\"https://www.trychroma.com/\" target=\"_blank\">\n Homepage\n </a>\n</p>\n\n# Chroma MCP Server\n\n[](https://smithery.ai/server/@chroma-core/chroma-mcp)\n\n[The Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) 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.\n\nThis 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.\n\n## Features\n\n- **Flexible Client Types**\n - Ephemeral (in-memory) for testing and development\n - Persistent for file-based storage\n - HTTP client for self-hosted Chroma instances\n - Cloud client for Chroma Cloud integration (automatically connects to api.trychroma.com)\n\n- **Collection Management**\n - Create, modify, and delete collections\n - List all collections with pagination support\n - Get collection information and statistics\n - Configure HNSW parameters for optimized vector search\n - Select embedding functions when creating collections\n\n- **Document Operations**\n - Add documents with optional metadata and custom IDs\n - Query documents using semantic search\n - Advanced filtering using metadata and document content\n - Retrieve documents by IDs or filters\n - Full text search capabilities\n\n### Supported Tools\n\n- `chroma_list_collections` - List all collections with pagination support\n- `chroma_create_collection` - Create a new collection with optional HNSW configuration\n- `chroma_peek_collection` - View a sample of documents in a collection\n- `chroma_get_collection_info` - Get detailed information about a collection\n- `chroma_get_collection_count` - Get the number of documents in a collection\n- `chroma_modify_collection` - Update a collection's name or metadata\n- `chroma_delete_collection` - Delete a collection\n- `chroma_add_documents` - Add documents with optional metadata and custom IDs\n- `chroma_query_documents` - Query documents using semantic search with advanced filtering\n- `chroma_get_documents` - Retrieve documents by IDs or filters with pagination\n- `chroma_update_documents` - Update existing documents' content, metadata, or embeddings\n- `chroma_delete_documents` - Delete specific documents from a collection\n\n### Embedding Functions\nChroma MCP supports several embedding functions: `default`, `cohere`, `openai`, `jina`, `voyageai`, and `roboflow`.\n\nThe 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.\n\nWhen 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](#embedding-function-environment-variables)\n\n## Usage with Claude Desktop\n\n1. To add an ephemeral client, add the following to your `claude_desktop_config.json` file:\n\n```json\n\"chroma\": {\n \"command\": \"uvx\",\n \"args\": [\n \"chroma-mcp\"\n ]\n}\n```\n\n2. To add a persistent client, add the following to your `claude_desktop_config.json` file:\n\n```json\n\"chroma\": {\n \"command\": \"uvx\",\n \"args\": [\n \"chroma-mcp\",\n \"--client-type\",\n \"persistent\",\n \"--data-dir\",\n \"/full/path/to/your/data/directory\"\n ]\n}\n```\n\nThis will create a persistent client that will use the data directory specified.\n\n3. To connect to Chroma Cloud, add the following to your `claude_desktop_config.json` file:\n\n```json\n\"chroma\": {\n \"command\": \"uvx\",\n \"args\": [\n \"chroma-mcp\",\n \"--client-type\",\n \"cloud\",\n \"--tenant\",\n \"your-tenant-id\",\n \"--database\",\n \"your-database-name\",\n \"--api-key\",\n \"your-api-key\"\n ]\n}\n```\n\nThis will create a cloud client that automatically connects to api.trychroma.com using SSL.\n\n**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\"]`.\n\n4. To connect to a [self-hosted Chroma instance on your own cloud provider](https://docs.trychroma.com/\nproduction/deployment), add the following to your `claude_desktop_config.json` file:\n\n```json\n\"chroma\": {\n \"command\": \"uvx\",\n \"args\": [\n \"chroma-mcp\", \n \"--client-type\", \n \"http\", \n \"--host\", \n \"your-host\", \n \"--port\", \n \"your-port\", \n \"--custom-auth-credentials\",\n \"your-custom-auth-credentials\",\n \"--ssl\",\n \"true\"\n ]\n}\n```\n\nThis will create an HTTP client that connects to your self-hosted Chroma instance.\n\n### Demos\n\nFind reference usages, such as shared knowledge bases & adding memory to context windows in the [Chroma MCP Docs](https://docs.trychroma.com/integrations/frameworks/anthropic-mcp#using-chroma-with-claude)\n\n### Using Environment Variables\n\nYou 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.\n\n```bash\n# Common variables\nexport CHROMA_CLIENT_TYPE=\"http\" # or \"cloud\", \"persistent\", \"ephemeral\"\n\n# For persistent client\nexport CHROMA_DATA_DIR=\"/full/path/to/your/data/directory\"\n\n# For cloud client (Chroma Cloud)\nexport CHROMA_TENANT=\"your-tenant-id\"\nexport CHROMA_DATABASE=\"your-database-name\"\nexport CHROMA_API_KEY=\"your-api-key\"\n\n# For HTTP client (self-hosted)\nexport CHROMA_HOST=\"your-host\"\nexport CHROMA_PORT=\"your-port\"\nexport CHROMA_CUSTOM_AUTH_CREDENTIALS=\"your-custom-auth-credentials\"\nexport CHROMA_SSL=\"true\"\n\n# Optional: Specify path to .env file (defaults to .chroma_env)\nexport CHROMA_DOTENV_PATH=\"/path/to/your/.env\" \n```\n\n#### Embedding Function Environment Variables\nWhen using external embedding functions that access an API key, follow the naming convention\n`CHROMA_<>_API_KEY=\"<key>\"`.\nSo 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.\n",
"bugtrack_url": null,
"license": null,
"summary": "Chroma MCP Server - Vector Database Integration for LLM Applications",
"version": "0.2.6",
"project_urls": {
"Documentation": "https://github.com/chroma-core/chroma-mcp#readme",
"Homepage": "https://github.com/chroma-core/chroma-mcp",
"Issues": "https://github.com/chroma-core/chroma-mcp/issues"
},
"split_keywords": [
"chroma",
" embeddings",
" llm",
" mcp",
" vector-database"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "39054dada5498418511d2a043fc9e6029ab82d9c3ca7c904a597b10a6cece4c7",
"md5": "5e4a08d96bbf0fc695295c4bbd908bff",
"sha256": "2c371fba9b0da1acbfd8e65db95916f63b1a680b420b98be1c055d31109979de"
},
"downloads": -1,
"filename": "chroma_mcp-0.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5e4a08d96bbf0fc695295c4bbd908bff",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 14110,
"upload_time": "2025-08-14T15:33:48",
"upload_time_iso_8601": "2025-08-14T15:33:48.099548Z",
"url": "https://files.pythonhosted.org/packages/39/05/4dada5498418511d2a043fc9e6029ab82d9c3ca7c904a597b10a6cece4c7/chroma_mcp-0.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "4cc32d9ddd1efa833d46f7c5274235e63b2a352e69e6c9aa6fb9da9d1d4bd08e",
"md5": "16b94ad26f8611c13a6650fe1fe272c9",
"sha256": "d1f097d23568e53235dc10c2fa8ecefbd563f82f1c18846978ba6879afb19e17"
},
"downloads": -1,
"filename": "chroma_mcp-0.2.6.tar.gz",
"has_sig": false,
"md5_digest": "16b94ad26f8611c13a6650fe1fe272c9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 206523,
"upload_time": "2025-08-14T15:33:49",
"upload_time_iso_8601": "2025-08-14T15:33:49.587788Z",
"url": "https://files.pythonhosted.org/packages/4c/c3/2d9ddd1efa833d46f7c5274235e63b2a352e69e6c9aa6fb9da9d1d4bd08e/chroma_mcp-0.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-14 15:33:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "chroma-core",
"github_project": "chroma-mcp#readme",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "chroma-mcp"
}