Install
$ agentstack add mcp-itcraft-cn-memrec ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
[中文版](README_cn.md) | English
MemRec — AI Memory Persistence System
> Local-first AI memory with project isolation — for terminal, for private use
Local memory persistence system for AI CLI tools, providing cross-session memory recovery, knowledge accumulation, and conversation archival.
Features
- Project Isolation — Auto-detect git root, .mr_pid persistence, independent memory per project
- Semantic Search — Local ONNX model (384-dim), zero API cost, all data stays local
- Cross-Project Search —
--allflag to discover related knowledge across projects - AI-first Design — JSON output by default, concise commands, Skill integration
- High Performance — Rust, 7.5KB) automatically split into chunks
- Systemd Integration — Manage daemon with
systemctl --user
Quick Start
Install
# One command to install everything
cargo install --locked mr-install
mr-install
mr-install automatically:
- Installs memrec/memrecd via
cargo install - Creates
~/.memrec/directory structure - Downloads ONNX embedding model (~90MB)
- Registers and starts the daemon service
- Verifies the installation
| Platform | Binary Path | Data Path | |----------|------------|-----------| | Linux | ~/.local/bin/ | ~/.memrec/ | | macOS | ~/bin/ | ~/.memrec/ |
Mirror options for model download:
mr-install --use-hf-mirror # Use hf-mirror.com (China)
mr-install --mirror-base-url # Custom mirror
Usage
# Add memories
memrec add "Choose JWT auth" --mtype decision --tag critical
memrec add "RAII: resource acquisition is initialization" --mtype knowledge --tag best-practice --tag rust
memrec add "User prefers verbose output" --mtype preference --tag output --global
# Semantic search
memrec search "auth" # Current project + global
memrec search "performance" --project-only # Current project only
memrec search "preferences" --global-only # Global memories only
memrec search "xlsb" --all # Across all projects
# Other commands
memrec list --limit 20
memrec get
memrec stats
memrec version
Project Isolation
MemRec automatically creates independent memory spaces for different projects:
project-a/ project-b/
├── .mr_pid ├── .mr_pid ← Auto-created, different IDs
├── .gitignore ├── .gitignore ← Add .mr_pid to .gitignore
└── src/ └── src/
- Git repos: Auto-detect git root
- Non-git dirs: Use current working directory
- Global memories:
--globalflag, accessible from all projects - Cross-project search:
--allsearches across all projects
Memory Types
| Type | Flag | Purpose | |------|------|---------| | Decision | decision | Key technical/business decisions | | Knowledge | knowledge | Knowledge (subdivide via tags: fact/best-practice/algorithm/tool) | | Context | context | Project config, environment info | | Preference | preference | User preferences (recommend --global) | | Conversation | conversation | Conversation records (default) |
Data Location
~/.memrec/
├── config.toml # Configuration
├── memrecd.sock # Unix Socket
├── data/ # RocksDB memory metadata
├── vectors/ # RocksDB vector storage
└── models/ # ONNX Embedding model
Environment Variables
| Variable | Purpose | Default | |----------|---------|---------| | MEMREC_MODEL_DIR | Custom model path | ~/.memrec/models/Qdrant--all-MiniLM-L6-v2-onnx/ | | MEMREC_MIN_SCORE | Min similarity score | 0.75 | | RUST_LOG | Log level | info |
Documentation
- [Installation Guide](docs/installation.md)
- [User Guide](docs/user-guide.md)
- [Skill Documentation](docs/skills/memrec-skill.md)
Project Structure
memrec/
├── common/ # Shared types and protocol
├── memrecd/ # Daemon service
├── memrec/ # CLI tool
├── mr-install/ # Installer
└── docs/ # Documentation
License
Apache-2.0
Changelog
See [CHANGELOG.md](CHANGELOG.md)
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: itcraft-cn
- Source: itcraft-cn/memrec
- License: Apache-2.0
- Homepage: https://itcraft.cn/memrec
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.