Persistent 5-level hierarchical memory for AI agents. SQLite-backed, lazy-loaded.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Hmem β Humanlike Memory for AI Agents.
read_memory5-level lazy read β by ID, prefix, search, time, or tag
write_memoryCreate new entries with title, body, tags, links
append_memoryAdd child nodes to existing entries
update_memoryPatch fields: title, body, tags, irrelevant, links
search_memoryFTS5 full-text search with sub-node attribution
find_relatedFind contextually related entries by tag overlap
Your AI forgets everything between sessions. hmem fixes that.
One load_project() call. ~3000 tokens. Your agent knows everything important about a project β every past mistake, every decision, every open task β across sessions, devices, and AI providers. No setup per conversation. No "let me re-read the codebase." It just remembers.
AI agent? Skip this file. Read AGENT_SETUP.md β written for you, not for humans.
Naming note (v8.0): This package was briefly published as
its-over-9k(1.x). It is nowhmemagain β pure memory framework, nothing else. Theits-over-9kname lives on as a separate project: the o9k token-efficiency meta-framework, which combines skills/plugins like this one. Related: TIM β hmem's next-generation successor (hypergraph memory, CRDT sync).
hmem is not a note-taking plugin. It's a memory framework for AI agents β a complete infrastructure layer for persistent, portable, token-efficient knowledge that survives session boundaries, device switches, and provider changes.
Four core guarantees:
| Pillar | What it means |
|---|---|
| Token efficiency | 5-level lazy loading β you pay for what you read, never more |
| Portability | Same memory across Claude, Gemini, GPT, local models, any MCP client |
| Efficient storage | Hierarchical tree structure β context scales with depth, not flat append |
| No context waste | Auto-session capture + project briefing = zero re-read overhead |
Every AI session starts from zero. Your agent asks the same questions, makes the same mistakes, contradicts last week's decisions, and wastes 50k tokens loading context it already processed yesterday.
You've tried workarounds β CLAUDE.md files, custom prompts, manually pasting context. They don't scale. You have 10 projects. You switch between 3 devices. You use different AI tools.
That's it. 3000 tokens for a complete project briefing. The agent knows the stack, the architecture, the open bugs, the recent decisions, and exactly where you left off β even if "you" was a different AI on a different machine yesterday.
At session start, the agent loads Level 1 summaries β one line per memory. When it needs detail, it drills down. Your 300-entry memory costs 5k tokens to overview. A single project costs ~3000 tokens.
Nothing is summarized away. Level 1 is a compressed view, but Levels 2β5 hold the complete original text, word for word, accessible on demand.
Every conversation is recorded automatically. No "save your work" prompts. No manual checkpoints.
Switch projects mid-session? The O-entry switches too. Start a new session on a different device? The next agent sees every exchange from every device β the conversation never dies.
Every N exchanges (configurable, default 5), a Haiku subagent wakes up in the background. It reads the recent conversation, extracts lessons learned, errors encountered, and decisions made, then writes them to long-term memory β with full MCP tool access. Your main agent is never interrupted.
The checkpoint also writes a handoff note to the project: "Here's what was done, here's what's in progress, here's the next step." The next agent β on any device, any provider β picks up exactly where you left off.
Sessions are meaningless. Projects are everything.
load_project shows recent conversations with full context β across all deviceshmem ships with a complete skills layer β structured behavior files that agents load on demand. Skills define how an agent should do something (debug, write memory, curate entries, handle a session start) β separate from memory, separate from prompts.
Skills are versioned and updated independently. Your agents get smarter without reinstalling. 21 skills ship by default:
| Skill | Triggers when⦠|
|---|---|
hmem-session-start | Every session start β loads project + surfaces pending git work, open tasks, misrouted O-entries |
hmem-using-hmem | Meta-skill loaded at session start; defines mandatory memory habits |
hmem-read | Reading from long-term memory (search, prefix filter, find_related, cross-project read) |
hmem-write | Writing to hmem β picks prefix, tree location, tags, detects duplicates |
hmem-search | User references something without an ID ("the bug we had", "letzte Woche") |
hmem-new-project | Creating a P-entry β handles schema, sections, O-entry linking |
hmem-new-error | Creating an E-entry with the strict 5-level scaffold |
hmem-activate | Switching active project mid-session, plus fixing misrouted exchanges |
hmem-context | Loading specific context when load_project output isn't enough |
hmem-recall | Dispatching a Haiku sub-agent to search hmem |
hmem-dispatch | Dispatching an isolated sub-agent for any search/lookup/calculation |
hmem-curate | Cleaning up an .hmem file (mark obsolete, fix titles, consolidate dupes) |
hmem-migrate-o | Migrating O-entries to the project-bound 5-level structure |
hmem-consolidate | Merging session checkpoint summaries into one final O-entry summary |
hmem-wipe | Prep for /clear β save high-value knowledge, update Next Steps |
hmem-config | View/change memory settings, hooks, sync, checkpoints |
hmem-setup | First-time install of hmem for Claude Code / Gemini CLI / OpenCode |
hmem-sync-setup | Set up hmem-sync for cross-device sync |
hmem-update | Update flow β runs npm update -g, syncs skills, applies migrations |
hmem-release | Pre-publish checklist for hmem itself |
hmem-subagent | Template for sub-agents dispatched by hmem-dispatch |
Beyond personal memory, agents can maintain a shared company store β a separate company.hmem that multiple agents and team members can read from. Personal and company memory coexist; agents query both simultaneously.
hmem ships as a fully documented TypeScript SDK β import HmemStore directly into your own agents, tools, or automation pipelines:
hmem ships two MCP servers:
hmem (daily-use, 13 tools) β read, write, search, project lifecycle.hmem-curate (maintenance, 11 tools) β bulk edits, schema migrations, backup/restore. Activate only when curating.hmem β daily-use server (13)| Tool | What it does |
|---|---|
read_memory | 5-level lazy read β by ID, prefix, search, time, or tag |
write_memory | Create new entries with title, body, tags, links |
append_memory | Add child nodes to existing entries |
update_memory | Patch fields: title, body, tags, irrelevant, links |
search_memory | FTS5 full-text search with sub-node attribution |
find_related | Find contextually related entries by tag overlap |
load_project | Activate a project + get full briefing + recent sessions |
read_project | Read project without activating (comparison/reference) |
create_project | Scaffold a new project entry with standard schema |
list_projects | List all projects with status summary |
flush_context | Persist current session context to long-term memory |
move_nodes | Move a subtree under a different parent (also in curate server) |
set_active_device | Register and switch between devices |
hmem-curate β maintenance server (11)Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hmem-humanlike-memory-for-ai-agents)<a href="https://allmcps.com/mcp/hmem-humanlike-memory-for-ai-agents"><img src="https://allmcps.com/api/badge/hmem-humanlike-memory-for-ai-agents?style=directory" alt="Hmem β Humanlike Memory for AI Agents on AllMCPs" /></a>