
一个模型上下文协议(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服务器更安全?
来自真实用户的反馈,见证轩辕镜像的优质服务
免费版仅支持 Docker Hub 加速,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
免费版仅支持 docker.io;专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像加速服务
在 Docker Desktop 配置镜像加速
Docker Compose 项目配置加速
Kubernetes 集群配置 Containerd
在宝塔面板一键配置镜像加速
Synology 群晖 NAS 配置加速
飞牛 fnOS 系统配置镜像加速
极空间 NAS 系统配置加速服务
爱快 iKuai 路由系统配置加速
绿联 NAS 系统配置镜像加速
QNAP 威联通 NAS 配置加速
Podman 容器引擎配置加速
HPC 科学计算容器配置加速
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名加速
需要其他帮助?请查看我们的 常见问题 或 官方QQ群: 13763429