Official descriptionMemory MCP Server A high-performance, **pure Rust** Model Context Protocol (MCP) server that provides persistent, semantic, and graph-based memory for AI agents.
Config template (adjust for your client)
claude mcp add memory-mcp-1file -- npx -y memory-mcp-1file
A pasteable skeleton generated from the repository name. Check the project README for the exact package and arguments.
Star count
25 โ ยท pomazanbohdan/memory-mcp-1file ยท read from the repository page ยท (checked 2026-10-16 20:00:20)
Source
collected from the punkpeye/awesome-mcp-servers list ยท type: MCP server
Harvest history
first seen 2026-10-09 ยท last seen 2026-10-16 ยท seen 32ร ยท listed by 7 sources
Score
score 703 ยท 25 โ ยท 7 sources ยท mcp
FAQ (answers come from our records)
How do I install it?
We did not find an install command for this repository (our install coverage is only about 4%). Check its README or releases page.
Who is it for?
We filed it under these tags: MCP ๆๅก. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository pomazanbohdan/memory-mcp-1file๏ผfirst catalogued 2026-10-09๏ผlast seen 2026-10-16ใThere is no official certification or quality rating here โ we record sources and dates only.
A high-performance, **pure Rust** Model Context Protocol (MCP) server that provides persistent, semantic, and graph-based memory for AI agents. Works perfectly with: * **Claude Desktop** * **Claude Code** (CLI) * **Gemini CLI** * **OpenAI Codex** (CLI / IDE) * **Cursor** * **OpenCode** * **Cline** / **Roo Code** * Any other MCP-compliant client. ๐ The "All-in-One" Advantage 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 API Keys, No Cloud, No Python** โ Everything runs **100% locally** via an embedded ONNX runtime. The embedding model is baked into the binary and runs on CPU. Nothing leaves your machine. * โ **Zero Setup** (Just run one Docker container or binary) It combines: 1. **Vector Search** (FastEmbed) for semantic similarity. 2. **Knowledge Graph** (PetGraph) for entity relationships. 3. **Code Indexing** with **symbol graph** (calls, extends, implements) for deep codebase understanding. 4. **Hybrid Retrieval** (Reciprocal Rank Fusion) for best results. ๐๏ธ Architecture > **Click here for the Detailed Architecture Documentation** --- MCP Protocol & Transports The server uses rmcp 3.2 and supports both protocol lifecycles: * **MCP 2026-07-28 stateless requests:** clients may begin with server/discover; every request carries the protocol version and client metadata in _meta. The process stores no MCP session, Mcp-Session-Id, or mutable currentProject. * **MCP 2025-11-25 compatibility:** clients using the legacy initialize/initialized lifecycle remain supported. This binary exposes MCP over **stdio**. Run one process per local workspace and mount that workspace at /project when using Docker. Streamable HTTP is not enabled or advertised by this release, so it introduces no HTTP session management or shared-server authentication surface. Code indexing receives an explicit path through index_project; code search can be narrowed with project_id when one process contains multiple indexed projects. Roots negotiation is not used. --- ๐ค Agent Integration (System Prompt) Memory is useless if your agent doesn't check it. To get the "Long-Term Memory" effect, you must instruct your agent to follow a strict protocol. We provide a battle-tested **Memory Protocol (AGENTS.md)** that you can adapt. ๐ก๏ธ Core Workflows (Context Protection) The protocol implements specific flows to handle **Context Window Compaction** and **Session Restarts**: 1. **๐ Session Startup**: The agent *must* search for TASK: in_progress immediately. This restores the full context of what was happening before the last session ended or the context was compacted. 2. **โณ Auto-Continue**: A safety mechanism where the agent presents the found task to the user and waits (or auto-continues), ensuring it doesn't hallucinate a new task. 3. **๐ Triple Sync**: Updates **Memory**, **Todo List**, and **Files** simultaneously. If one fails (e.g., context lost), the others serve as backups. 4. **๐งฑ Prefix System**: All memories use prefixes (TASK:, DECISION:, RESEARCH:) so semantic search can precisely target the right type of information, reducing noise. These workflows turn the agent from a "stateless chatbot" into a "stateful worker" that survives restarts and context clearing. Recommended System Prompt Snippet Instead of scattering instructions across IDE-specific files (like .cursorrules), establish AGENTS.md as the **Single Source of Truth**. Instruct your agent (in its base system prompt) to: 1. **Read AGENTS.md** at the start of every session. 2. **Follow the protocols** defined therein. Here is a minimal reference prompt to bootstrap this behavior: Why this matters? Without this protocol, the agent loses context after compaction or session restarts. With this protocol, it maintains the **full context of the current task**, ensuring no steps or details are lost, even when the chat history is cleared. --- ๐ Client Configuration Universal Docker Configuration (Any IDE/CLI) To use this MCP server with any client (**Claude Code**, **OpenCode**, **Cline**, etc.), use the following Docker command structure.