Connapse
Self-hosted knowledge backend for AI agents with hybrid search and MCP tools
★ 7MITsearch
Install
Config snippet generator goes here (5 client tabs)
README
<p align="center"> <img src="connapse-logo-v27-teal.svg" alt="Connapse logo" width="375" /> </p> <p align="center"> <em>Stop losing context between AI sessions. Give your agents persistent, searchable memory.</em> </p> <p align="center"> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT"></a> <a href="https://dotnet.microsoft.com/"><img src="https://img.shields.io/badge/.NET-10.0-512BD4" alt=".NET"></a> <a href="https://github.com/Destrayon/Connapse/actions"><img src="https://img.shields.io/github/actions/workflow/status/Destrayon/Connapse/ci.yml?branch=main&label=build" alt="Build"></a> <a href="https://github.com/Destrayon/Connapse/actions"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Destrayon/Connapse/badges/tests.json" alt="Tests"></a> <a href="CONTRIBUTING.md"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a> <a href="https://github.com/Destrayon/Connapse/issues"><img src="https://img.shields.io/github/issues/Destrayon/Connapse" alt="GitHub Issues"></a> <a href="https://github.com/Destrayon/Connapse/stargazers"><img src="https://img.shields.io/github/stars/Destrayon/Connapse?style=social" alt="GitHub Stars"></a> <a href="https://glama.ai/mcp/servers/Destrayon/Connapse"><img src="https://glama.ai/mcp/servers/Destrayon/Connapse/badges/score.svg" alt="Connapse MCP server"></a> <a href="https://github.com/Destrayon/Connapse#-quick-start"><img src="https://img.shields.io/badge/Docker-ready-2496ED?logo=docker" alt="Docker"></a> </p> <p align="center"> <img src="docs/demos/hero-upload-search.gif" alt="Connapse demo — upload a PDF, search with hybrid vector and keyword search, get results with source citations in seconds" width="720" /> </p> > *Your AI agents forget everything between sessions. Connapse fixes that.* Every time you start a new conversation, your AI agent starts from zero — no memory of past research, no access to your documents, no accumulated knowledge. Connapse is an open-source knowledge backend that gives agents persistent, searchable memory. Upload documents or point it at your existing Amazon S3 buckets, Azure Blob Storage containers, or local filesystems. Agents query and build their own research corpus via 11 MCP tools, REST API, or CLI. Container-isolated, hybrid search (vector + keyword), self-hosted and private. Deploy in 60 seconds with Docker. Built on .NET 10. <details> <summary><strong>🤖 AI Agent Integration</strong> — Claude queries and builds your knowledge base via MCP</summary> <br> <p align="center"> <img src="docs/demos/mcp-agent-integration.gif" alt="Claude querying Connapse knowledge base via MCP server — asks about preventing cascading failures in microservices, gets structured answer with circuit breaker pattern details cited from distributed-systems-notes.md" width="720" /> </p> > *AI agents query your knowledge base through the MCP server, receiving structured answers with source citations from your documents.* </details> <details> <summary><strong>🎛️ Your Knowledge, Your Rules</strong> — Runtime configuration without restarting</summary> <br> <p align="center"> <img src="docs/demos/settings-providers.gif" alt="Connapse settings panel — switching embedding providers, adjusting chunking parameters, and configuring search settings at runtime without restart" width="720" /> </p> > *Switch embedding providers, tune chunking parameters, and configure search — all at runtime, without restarting.* </details> --- ## 📦 Quick Start ```bash git clone https://github.com/Destrayon/Connapse.git && cd Connapse && docker-compose up -d # Open http://localhost:5001 ``` ### Prerequisites - [Docker](https://docs.docker.com/get-docker/) & [Docker Compose](https://docs.docker.com/compose/install/) - [.NET 10 SDK](https://dotnet.microsoft.com/download) (for development) - (Optional) [Ollama](https://ollama.ai/) for local embeddings ### Run with Docker Compose ```bash # Clone the repository git clone https://github.com/Destrayon/Connapse.git cd Connapse # Set required auth environment variables (or use a .env file) export CONNAPSE_ADMIN_EMAIL=admin@example.com export CONNAPSE_ADMIN_PASSWORD=YourSecurePassword123! export Identity__Jwt__Secret=$(openssl rand -base64 64) # Start all services (PostgreSQL, MinIO, Web App) docker-compose up -d # Open http://localhost:5001 — log in with the admin credentials above ``` The first run will: 1. Pull Docker images (~2-5 minutes) 2. Initialize PostgreSQL with pgvector extension and run EF Core migrations 3. Create MinIO buckets 4. Seed the admin account (from env vars) and start the web application ### Development Setup ```bash # Start infrastructure only (database + object storage) docker-compose up -d postgres minio # Run the web app locally dotnet run --project src/Connapse.Web # Run all tests dotnet test # Run just unit tests dotnet test --filter "Category=Unit" ``` ##