5 months ago
A high-performance, pure Rust Model Context Protocol (MCP) server that provides persistent, semantic, and graph-based memory for AI agents.
Unlike other memory solutions that require a complex stack (Python + Vector DB + Graph DB), this project is a single, self-contained executable.
✅ No External Database (SurrealDB is embedded)
✅ No Python Dependencies (Embedding models run via embedded ONNX runtime)
✅ No API Keys Required (All models run locally on CPU)
✅ Zero Setup (Just run one Docker container or binary)
It combines:
Vector Search (FastEmbed) for semantic similarity.
Knowledge Graph (PetGraph) for entity relationships.
Code Indexing for understanding your codebase.
Hybrid Retrieval (Reciprocal Rank Fusion) for best results.
Server Config
{
"mcpServers": {
"memory": {
"command": "docker",
"args": [
"run",
"--init",
"-i",
"--rm",
"-v",
"mcp-data:/data",
"-v",
"/absolute/path/to/your/project:/project:ro",
"ghcr.io/pomazanbohdan/memory-mcp-1file:latest"
]
}
}
}