Chroma MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Chroma MCP Server search for documents about neural networks with metadata field 'computer vision'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Chroma MCP Server
A Model Context Protocol (MCP) server implementation that provides vector database capabilities through Chroma. This server enables semantic document search, metadata filtering, and document management with persistent storage.
Requirements
Python 3.8+
Chroma 0.4.0+
MCP SDK 0.1.0+
Related MCP server: Chroma MCP Server
Components
Resources
The server provides document storage and retrieval through Chroma's vector database:
Stores documents with content and metadata
Persists data in
src/chroma/datadirectorySupports semantic similarity search
Tools
The server implements CRUD operations and search functionality:
Document Management
create_document: Create a new documentRequired:
document_id,contentOptional:
metadata(key-value pairs)Returns: Success confirmation
Error: Already exists, Invalid input
read_document: Retrieve a document by IDRequired:
document_idReturns: Document content and metadata
Error: Not found
update_document: Update an existing documentRequired:
document_id,contentOptional:
metadataReturns: Success confirmation
Error: Not found, Invalid input
delete_document: Remove a documentRequired:
document_idReturns: Success confirmation
Error: Not found
list_documents: List all documentsOptional:
limit,offsetReturns: List of documents with content and metadata
Search Operations
search_similar: Find semantically similar documentsRequired:
queryOptional:
num_results,metadata_filter,content_filterReturns: Ranked list of similar documents with distance scores
Error: Invalid filter
Features
Semantic Search: Find documents based on meaning using Chroma's embeddings
Metadata Filtering: Filter search results by metadata fields
Content Filtering: Additional filtering based on document content
Persistent Storage: Data persists in local directory between server restarts
Error Handling: Comprehensive error handling with clear messages
Retry Logic: Automatic retries for transient failures
Installation
Install dependencies:
uv venv
uv sync --dev --all-extrasConfiguration
Claude Desktop
Add the server configuration to your Claude Desktop config:
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"
]
}
}
}Data Storage
The server stores data in:
Windows:
src/chroma/dataMacOS/Linux:
src/chroma/data
Usage
Start the server:
uv run chromaUse MCP tools to interact with the server:
# 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"
}
})Error Handling
The server provides clear error messages for common scenarios:
Document already exists [id=X]Document not found [id=X]Invalid input: Missing document_id or contentInvalid filterOperation failed: [details]
Development
Testing
Run the MCP Inspector for interactive testing:
npx @modelcontextprotocol/inspector uv --directory C:/MCP/server/community/chroma run chromaUse the inspector's web interface to:
Test CRUD operations
Verify search functionality
Check error handling
Monitor server logs
Building
Update dependencies:
uv compile pyproject.tomlBuild package:
uv buildContributing
Contributions are welcome! Please read our Contributing Guidelines for details on:
Code style
Testing requirements
Pull request process
License
This project is licensed under the MIT License - see the LICENSE file for details.
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