Connapse
Ваши ИИ-агенты забывают всё между сессиями. Connapse исправляет это.
Каждый раз, когда вы начинаете новый диалог, ваш ИИ-агент начинает с нуля — никакой памяти о прошлых исследованиях, никакого доступа к вашим документам, никаких накопленных знаний. Connapse — это бэкенд знаний с открытым исходным кодом, который дает агентам постоянную память с возможностью поиска. Загружайте документы или указывайте путь к существующим бакетам Amazon S3, контейнерам Azure Blob Storage или локальным файловым системам. Агенты запрашивают и создают свой собственный исследовательский корпус с помощью 11 инструментов MCP, REST API или CLI. Изоляция в контейнерах, гибридный поиск (векторный + ключевые слова), самохостинг и конфиденциальность. Развертывание за 60 секунд с помощью Docker. Построено на .NET 10.
ИИ-агенты запрашивают вашу базу знаний через MCP-сервер, получая структурированные ответы с цитатами источников из ваших документов.
Переключайте провайдеров эмбеддингов, настраивайте параметры разбиения на части и конфигурируйте поиск — всё во время выполнения, без перезагрузки.
📦 Быстрый старт
git clone https://github.com/Destrayon/Connapse.git && cd Connapse && docker-compose up -d
# Open http://localhost:5001Предварительные требования
.NET 10 SDK (для разработки)
(Опционально) Ollama для локальных эмбеддингов
Запуск с помощью Docker Compose
# 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Первый запуск выполнит:
Загрузку образов Docker (~2-5 минут)
Инициализацию PostgreSQL с расширением pgvector и выполнение миграций EF Core
Создание бакетов MinIO
Создание учетной записи администратора (из переменных окружения) и запуск веб-приложения
Настройка разработки
# 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"Использование CLI
Установите CLI (выберите один вариант):
# Option A: .NET Global Tool (requires .NET 10)
dotnet tool install -g Connapse.CLI
# Option B: Download native binary from GitHub Releases (no .NET required)
# https://github.com/Destrayon/Connapse/releasesБазовое использование:
# Authenticate first
connapse auth login --url https://localhost:5001
# Create a container (project)
connapse container create my-project --description "My knowledge base"
# Upload files
connapse upload ./documents --container my-project
# Search
connapse search "your query" --container my-project
# Update to latest release (--pre to include alpha/pre-release builds)
connapse update
connapse update --preИспользование с Claude (MCP)
Connapse включает сервер протокола контекста модели (MCP) для интеграции с Claude и любым клиентом MCP.
Настройка: Создайте ключ API агента через веб-интерфейс (Настройки → Ключи API агента) или CLI (connapse auth agent-key create), затем добавьте фрагмент конфигурации для вашего клиента:
claude mcp add connapse --transport streamable-http http://localhost:5001/mcp --header "X-Agent-Api-Key: YOUR_API_KEY"Добавьте в ваш claude_desktop_config.json:
{
"mcpServers": {
"connapse": {
"transport": "streamable-http",
"url": "http://localhost:5001/mcp",
"headers": {
"X-Agent-Api-Key": "YOUR_API_KEY"
}
}
}
}Добавьте в ваш .vscode/settings.json (VS Code) или конфигурацию MCP Cursor:
{
"mcp": {
"servers": {
"connapse": {
"transport": "streamable-http",
"url": "http://localhost:5001/mcp",
"headers": {
"X-Agent-Api-Key": "${input:connapseApiKey}"
}
}
}
}
}VS Code запросит ключ API при первом использовании.
MCP-сервер предоставляет 11 инструментов:
Инструмент | Описание |
| Создать новый контейнер для организации файлов |
| Список всех контейнеров с количеством документов |
| Удалить контейнер |
| Получить статистику контейнера (документы, части, хранилище, эмбеддинги) |
| Загрузить один файл в контейнер |
| Загрузить до 100 файлов за одну операцию |
| Список файлов и папок по пути |
| Получить полное проанализированное текстовое содержимое документа |
| Удалить один файл из контейнера |
| Удалить до 100 файлов за одну операцию |
| Семантический, ключевой или гибридный поиск внутри контейнера |
Полная справка: См. docs/mcp-tools.md для таблиц параметров, форматов возврата, случаев ошибок и примеров использования.
Защита от записи: Контейнеры Amazon S3 и Azure Blob Storage доступны только для чтения (синхронизируются из источника). Контейнеры файловой системы соблюдают флаги разрешений для каждого контейнера. Инструменты загрузки и удаления вернут ошибку для контейнеров, блокирующих запись.
"Создай контейнер под названием 'project-research' для моих заметок по архитектуре"
"Загрузи все PDF-файлы из моей папки загрузок в контейнер project-research"
"Найди в моем контейнере project-research информацию о стратегиях ограничения скорости"
"Перечисли все файлы в папке /notes/ моего контейнера project-research"
"Получи полный текст distributed-systems-notes.md из project-research"
"Удали meeting-2026-03-14.md из project-research и загрузи эту обновленную версию"
"Удали все файлы в папке /drafts/ контейнера project-research"
"Сколько документов и частей находится в моем контейнере project-research?"
Connection refused on localhost:5001 — Docker не запущен или конфликт портов. Проверьте docker compose ps и docker compose logs web.
401 Unauthorized / Ключ API не работает — Проверьте ключ в Настройки > Ключи API агента. Ключи отображаются один раз при создании.
Инструменты не появляются в Claude — Перезапустите клиент MCP после изменения конфигурации. Проверьте эндпоинт с помощью curl http://localhost:5001/mcp.
Загрузки не удаются или истекает время ожидания — Проверьте, входит ли тип файла в список разрешенных. Максимальный размер файла зависит от конфигурации сервера.
Поиск не возвращает результатов — Документам нужно время для создания эмбеддингов после загрузки. Проверьте статистику контейнера на предмет прогресса эмбеддингов.
Related MCP server: mnemostack
🚀 Функции
🗂️ Изолированные в контейнерах знания — Каждый проект получает свой собственный векторный индекс, коннектор хранилища и конфигурацию поиска. Никакого перекрестного загрязнения между проектами, командами или клиентами.
🔍 Гибридный поиск — Векторное сходство + полнотекстовый поиск по ключевым словам с настраиваемым слиянием (выпуклая комбинация, DBSF, AutoCut). Получайте результаты, которые пропускает чистый векторный поиск.
🧠 ИИ с несколькими провайдерами — Переключайтесь между Ollama, OpenAI, Azure OpenAI и Anthropic как для эмбеддингов, так и для LLM — во время выполнения, для каждого контейнера, без перезагрузки.
🔌 Индексация существующего хранилища — Подключайте MinIO, локальную файловую систему (отслеживание файлов в реальном времени), Amazon S3 (IAM-авторизация) или Azure Blob Storage (управляемое удостоверение). Ваши файлы остаются там, где они есть.
🤖 4 поверхности доступа — Веб-интерфейс, REST API, CLI (нативные бинарные файлы) и MCP-сервер (11 инструментов для Claude). Создано одинаково удобно для людей, скриптов и ИИ-агентов.
🔐 Корпоративная аутентификация — Многоуровневый RBAC (Cookie + OAuth 2.1 + PAT + JWT) с интеграцией AWS IAM Identity Center и Azure AD. Облачные разрешения являются источником истины.
🐳 Развертывание одной командой — Docker Compose с PostgreSQL + pgvector, MinIO и опционально Ollama. Встроенное структурированное ведение аудита и ограничение скорости.
📄 Ввод данных в разных форматах: PDF, документы Office, Markdown, обычный текст — анализируются, разбиваются на части и встраиваются автоматически
⚡ Обработка в реальном времени: Фоновая загрузка с обновлениями прогресса в реальном времени через SignalR
🎛️ Конфигурация во время выполнения: Изменяйте стратегию разбиения, модель эмбеддингов и настройки поиска для каждого контейнера без перезагрузки
☁️ Связывание облачных удостоверений: AWS IAM Identity Center (поток аутентификации устройства) + Azure AD (OAuth2+PKCE) с принудительным применением областей, производных от IAM
👥 Доступ только по приглашению: Регистрация пользователей под управлением администратора с четырьмя ролями (Администратор / Редактор / Просмотрщик / Агент)
🤖 Управление агентами: Выделенные сущности агентов с жизненным циклом ключей API, ограниченными разрешениями и журналами аудита
📋 Журналирование аудита: Структурированный журнал аудита для загрузок, удалений, операций с контейнерами и событий аутентификации
📦 Распространение CLI: Нативные автономные бинарные файлы (Windows/Linux/macOS) и глобальный инструмент .NET через NuGet
🔄 Поиск по разным моделям: Переключайте модели эмбеддингов в середине проекта — автоматический откат к гибридному поиску для устаревших векторов
🎯 Для кого Connapse?
Разработчики ИИ-агентов, которым нужен бэкенд знаний, который агенты могут как запрашивать, так и наполнять — загружайте исследования, курируйте корпус и ищите по нему через MCP или REST API
Команды .NET / Azure, которым нужна платформа RAG, подходящая для их существующего стека и облачной идентификации
Корпоративные команды, которым нужны изолированные базы знаний проектов с надлежащим RBAC и журналами аудита
Все, кто устал перезагружать файлы — укажите Connapse на существующее хранилище Amazon S3/Azure Blob Storage/файловую систему
Этот проект находится в активной разработке (v0.3.2) и приближается к готовности к производству.
v0.3.x добавляет архитектуру облачных коннекторов с контролем доступа на основе IAM, поддержку нескольких провайдеров эмбеддингов и LLM, связывание облачных удостоверений (AWS SSO + Azure AD) и ограничение скорости.
✅ Аутентификация и авторизация (v0.2.0)
✅ Контроль доступа на основе ролей (Администратор / Редактор / Просмотрщик / Агент)
✅ Журналирование аудита
✅ Связывание облачных удостоверений — AWS IAM Identity Center + Azure AD OAuth2+PKCE (v0.3.0)
✅ Принудительное применение областей, производных от IAM — облачные разрешения являются источником истины (v0.3.0)
✅ Ограничение скорости — встроенное промежуточное ПО ASP.NET Core с политиками для каждого пользователя и каждого IP (v0.3.2)
⚠️ Установите надежный
Identity__Jwt__Secretв
Available Tools
24 toolsappend_to_fileA
Add text to the end of an existing text file (.md, .txt, .log, ...) and reindex it. The text goes on exactly as given, so start it with a newline to put it on a new line. The file keeps its ID, path and added date; appends to one file through this server at once all land.
Inputs: file (required), text (required), containerId (required).
code_find_symbolARead-onlyIdempotent
Find where a function, method, class or other symbol is defined in indexed code (C#, Python, TypeScript). match="exact" (default) takes a name as far as you know it: "Post", "Ledger.Post" or "Acme.Billing.Ledger.Post". match="words" takes words that all appear in the qualified name ("ledger post"). match="meaning" takes a description ("where invoices are written to the ledger"). With follow=true, also returns what the first definition calls, constructs or inherits and the files defining those: the files to read to see how it works. Returns definitions with path, start and end line and signature, and ranked files.
Inputs: query (required), containerId (required), limit, match, +1 more.
code_impactARead-onlyIdempotent
What a change to a symbol could affect: the functions and types that call or inherit it, directly or through others, up to depth hops, with the files that hold them and which of those are tests. For a type, what uses its members counts too. Only links the code index resolved are followed; a call it could not resolve is missed, so check code_references for the full list of mentions.
Inputs: symbol (required), containerId (required), depth, limit.
code_referencesARead-onlyIdempotent
Find the files that use a symbol, best evidence first: files the code index links to it (a call, a base type, an import) with the lines, then files whose text names it. kind="calls" for callers only, "inherits" for subtypes only, "all" (default) for every use and mention. Name the symbol as for code_find_symbol ("Ledger.Post"); qualify it further when the name is common.
Inputs: symbol (required), containerId (required), kind, limit.
code_repo_mapARead-onlyIdempotent
A map of indexed code: the files the rest of the code refers to most, each with its main definitions and how many other files use each. Start here in an unfamiliar repository, or pass path to map one folder.
Inputs: containerId (required), path, maxFiles.
container_createA
Create a new container for documents. Use when setting up a new knowledge domain or project. To make a place for memory facts, use memory_space_create instead.
Inputs: name (required), kind, description.
container_deleteADestructive
Delete a container. It must be emptied first, because deleting one deletes its stored files. External sources are not containers and cannot be deleted here. If your token asks before deleting, nothing is deleted yet: the call returns a deletion batch that Connapse carries out itself once your owner approves it. Read the outcome with deletion_status; don't repeat the call.
Inputs: containerId (required).
container_describeARead-onlyIdempotent
Returns an agent-optimized description of a knowledge scope — container or source: its description and document statistics. Use this to understand what a scope covers before querying via search_knowledge, or when container_list output is insufficient to choose between them. The response also echoes the server's tool-routing instructions for clients that don't surface them on connect.
Inputs: containerId (required).
container_listARead-onlyIdempotent
Lists every searchable knowledge scope with its description and document count. Each entry is kind=managed (storage Connapse owns, browsable with list_files) or kind=source (an external system Connapse mirrors read-only — searchable, but it has no file listing). Memory spaces are not listed here: memory_spaces lists them. Use to discover what exists when the target is unknown; if the user already named one, call search_knowledge on it directly instead.
Inputs: no named parameters.
container_statsARead-onlyIdempotent
Get container statistics: document counts, chunk count, storage size, and embedding model info.
Inputs: containerId (required).
delete_fileADestructive
Delete one file, or up to 100 with 'fileIds', and all their chunks and vectors. To update a file, delete it first then re-upload with upload_file. With 'fileIds' it returns per-file success/failure results. If your token asks before deleting, nothing is deleted yet: the call returns a deletion batch that Connapse carries out itself once your owner approves it. Read the outcome with deletion_status; don't repeat the call. A held batch holds at most 50 files.
Inputs: containerId (required), fileId, fileIds.
deletion_statusARead-onlyIdempotent
Check a batch of deletions, by its id: one you asked for with request_deletions, or one a held delete call returned. Pass waitSeconds (up to 50) to wait while it is pending or running. state is pending, expired, denied, running or done; each item's state is deleted, skipped (gone or changed since you asked), failed, not_approved or denied, and its outcome says why. message says what to do next.
Inputs: batchId (required), waitSeconds.
get_documentARead-onlyIdempotent
Retrieve a document's full text by ID or path, or up to 50 documents' with 'files'. Returns extracted text for binary formats (PDF, DOCX, PPTX). Intended for use after search_knowledge returns a DocumentId worth reading in entirety, or when the user has named an exact file. With 'files' each document comes under its own header in the order asked; a file that can't be read gets an error line and doesn't stop the others, and past 2,000,000 characters in all, the rest get one too. Pair 'files' with list_files sort "newest" and limit to read the newest entries of a folder in two calls.
Inputs: containerId (required), files, fileId.
list_filesARead-onlyIdempotent
Lists folder entries and document IDs at a path within a container (does NOT return file contents — for content questions, use search_knowledge). Intended for inventory requests such as 'what files exist in X' or when the user named a specific filename. Large listings return a soft error directing you to search_knowledge; override with confirmLarge: true or paginate with limit. Each file shows when it was added and, if since changed, when it was updated. For the newest N entries of a folder, pass sort: "newest" and limit: N, then read them all with get_documents.
Inputs: containerId (required), path, sort, limit, +1 more.
memory_correctA
Replace a fact and keep the old one in history. kind="changed": the world changed, so the old fact ends on validFrom and the new value starts there (validFrom required). kind="wrong": the old fact was never right, so it is marked superseded and the new value takes its dates; a date you pass replaces the old one, except one where another version of the fact starts or ends. Subject and attribute default to the old fact's. A fact with versions you cannot see (another user's private ones) cannot be corrected; remember a new fact instead.
Inputs: value (required), factId (required), kind, reason, +6 more.
memory_forgetADestructive
Delete a fact for good, with every earlier and later version of it from corrections. Nothing of it is kept. To record that a value changed, use memory_correct instead. If your token asks before deleting, nothing is deleted yet: the call returns a deletion batch that Connapse carries out itself once your owner approves it. Read the outcome with deletion_status; don't repeat the call.
Inputs: factId (required), containerId.
memory_recallARead-onlyIdempotent
Read facts from memory: what is true now, or on a past date with asOf. Name a space to read one space, or leave it out to read every space you can see. Filter by subject or attribute, or pass a question as query. Each fact comes with its space, whether it is personal (only you see it) or team, its dates, author and sources. Use includeHistory to also get ended and corrected facts (for "which ticket changed X" or "when did X change"). Reading one named space without asOf or attribute returns nextCursor when there are more facts: pass it back as cursor for the next page.
Inputs: asOf, limit, query, space, +5 more.
memory_rememberA
Store one fact in a memory space: a subject ("Halcyon"), an attribute ("database") and a value ("PostgreSQL 15"), with the date it became true and the documents you learned it from. Name a space that exists: memory_spaces lists yours, and memory_space_create makes one if none fits. No space is made for you. Save to a personal space if it is about the user, their preferences or their own work; to a team space if it would be true and useful for others. If unsure, ask. Cite the document IDs that search_knowledge or get_document gave you: a fact citing sources is shown only to people who can read all of them. The answer says who can see what you saved. When a value you stored before has changed, call memory_correct instead. If the answer lists facts already current with the same subject and attribute, and you meant to replace one, correct it instead of leaving both.
Inputs: value (required), subject (required), attribute (required), space, +5 more.
memory_space_createA
Make a memory space to save facts in. Kind "personal" is yours alone: only you see its facts. Kind "team" is seen by everyone in this Connapse. Save to a personal space if it is about the user, their preferences or their own work; to a team space if it would be true and useful for others. If unsure, ask. Check memory_spaces first: no space is made for you, so make one only when none fits. Names are lowercase letters, numbers and hyphens.
Inputs: kind (required), name (required), description.
memory_spacesARead-onlyIdempotent
List the memory spaces you can use: your personal spaces (only you see them) and team spaces (everyone in this Connapse sees them). Each comes with its id, name, kind, description, whether you can add to it, and who sees it. Call this before saving to pick a space for memory_remember; if none fits, make one with memory_space_create. At most 100 are returned; pass name to find others.
Inputs: kind, name.
memory_timelineARead-onlyIdempotent
A subject's facts in date order, ended and corrected ones included: how its values changed over time. Name a space to read one space, or leave it out to read every space you can see; each fact says which space it is in. With from/to, only the facts that started or ended in that window ("what changed between A and B"). Reading one named space without from, to or attribute returns the newest facts first a page at a time, each page in date order, with nextCursor when older facts remain: pass it back as cursor.
Inputs: to, from, limit, query, +5 more.
request_deletionsA
Ask your owner to approve several deletions at once: up to 50 items, each a file (kind "file", container, target = file id or path), a folder (kind "folder", container, target = folder path), an empty container (kind "container", container = its id or name), a memory space (kind "memory_space", container = the space's id or name) or a memory fact (kind "fact", target = the fact id), with a short reason the owner reads. Every item is checked now; if any can't be deleted nothing is asked, and the error names each bad item. Nothing is deleted yet: the owner approves all, some or none on the Approvals page, and Connapse then deletes the approved items itself, skipping any that are gone or changed since you asked. Call deletion_status with the returned id (and waitSeconds) to read each item's outcome; don't delete the items yourself.
Inputs: items (required).
search_knowledgeARead-onlyIdempotent
Search a container using semantic, keyword, or hybrid mode (Hybrid is the default and works well without tuning). Returns ranked passages with citations, scores, and document IDs. If the first query returns thin results, refine the query and call again.
Inputs: query (required), containerId (required), mode, path, +2 more.
upload_fileA
Upload one file, or up to 100 with 'files', to be parsed, chunked, embedded, and made searchable. For one file give 'fileName' and either 'content' (base64) or 'textContent' (raw text), not both.
Inputs: containerId (required), path, files, content, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Most tools are cleanly separated by resource+action (container_list vs memory_spaces vs list_files, code_find_symbol vs code_references vs code_impact), and descriptions explicitly cross-reference siblings to steer selection. Two soft overlaps remain: container_stats vs container_describe both return description/document statistics, and delete_file (which accepts up to 100 fileIds) vs request_deletions both delete in batch, forcing the agent to reason about which path applies.
A clear domain-prefix scheme is used for three of the five sub-areas (container_*, memory_*, code_*) with verb_noun forms inside each group. The document/deletion tools drop the prefix (upload_file, get_document, list_files, delete_file, search_knowledge) and deletion_status breaks into noun_noun, so it is readable and mostly predictable rather than uniform.
24 tools is at the heavy end, but the server spans four real sub-domains (containers, documents, memory facts, code index) plus an approvals flow, averaging roughly five tools each. Almost every tool earns its place, with the only redundancy being the container_stats/container_describe pair.
Lifecycle coverage is strong across every domain: containers (list/stats/describe/create/delete), documents (upload/get/list/append/delete), memory (spaces, create, remember, recall, correct, forget, timeline), code (map, find, references, impact), and async deletion with status polling. Remaining gaps are minor conveniences (container rename/update, file move/copy, direct memory_space_delete outside the approvals flow) that agents can work around.
Maintenance
Related MCP Connectors
Cloud or self-hosted knowledge for AI agents: hybrid search, reranking, GraphRAG, scoped MCP tools.
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Your personal library, readable by AI agents: durable snapshots, hybrid search, 46 MCP tools.
Private, multimodal knowledge store for agents: hybrid search with cited, provenance-backed results.
Related MCP Servers
- AlicenseAqualityBmaintenanceSelf-hosted memory and governance layer for AI coding agents. 28 MCP tools with hybrid search, structured knowledge capture, behavioral nudges, and git-native storage. Zero cloud dependencies.306Business Source 1.1
- AlicenseAqualityAmaintenanceDurable hybrid memory for AI agents. Combines vector search, BM25, temporal retrieval, and optional Memgraph knowledge graph via reciprocal rank fusion. 6 MCP tools: health, search, answer, feedback, graph_query, graph_add_triple. Self-hosted with Qdrant backend.763 PyPI10Apache 2.0
- FlicenseNot gradedqualityDmaintenanceSelf-hosted RAG-powered knowledge base that surfaces context from structured notes and transcripts, exposing each project as an MCP tool.-
- AlicenseNot gradedqualityDmaintenanceSelf-hosted knowledge manager and MCP server that lets you organize snippets, questions, and documents via a web UI and exposes them to AI assistants for reading and writing.MIT