Skip to main content

Crate memory_mcp

Crate memory_mcp 

Source
Expand description

Semantic memory engine with pure-Rust embeddings and git-backed storage.

This crate provides the library core for memory-mcp, an MCP server that stores and retrieves memories using vector similarity search. Embeddings are computed on-device via candle (BERT inference) with no C/C++ FFI.

Modulesยง

auth
Token resolution, OAuth device flow, and credential storage backends.
embedding
Embedding backends for computing vector representations of text.
error
Error types used throughout the crate.
index
HNSW vector index for approximate nearest-neighbour search.
repo
Git-backed memory repository โ€” read, write, sync, and diff operations.
server
MCP server implementation โ€” tool handlers for the memory protocol.
types
Domain types: memories, scopes, metadata, validation, and application state.