alexandria

cebarks/alexandria
★ 1 stars Rust AI/LLM Updated today
Long-term memory for AI agents. MCP server with local embeddings, heat-based recall, and hierarchical clustering on embedded SurrealDB.
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "alexandria": {
      "command": "cargo",
      "args": [
        "run",
        "--",
        "alexandria"
      ]
    }
  }
}

README Excerpt

Agent memory server with tiered maturity, hierarchical clustering, spreading activation, and progressive recall. Runs as a persistent [MCP](https://modelcontextprotocol.io/) service backed by embedded [SurrealDB](https://surrealdb.com/). - **Semantic search** — Cosine similarity over local embeddings (all-MiniLM-L6-v2 via candle, pure Rust)

Tools (8)

delete_memoryfinalize_sessionget_sessionimport_documentrecallretrieve_memoriesstore_memoryupdate_memory

Topics

agent-memoryai-agentsai-memorycoding-agentembeddingsllmllm-agentslocal-firstmcpmemorymodel-context-protocolragrustself-hostedsemantic-search