Skip to main content

Persistent memory for Claude — MCP server with hierarchical memory, semantic search, and customizable persona

Project description

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.md to 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.md so Claude calls get_persona() at session start and uses remember() 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 roots recall() 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.2 — two-corpus recall() lands (SQLite + markdown). Core memory tools + setup command stable. Future: adaptive persona, semantic embeddings, team-shared memories.

Built by Simple4u

We make AI employees. simple4uhq.com

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple4u_memory-0.1.2.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple4u_memory-0.1.2-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file simple4u_memory-0.1.2.tar.gz.

File metadata

  • Download URL: simple4u_memory-0.1.2.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for simple4u_memory-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c57959aacd0527846434022ae86c506adb2a18dfd8431ad52ccdc9cd03ee9f1d
MD5 a7ede2d64af9ccfd99fe7bfb76881e7d
BLAKE2b-256 988163e7d378b0a28f02983e1c3c9d3ab3ab4abe8426b741fab553b63d1f801c

See more details on using hashes here.

File details

Details for the file simple4u_memory-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for simple4u_memory-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a8319e29e8562916adec96fdd9c0d209730b6435e5e092fbc058ce1f10028711
MD5 37c59bd43ef4c9e58a0294a53201eee4
BLAKE2b-256 efcc3e91162f7a87b931ea8ce8a61aa1c7ea5cea84dbec3191ed3303e359511f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page