如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
一个模型上下文协议(MCP)服务器实现,为Chroma提供数据库功能。什么是MCP服务器?
| 属性 | 详情 |
|---|---|
| Docker镜像 | https://hub.docker.com/repository/docker/mcp/chroma |
| 作者 | https://github.com/chroma-core |
| 代码仓库 | https://github.com/chroma-core/chroma-mcp |
| 属性 | 详情 |
|---|---|
| Dockerfile | https://github.com/chroma-core/chroma-mcp/blob/main/Dockerfile |
| Docker镜像构建者 | Docker Inc. |
| Docker Scout健康评分 | !Docker Scout Health Score |
| 验证签名 | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/chroma --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub |
| 许可证 | 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服务器更安全?
以下是 mcp/chroma 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。


来自真实用户的反馈,见证轩辕镜像的优质服务