chromadb-fastapi-mcp
0
This FastAPI server integrates with the Model Context Protocol (MCP) to manage data collections and documents efficiently, offering extensive RESTful API access and compatibility with OpenAI services. It supports both ephemeral and persistent storage modes.
Overview
This project is a FastAPI-based server implementation that integrates the Model Context Protocol (MCP) to manage collections and documents.
Features
- RESTful API for managing data collections and documents
- Supports ephemeral and persistent data storage modes
- Compatible with OpenAI API for embedding data
- API documentation available at
/docs
Usage
- Clone the repository and install dependencies using
uv
. - Configure the environment variables in the
.env
file. - Run the server via
uv run python -m app.main
oruvicorn
.
API Endpoints
- Collections: Endpoints to list, create, modify, delete collections, and retrieve collection info and document counts.
- Documents: Endpoints to add, query, get, update, and delete documents in collections.
MCP Server
This server supports connecting clients using Server-Sent Events (SSE) and integrates with tools like Cursor and mcp-proxy for broader compatibility.