chromadb-fastapi-mcp

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

  1. Clone the repository and install dependencies using uv.
  2. Configure the environment variables in the .env file.
  3. Run the server via uv run python -m app.main or uvicorn.

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.