CC

chroma-core/chroma-mcp

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

604 stars 122 forks 质量 56 趋势 0Apache-2.0

一个为 Chroma 提供数据库功能的模型上下文协议(MCP)服务器实现

概览

Chroma - 开源嵌入数据库。构建带内存的 Python 或 JavaScript LLM 应用最快的方法! 模型上下文协议(MCP)是一种开放协议,旨在轻松集成大型语言模型应用与外部数据源或工具,提供了一个标准化框架,无缝为大型语言模型提供所需的上下文。 该服务器提供由Chroma驱动的数据检索功能,使AI模型能够基于生成的数据和用户输入创建集合,并通过向量搜索、全文搜索、元数据过滤等技术检索数据。 这是一个MCP服务器,用于自托管你访问Chroma的权限。如果你在找Package Search,可以在这里找到它的仓库。 - - 临时(内存内)用于测试和开发 - 持久化用于基于文件的存储 - HTTP 客户端用于自托管的 Chroma 实例 - 用于 Chroma Cloud 集成的云客户端(自动连接到 api.trychroma。

概述(AI 翻译)

Chroma - 开源嵌入数据库。 构建带内存的Python或JavaScript大型语言模型应用最快的方法!

|

|

文档 |

主页

Chroma MCP 服务器

模型上下文协议(MCP)是一种开放协议,旨在轻松集成大型语言模型应用与外部数据源或工具,提供了一个标准化框架,无缝为大型语言模型提供所需的上下文。

该服务器提供由Chroma驱动的数据检索功能,使AI模型能够基于生成的数据和用户输入创建集合,并通过向量搜索、全文搜索、元数据过滤等技术检索数据。

这是一个MCP服务器,用于自托管你访问Chroma的权限。如果你在找Package Search,可以在这里找到它的仓库。

特色

  • 灵活客户端类型

  • 短暂(内存内)用于测试和开发

  • 基于文件的持久存储

  • 用于自托管Chroma实例的HTTP客户端

  • 用于Chroma Cloud集成的Cloud客户端(自动连接 api.trychroma.com)

  • 收藏管理

  • 创建、修改和删除集合

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Chroma - the open-source embedding database. The fastest way to build Python or JavaScript LLM apps with memory!

|

|

  Docs

|

  Homepage

Chroma MCP Server

The Model Context Protocol (MCP) 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.

This is a MCP server for self-hosting your access to Chroma. If you are looking for Package Search you can find the repository for that here.

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
在 GitHub 查看完整 README

安装

uvx chroma-mcp
新手?先看 mcpskill.org 教程 →