Skip to the content.

Zakira.Exchange

AI Agent Memory Storage & Semantic Search

An MCP server and CLI tool that enables AI agents to save, share, and search memories. Built with .NET 10, standalone with no external service dependencies.

Memories are stored in SQLite with full-text search (FTS5) and semantic vector search (ONNX embeddings), merged via Reciprocal Rank Fusion for hybrid retrieval.


Features


How It Works

 AI Agent
    |
    v
 MCP Server (stdio)          CLI Tool
    |                           |
    v                           v
 MemoryService (CRUD + Search)
    |
    +-- SQLite (FTS5 + WAL mode)
    |
    +-- ONNX Runtime (all-MiniLM-L6-v2 embeddings)
    |
    +-- Hybrid Search Engine (BM25 + Vector, merged via RRF)
  1. Memories are stored as structured entries with rich metadata
  2. On create/edit, entries are embedded using all-MiniLM-L6-v2 (384-dim vectors)
  3. On search, the query is embedded and compared against stored vectors (cosine similarity) while simultaneously performing BM25 keyword search
  4. Results from both search methods are merged using Reciprocal Rank Fusion (k=60) for best-of-both-worlds retrieval


License

Unlicense – public domain.