Chroma MCP Server
크로마 MCP 서버
Chroma를 통해 벡터 데이터베이스 기능을 제공하는 모델 컨텍스트 프로토콜(MCP) 서버 구현입니다. 이 서버는 의미론적 문서 검색, 메타데이터 필터링, 그리고 영구 저장소를 통한 문서 관리를 지원합니다.
요구 사항
파이썬 3.8 이상
크로마 0.4.0+
MCP SDK 0.1.0+
Related MCP server: Chroma MCP Server
구성 요소
자원
서버는 Chroma의 벡터 데이터베이스를 통해 문서 저장 및 검색 기능을 제공합니다.
콘텐츠와 메타데이터가 포함된 문서를 저장합니다.
src/chroma/data디렉토리에 데이터를 유지합니다.의미적 유사성 검색을 지원합니다
도구
서버는 CRUD 작업과 검색 기능을 구현합니다.
문서 관리
create_document: 새 문서를 만듭니다필수:
document_id,content선택 사항:
metadata(키-값 쌍)반환: 성공 확인
오류: 이미 존재합니다. 잘못된 입력입니다.
read_document: ID로 문서를 검색합니다.필수:
document_id반환: 문서 콘텐츠 및 메타데이터
오류: 찾을 수 없음
update_document: 기존 문서 업데이트필수:
document_id,content선택 사항:
metadata반환: 성공 확인
오류: 찾을 수 없음, 잘못된 입력
delete_document: 문서 제거필수:
document_id반환: 성공 확인
오류: 찾을 수 없음
list_documents: 모든 문서 나열선택 사항:
limit,offset반환: 콘텐츠 및 메타데이터가 포함된 문서 목록
검색 작업
search_similar: 의미적으로 유사한 문서 찾기필수:
query선택 사항:
num_results,metadata_filter,content_filter반환: 거리 점수가 포함된 유사 문서의 순위 목록
오류: 잘못된 필터
특징
의미 검색 : Chroma의 임베딩을 사용하여 의미에 따라 문서 찾기
메타데이터 필터링 : 메타데이터 필드로 검색 결과 필터링
콘텐츠 필터링 : 문서 콘텐츠 기반 추가 필터링
영구 저장소 : 서버 재시작 사이에 로컬 디렉토리에 데이터가 유지됩니다.
오류 처리 : 명확한 메시지를 통한 포괄적인 오류 처리
재시도 로직 : 일시적 오류에 대한 자동 재시도
설치
종속성 설치:
지엑스피1
구성
클로드 데스크탑
Claude Desktop 구성에 서버 구성을 추가합니다.
Windows: C:\Users\<username>\AppData\Roaming\Claude\claude_desktop_config.json
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"chroma": {
"command": "uv",
"args": [
"--directory",
"C:/MCP/server/community/chroma",
"run",
"chroma"
]
}
}
}데이터 저장
서버는 다음 위치에 데이터를 저장합니다.
Windows:
src/chroma/dataMacOS/Linux:
src/chroma/data
용법
서버를 시작합니다:
uv run chromaMCP 도구를 사용하여 서버와 상호 작용합니다.
# Create a document
create_document({
"document_id": "ml_paper1",
"content": "Convolutional neural networks improve image recognition accuracy.",
"metadata": {
"year": 2020,
"field": "computer vision",
"complexity": "advanced"
}
})
# Search similar documents
search_similar({
"query": "machine learning models",
"num_results": 2,
"metadata_filter": {
"year": 2020,
"field": "computer vision"
}
})오류 처리
서버는 일반적인 시나리오에 대해 명확한 오류 메시지를 제공합니다.
Document already exists [id=X]Document not found [id=X]Invalid input: Missing document_id or contentInvalid filterOperation failed: [details]
개발
테스트
대화형 테스트를 위해 MCP Inspector를 실행하세요.
npx @modelcontextprotocol/inspector uv --directory C:/MCP/server/community/chroma run chroma검사관 웹 인터페이스를 사용하여 다음을 수행할 수 있습니다.
CRUD 작업 테스트
검색 기능 확인
오류 처리 확인
서버 로그 모니터링
건물
종속성 업데이트:
uv compile pyproject.toml패키지 빌드:
uv build기여하다
참여를 환영합니다! 자세한 내용은 참여 지침을 참조하세요.
코드 스타일
테스트 요구 사항
풀 리퀘스트 프로세스
특허
이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.
Available Tools
6 toolscreate_documentC
Create a new document in the Chroma vector database
Inputs: content (required), document_id (required), metadata.
delete_documentB
Delete a document from the Chroma vector database by its ID
Inputs: document_id (required).
list_documentsB
List all documents stored in the Chroma vector database with pagination
Inputs: limit, offset.
read_documentC
Retrieve a document from the Chroma vector database by its ID
Inputs: document_id (required).
search_similarC
Search for semantically similar documents in the Chroma vector database
Inputs: query (required), num_results, content_filter, metadata_filter.
update_documentC
Update an existing document in the Chroma vector database
Inputs: content (required), document_id (required), metadata.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap: create, delete, list, read, search, and update documents. The actions and targets are well-defined, making it easy for an agent to select the correct tool without confusion.
All tools follow a consistent verb_noun pattern (e.g., create_document, delete_document) using snake_case throughout. The naming is predictable and readable, with no deviations in style or convention.
With 6 tools, this server is well-scoped for managing documents in a vector database. Each tool earns its place by covering essential CRUD operations and semantic search, avoiding bloat or thinness for the domain.
The toolset provides complete CRUD/lifecycle coverage for documents (create, read, update, delete, list) and includes a semantic search function. There are no obvious gaps, enabling agents to handle all core workflows without dead ends.
Maintenance
Related MCP Connectors
Remote ChromaDB vector database MCP server with streamable HTTP transport
The Needle MCP server enables semantic search on documents stored in files like PDFs, DOCX, and XLSX by connecting AI applications to external data sources. It provides capabilities to create and manage document collections, perform natural language searches on stored content, and retrieve relevant information without requiring exact keyword matches.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables semantic search capabilities by providing tools to manage Qdrant vector database collections, process and embed documents using various embedding services, and perform semantic searches across vector embeddings.474 npm4MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server integration that creates a persistent, searchable working memory for AI-assisted development by enabling automated context recall and knowledge persistence in Chroma, the open-source embedding database.126 PyPI25MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables intelligent document search and retrieval from PDF collections, providing semantic search capabilities powered by OpenAI embeddings and ChromaDB vector storage.13MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that gives LLMs persistent, semantic memory using vector search with ChromaDB.MIT