Simple4u Memory — persistent memory for Claude
An MCP server that gives Claude a memory that survives between sessions.
Claude forgets you every time you close the chat. Simple4u Memory fixes that.
- Hierarchical memory — facts with categories (user, project, preference, reference, general)
- Two-corpus recall — searches both SQLite facts AND your markdown memory files (Claude Code auto-memory, feedback rules, project notes, daily tick logs) in one
recall(query)call - Session journals — end-of-conversation notes you can read like a diary
- Customizable persona — edit
~/.simple4u-memory/persona.mdto shape behavior - Portable — works in Claude Desktop, Claude Code, or any MCP client
- Local-first — your memory lives in
~/.simple4u-memory/on your machine, nothing leaves
Free and open source. MIT license.
Install
pip install simple4u-memory
Or from source:
git clone https://github.com/Simple4uhq/simple4u-memory
cd simple4u-memory
pip install -e .
Setup — one command
After install, run:
simple4u-memory init
This configures Claude Desktop and Claude Code automatically:
- Adds the MCP server entry to both client configs (idempotent)
- Writes a short guidance block to
~/.claude/CLAUDE.mdso Claude callsget_persona()at session start and usesremember()proactively
Restart Claude Desktop / Claude Code and the memory tools are live.
Flags
simple4u-memory init --desktop # Claude Desktop only
simple4u-memory init --code # Claude Code only
simple4u-memory init --no-claude-md # skip CLAUDE.md guidance block
simple4u-memory init --dry-run # preview changes without applying
simple4u-memory uninstall # remove all config entries
Manual setup (alternative)
If you prefer editing configs by hand, add this to
~/Library/Application Support/Claude/claude_desktop_config.json (macOS),
%APPDATA%\Claude\claude_desktop_config.json (Windows),
or ~/.claude/settings.json (Claude Code):
{
"mcpServers": {
"simple4u-memory": {
"command": "simple4u-memory"
}
}
}
Tools exposed
| Tool | Purpose |
|---|---|
remember(text, category) |
Save a fact to long-term memory |
recall(query, limit, sources) |
Search memories across SQLite facts + markdown roots (Claude Code auto-memory + persona home). sources = all / sqlite / markdown |
list_memories(category) |
Browse what's remembered |
forget(memory_id) |
Delete a wrong/outdated memory |
journal(text) |
Write an end-of-session note |
recent_journals(days) |
Read recent journal entries |
get_persona() |
Return full persona + user context |
Customize
Your memory lives in ~/.simple4u-memory/:
~/.simple4u-memory/
├── persona.md # Edit to change AI's behavior
├── memory.db # SQLite + FTS5 (don't touch unless you know)
├── user/ # Long-term facts about you
│ ├── identity.md # Who you are (name, role, values)
│ ├── projects.md # What you're working on
│ └── preferences.md # How you like to work
└── journals/
└── 2026-04-12.md # End-of-session notes
Edit persona.md to change tone, rules, behavior. Edit user/*.md to pre-fill
facts the AI will know on every session.
Environment
SIMPLE4U_MEMORY_HOME— override the data directory (default~/.simple4u-memory)SIMPLE4U_MARKDOWN_ROOTS— colon-separated list of additional markdown rootsrecall()should search. Defaults to Claude Code auto-memory dir (~/.claude/projects/<slug>/memory) +SIMPLE4U_MEMORY_HOME.
Uninstall
simple4u-memory uninstall # remove configs from Claude Desktop + Code
pip uninstall simple4u-memory
rm -rf ~/.simple4u-memory # optional — also delete stored memories
Status
v0.1.3 — default persona rewritten as working rules (no character, no name).
Ships discipline, not personality: no-hardcode, verify-before-citing, no-silent-
rewrites, post-write review pass. v0.1.2 added two-corpus recall() (SQLite +
markdown). Future: adaptive persona, semantic embeddings, team-shared memories.
Built by Simple4u
We make AI employees. simple4uhq.com
License
MIT
Metadata
Release files for simple4u-memory 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| simple4u_memory-0.1.3.tar.gz | 16.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simple4u_memory-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.4 kB
Release files / simple4u_memory-0.1.3.tar.gz
| Download URL | simple4u_memory-0.1.3.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
644e8a10c04a0884f77ac9c01f8b281221549ad40323fa2e6409d07c03a5b776
|
|
BLAKE2b-256 checksum How to use checksums |
c948145366eac2d6d7cf82601601b331c52454d657b6a62b8763c741ebf68adf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / simple4u_memory-0.1.3-py3-none-any.whl
| Download URL | simple4u_memory-0.1.3-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8078aa6219be05902848c32d400184dcf6700a277b4b17b5b8c9965c00153d7a
|
|
BLAKE2b-256 checksum How to use checksums |
ddb7cd859899ca8babafaa92fb51e6e530f62e3193753d97bd0b56128af6263e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for simple4u-memory 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.