AgentStack
MCP unreviewed MIT Self-run

Mem

mcp-hugolopes45-mem · by HugoLopes45

Session memory for Claude Code — teaches Claude to maintain MEMORY.md, injects it at every session start

No reviews yet
0 installs
1 views
0.0% view→install

Install

$ agentstack add mcp-hugolopes45-mem

Open-source listing — not yet scanned by AgentStack. Follow the source repository for install instructions.

Security review

⚠ Flagged

1 finding(s); flagged for manual review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures
  • high Pipes remote content directly into a shell (remote code execution).

What it can access

  • Network access Used
  • 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.

Are you the author of Mem? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

mem — session memory for Claude Code

[](https://github.com/HugoLopes45/mem/actions/workflows/ci.yml) [](https://crates.io/crates/mem) [](LICENSE)

Claude forgets everything between sessions. mem fixes that in two steps:

  1. Teaches Claude to maintain MEMORY.md — adds a rule to ~/.claude/CLAUDE.md so Claude updates the file at the end of every session with decisions, rejections, and patterns.
  2. Injects MEMORY.md at session start — wires a SessionStart hook so Claude opens every session with full project context already in mind.
curl -fsSL https://raw.githubusercontent.com/HugoLopes45/mem/main/install.sh | bash

That's it. One command, zero manual config.


How it works

mem init
  → adds rule to ~/.claude/CLAUDE.md   (Claude writes MEMORY.md at session end)
  → wires SessionStart hook             (MEMORY.md injected at session start)

Every session:
  start  → mem session-start injects MEMORY.md into Claude's context
  end    → Claude updates MEMORY.md per the rule (decisions, rejections, patterns)

The file lives at your project root. Claude reads it, Claude maintains it.


Commands

mem init              # setup: wire hook + add rule to CLAUDE.md
mem status            # verify: hook installed? rule present? files indexed?
mem index             # index all MEMORY.md files for search
mem search     # search across all indexed MEMORY.md files

What goes in MEMORY.md

Claude writes this automatically. Example after a few sessions:

# myproject

- Auth: JWT, not sessions — mobile client needs stateless (2026-02-18)
- Tried Prisma, switched to raw SQL — too much magic for this schema
- Don't use `any` — Biome enforces strict types, CI will fail
- Payment webhooks must be idempotent — Stripe retries on timeout
- DB migrations: always add column nullable first, backfill, then add constraint

Decisions, rejections, patterns. Things Claude would otherwise ask about again.


Install

curl -fsSL https://raw.githubusercontent.com/HugoLopes45/mem/main/install.sh | bash

From source

cargo install --git https://github.com/HugoLopes45/mem --locked
mem init

Requires Rust 1.75+.


Verify

mem status
Binary    : /Users/you/.cargo/bin/mem
Hook      : installed
Rule      : installed
Indexed   : 3 MEMORY.md file(s)

Search across projects

mem index                    # index all MEMORY.md files
mem search "jwt"             # find decisions across all projects
mem search "rejected"        # find things you decided not to do

License

MIT — see [LICENSE](LICENSE).

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.