
mcp/chroma一个模型上下文协议(MCP)服务器实现,为Chroma提供数据库功能。什么是MCP服务器?
| 属性 | 详情 |
|---|---|
| Docker镜像 | mcp/chroma |
| 作者 | chroma-core |
| 代码仓库 | [***] |
| 属性 | 详情 |
|---|---|
| Dockerfile | [***] |
| Docker镜像构建者 | Docker Inc. |
| Docker Scout健康评分 | !Docker Scout Health Score |
| 验证签名 | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/chroma --key [***] |
| 许可证 | Apache License 2.0 |
| 服务器提供的工具 | 简短描述 |
|---|---|
chroma_add_documents | 向Chroma集合添加文档。 |
chroma_create_collection | 创建具有可配置HNSW参数的新Chroma集合。 |
chroma_delete_collection | 删除Chroma集合。 |
chroma_delete_documents | 从Chroma集合中删除文档。 |
chroma_fork_collection | 复制Chroma集合。 |
chroma_get_collection_count | 获取Chroma集合中的文档数量。 |
chroma_get_collection_info | 获取Chroma集合的信息。 |
chroma_get_documents | 从Chroma集合中获取文档,支持可选过滤。 |
chroma_list_collections | 列出Chroma数据库中的所有集合名称,支持分页。 |
chroma_modify_collection | 修改Chroma集合的名称或元数据。 |
chroma_peek_collection | 查看Chroma集合中的文档。 |
chroma_query_documents | 从Chroma集合中查询文档,支持高级过滤。 |
chroma_update_documents | 更新Chroma集合中的文档。 |
chroma_add_documents向Chroma集合添加文档。
| 参数 | 类型 | 描述 |
|---|---|---|
collection_name | string | 要添加文档的集合名称 |
documents | array | 要添加的文本文档列表 |
ids | array | 文档的ID列表(必填) |
metadatas | string optional | 每个文档的可选元数据字典列表 |
chroma_create_collection创建具有可配置HNSW参数的新Chroma集合。
| 参数 | 类型 | 描述 |
|---|---|---|
collection_name | string | 要创建的集合名称 |
embedding_function_name | string optional | 要使用的嵌入函数名称。选项:'default'、'cohere'、'openai'、'jina'、'voyageai'、'ollama'、'roboflow' |
metadata | string optional | 要添加到集合的可选元数据字典 |
chroma_delete_collection删除Chroma集合。
| 参数 | 类型 | 描述 |
|---|---|---|
collection_name | string | 要删除的集合名称 |
chroma_delete_documents从Chroma集合中删除文档。
| 参数 | 类型 | 描述 |
|---|---|---|
collection_name | string | 要删除文档的集合名称 |
ids | array | 要删除的文档ID列表 |
chroma_fork_collection复制Chroma集合。
| 参数 | 类型 | 描述 |
|---|---|---|
collection_name | string | 要复制的集合名称 |
new_collection_name | string | 要创建的新集合名称 |
chroma_get_collection_count获取Chroma集合中的文档数量。
| 参数 | 类型 | 描述 |
|---|---|---|
collection_name | string | 要计数的集合名称 |
chroma_get_collection_info获取Chroma集合的信息。
| 参数 | 类型 | 描述 |
|---|---|---|
collection_name | string | 要获取信息的集合名称 |
chroma_get_documents从Chroma集合中获取文档,支持可选过滤。
| 参数 | 类型 | 描述 |
|---|---|---|
collection_name | string | 要获取文档的集合名称 |
ids | string optional | 要检索的可选文档ID列表 |
include | array optional | 要包含在响应中的内容列表。默认包含documents和metadatas |
limit | string optional | 可选的最大返回文档数 |
offset | string optional | 返回结果前要跳过的可选文档数 |
where | string optional | 使用Chroma查询运算符的可选元数据过滤器 |
where_document | string optional | 可选的文档内容过滤器 |
chroma_list_collections列出Chroma数据库中的所有集合名称,支持分页。
| 参数 | 类型 | 描述 |
|---|---|---|
limit | string optional | 可选的最大返回集合数 |
offset | string optional | 返回结果前要跳过的可选集合数 |
chroma_modify_collection修改Chroma集合的名称或元数据。
| 参数 | 类型 | 描述 |
|---|---|---|
collection_name | string | 要修改的集合名称 |
new_metadata | string optional | 集合的可选新元数据 |
new_name | string optional | 集合的可选新名称 |
chroma_peek_collection查看Chroma集合中的文档。
| 参数 | 类型 | 描述 |
|---|---|---|
collection_name | string | 要查看的集合名称 |
limit | integer optional | 要查看的文档数量 |
chroma_query_documents从Chroma集合中查询文档,支持高级过滤。
| 参数 | 类型 | 描述 |
|---|---|---|
collection_name | string | 要查询的集合名称 |
query_texts | array | 要搜索的查询文本列表 |
include | array optional | 要包含在响应中的内容列表。默认包含documents、metadatas和distances |
n_results | integer optional | 每个查询返回的结果数 |
where | string optional | 使用Chroma查询运算符的可选元数据过滤器 |
where_document | string optional | 可选的文档内容过滤器 |
chroma_update_documents更新Chroma集合中的文档。
| 参数 | 类型 | 描述 |
|---|---|---|
collection_name | string | 要更新文档的集合名称 |
ids | array | 要更新的文档ID列表(必填) |
documents | string optional | 可选的新文本文档列表 |
embeddings | string optional | 可选的文档新嵌入列表 |
metadatas | string optional | 可选的每个文档新元数据字典列表 |
配置示例:
json{ "mcpServers": { "chroma": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "CHROMA_API_KEY", "mcp/chroma" ], "env": { "CHROMA_API_KEY": "your-api-key" } } } }
部署命令示例:
bashdocker run -i --rm -e CHROMA_API_KEY=your-api-key mcp/chroma
为什么使用Docker运行MCP服务器更安全?






manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务