memory7 weekly downloads statistics
By amjiddader · npm · Claude Code
Fast, local, low-token long-term memory for AI coding tools (Claude Code, Kiro, VS Code, Cursor, OpenCode) over MCP.
memory7 has 2,404 recorded weekly downloads on npm, a change of -75.6% over the past 7 days, ranking #1828 of 3,247 tracked listings.
About memory7
memory7
Fast, local, low-token long-term memory for AI coding tools, over MCP.
One memory shared by Claude Code, Kiro, VS Code (Copilot), Cursor and OpenCode, on macOS, Linux and Windows. It remembers things about you (global: "uses Ubuntu", "prefers pnpm") and about each project (stack, commands, decisions, gotchas). Project memory can live in the repo, so a teammate who clones it starts with the same memory.
npm install -g memory7 # or use npx
memory7 init # wires memory7 into the IDEs it finds
memory7 init --project # inside a repo: share its memory through git (.memory/ + MEMORY.md)
Restart your IDE. From then on, the AI loads a short digest at session start, saves what matters as you work, and searches before asking you something you already told it.
Why this one
| Fast | In-process SQLite + FTS5. On 10k memories: search p95 ≈ 3 ms, digest ≈ 5 ms, MCP server ready in ≈ 90 ms. Hooks run in ≈ 45 ms. |
| Few tokens | 4 tools, ≈ 800 tokens of schema + instructions in total. Results are one line each. The session digest is capped (default 400 tokens) and ranked, not dumped. |
| Automatic | The AI is told to save unprompted. On top of that, memory7 reads your manifests (package.json, pyproject.toml, Cargo.toml, Dockerfile, CI files, ...) and records stack and commands itself. |
| Notices when code moves on | A memory that names a file is tracked against it automatically and flagged ?stale when the file changes. |
| Shared through git | .memory/memory.jsonl in the repo, merged without conflicts, newest edit wins, deletes propagate. |
| Not a pile | Keyed facts replace their old value ("switched to Fedora" overwrites "uses Ubuntu"). Duplicates are skipped. Everything is soft-deleted with undo. |
| Local | SQLite file in ~/.memory7. No network, no telemetry, no model download. |
| Zero dependencies | The published package bundles everything. Needs Node ≥ 22.13 (built-in node:sqlite). |
How it works
Tools the AI sees
| Tool | What it does |
|---|---|
memory_context | Short digest: global memory + current project (stack, commands, conventions, decisions, gotchas, todos, recent commits) and a stale: line for memories whose code changed. Called once per session. |
memory_search(query, scope?, type?, limit?) | One line per hit, e.g. #12 [pref|g] {pkg-manager} Prefers pnpm over npm. scope: all (default), project, global, any-project. |
memory_save(content, key?, type?, scope?, files?, id?, replace?, items?) | Upsert. Scope and type are inferred if omitted. items saves several at once. id with no content re-confirms a memory against the current code. |
memory_delete(ids? | key? | query?) | Soft delete. A query deletes only when it matches exactly one memory, otherwise it lists candidates. |
Also exposed: resource memory7://context and prompt /remember <text>.
Keeping memory current when code changes
Memory that is not updated when the code changes is worse than none, so memory7 attacks this from several sides:
- Auto-anchoring. When a saved memory mentions an existing file (
src/lib/auth.ts), memory7 records the file's content hash. When the file changes the memory shows?stale(or?missingif deleted) in search results and in the digest, and the digest ends withstale: #12 #19 ...plus what to do. Line endings are normalized, so a Windows checkout with CRLF does not look changed. - An edit trigger (Claude Code). After the AI edits a file, a
PostToolUsehook tells it which memories depend on that file: "update withmemory_save(id=N, ...), delete, or re-confirm". It is installed only when memory7 is installed globally, because it runs on every edit andnpxstartup would be too slow. Kiro's file-save hook cannot return text to the AI, so Kiro relies on the digest and its steering rules. - Rules that name the moments. The server instructions and
MEMORY.mdsay when to save (immediately, not at the end), when to update (after changing code a memory describes), and what a?staleflag means. - Passive capture. On each tool call (throttled to once per 20 s) memory7 re-reads changed manifests and refreshes stack, package manager, Node/Python version, test/dev/build/lint commands, containers, CI, env-var names (never values) and Make/just targets. Facts that disappear from the manifests disappear from memory. A memory you or the AI set with the same key wins over an auto one.
memory7 checklists every out-of-date memory;--strictexits non-zero so you can run it in CI.
What it cannot do: notice that a memory is wrong when it names no file and no manifest changed. Those depend on the AI following the rules.
Staying current without being asked
An MCP server cannot force a model to call it, so there are three layers: the server instructions and rules files; passive capture (no AI involved); and hooks where the IDE supports them (digest injected at session start, prompts starting with "remember ..." saved directly).
Search
SQLite FTS5 (porter stemming, prefix matching), a built-in synonym map (searching os finds "Ubuntu", db finds "Postgres"), AND-then-OR fallback, and a trigram fallback for typos. Ranking blends match quality with memory type, recency (60-day half-life, floored), how often a memory was actually returned, pinning, and whether it belongs to the current project.
Project identity
A project is identified by the hash of its normalized origin URL, so every clone and git worktree shares memory. With no remote it falls back to the real path. The workspace comes from the MCP client's roots, then MEMORY7_PROJECT, then the working directory. Home and / are never treated as projects.
Sharing project memory with your team…
Description from the npm listing.
- mcp
- model-context-protocol
- memory
- ai
- claude-code
- kiro
- cursor
- vscode
- opencode
- sqlite
- fts5
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (135)Similar npm Claude Code plugins
All 20 memory7 alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/memory7. First seen Nov 17, 2026; last successful collection Dec 6, 2026. See the methodology.