ChromaDB
Provides AI assistants with persistent memory using ChromaDB vector storage.
ChromaDB MCP Server š§
A Model Context Protocol (MCP) server that gives AI assistants persistent memory through ChromaDB vector storage. Build your own knowledge base that grows with every interaction!
⨠Features
- Persistent AI Memory: Your AI assistant remembers past conversations and solutions
- Vector Search: Find similar code patterns, configurations, and documentation instantly
- Easy Integration: Works seamlessly with Claude Desktop and other MCP-compatible clients
- Home AI Ready: Pre-configured collections for personal projects and automation
- Local First: Run everything on your own hardware, no cloud dependencies
š Quick Start
Prerequisites
- Bun (JavaScript runtime)
- Docker (for ChromaDB)
- Claude Desktop (or any MCP client)
Installation
-
Clone the repository
git clone https://github.com//vespo92/chromadblocal-mcp-server.git cd chromadb-mcp-server -
Install dependencies
bun install -
Start ChromaDB
docker run -d \ --name chromadb-local \ -p 8001:8000 \ -v ~/chromadb-data:/chroma/chroma \ -e IS_PERSISTENT=TRUE \ chromadb/chroma:latest -
Initialize collections
bun run setup -
Configure Claude Desktop
Add to
~/Library/Application Support/Claude/claude_desktop_config.json:{ "mcpServers": { "chromadb-context": { "command": "bun", "args": ["run", "/path/to/chromadb-mcp-server/index.js"], "env": { "CHROMADB_URL": "http://localhost:8001" } } } } -
Restart Claude Desktop and start building your knowledge base!
š¬ Usage Examples
Once configured, interact naturally with your AI:
Store Knowledge
- "Store this Docker configuration in ChromaDB for future reference"
- "Save this React component pattern with tags: hooks, authentication"
- "Remember this solution for GPU passthrough issues"
Retrieve Information
- "Search ChromaDB for Python async examples"
- "Find similar component patterns to this one"
- "What solutions do we have for Docker networking issues?"
Build Context
- "Add this API documentation to the project_docs collection"
- "Store these test patterns for our testing suite"
š Available Collections
| Collection | Description | Use Case |
|---|---|---|
home_automation | Smart home configs & automations | Home Assistant, IoT scripts |
code_snippets | Reusable code patterns | Functions, hooks, utilities |
configurations | System & app configs | Docker, Kubernetes, services |
troubleshooting | Problem solutions | Fixes, workarounds, debugging |
project_docs | Project documentation | APIs, architecture, guides |
learning_notes | Learning insights | Tutorials, concepts, notes |
š ļø MCP Tools
search_context
Search for relevant information across collections
Parameters:
- query: Search query
- collection: (optional) Specific collection to search
- limit: (optional) Number of results
store_context
Store new information with metadata
Parameters:
- content: The content to store
- metadata: Tags, categories, descriptions
- collection: Target collection
list_collections
List all available collections and their metadata
find_similar_patterns
Find code patterns similar to provided example
š§ Configuration
Environment Variables
CHROMADB_URL=http://localhost:8001 # ChromaDB server URL
Custom Collections
Add new collections in setup-home-collections.js:
await createCollection('ml_experiments', {
description: 'Machine learning experiments and results'
});
š¦ Project Structure
chromadb-mcp-server/
āāā index.js # MCP server implementation
āāā setup-home-collections.js # Collection initialization
āāā test-chromadb.js # Connection test script
āāā test-mcp.js # MCP functionality test
āāā HOME-AI-SETUP.md # Detailed setup guide
āāā package.json # Project dependencies
āāā README.md # This file
š¤ Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
See CONTRIBUTING.md for more details.
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š Acknowledgments
- Anthropic for the MCP specification
- Chroma for the excellent vector database
- The open-source community for inspiration and support
š What's Next?
- Cloud sync capabilities
- Multi-user support
- Web UI for collection management
- Export/import collections
- Integration with more AI assistants
Built with ā¤ļø for the Home AI Community
Related Servers
CData Zoho Books
A read-only MCP server by CData for querying live data from Zoho Books. Requires an external CData JDBC Driver.
MySQL MCP Server
Provides AI agents with direct access to query, search, and analyze MySQL databases.
YugabyteDB MCP Server
Allows LLMs to directly interact with a YugabyteDB database.
GraphRAG
Query a hybrid graph (Neo4j) and vector (Qdrant) database for powerful semantic and graph-based document retrieval.
kintone
An MCP server for accessing and managing data on the kintone low-code platform.
Octopus MCP Server
A high-performance, persistent knowledge base MCP server built with Rust. Supports local deployment with hybrid datastores like Qdrant, Neo4j, and Redis.
Subgraph MCP Server
Allows LLMs to interact with Subgraphs available on The Graph Network.
CData Salesforce MCP Server
A read-only MCP server by CData that allows LLMs to query live Salesforce data. Requires the CData JDBC Driver for Salesforce.
Kuzu
Inspect schemas and execute queries on Kuzu databases.
Enhanced Medication Information MCP Server
Provides real-time access to FDA drug data, including shortages, labeling, and recalls, via the openFDA API.