Hmem — Humanlike Memory for AI Agents logo

Hmem — Humanlike Memory for AI Agents

Persistent SQLite-backed hierarchical memory for AI agents, with lazy reads, project context, search, and maintenance tools.

Install Hmem — Humanlike Memory for AI Agents

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "hmem-humanlike-memory-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "hmem"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio hmem-humanlike-memory-for-ai-agents -- npx -y hmem

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y hmem

npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/hmem - Not found npm error 404 npm error 404 'hmem@*' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-11-11T14_09_49_346Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

hmem — Humanlike Memory for AI Agents MCP server stores persistent agent memory in SQLite-backed .hmem files. It organizes information into five levels and loads deeper content only when requested, reducing the context needed for routine reads. MCP tools cover memory entries, projects, search, tags, links, device state, import/export, and maintenance. Reach for it when agents need project context and knowledge to persist across sessions, devices, or AI providers.

Use cases

  • Persist project decisions and open tasks between agent sessions
  • Load a compact project briefing before continuing work
  • Search hierarchical memory by text, tag, prefix, or time
  • Share company knowledge through a separate memory store
  • Export or restore memory as portable JSON

Key features

  • Five-level lazy-loaded memory hierarchy
  • SQLite-backed .hmem storage
  • FTS5 search with sub-node attribution
  • Project activation and briefing tools
  • Tag, link, subtree, and identifier maintenance
  • JSON export and import

Tools23

What Hmem — Humanlike Memory for AI Agents lets your agent do. Expand a tool for its parameters.

Self-reported~354 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/28 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · hmem (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars24Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Tools exposed23Callable tools this server registers over MCP.

How Hmem — Humanlike Memory for AI Agents works

What hmem — Humanlike Memory for AI Agents does

hmem — Humanlike Memory for AI Agents provides persistent memory for AI agents through MCP. It stores information in a SQLite-backed .hmem file and organizes entries as a five-level hierarchy. The structure supports compact summaries at the top and progressively more detailed content below, including complete original text at the deepest levels.

The memory model covers more than standalone notes. Entries can have titles, bodies, tags, links, child nodes, and identifiers. Project entries provide a higher-level way to group work, sessions, decisions, tasks, and other context. The server can activate a project, return its briefing, and show recent sessions, or read a project without changing the active project.

The repository also describes an embeddable TypeScript SDK and a separate company memory store. These allow applications or teams to work with .hmem data outside the MCP tool interface, although the MCP listing focuses on the server tools.

How it works

Reads are lazy. A top-level summary can provide an overview of many entries, while deeper levels are retrieved only when the agent needs additional detail. read_memory can address data by ID, prefix, search term, time, or tag. search_memory uses SQLite FTS5 and reports which sub-nodes contributed to a result. find_related uses overlapping tags to identify related entries.

Project workflows use load_project to activate a project and return its briefing and recent sessions. read_project provides comparable project information without activation. create_project creates a project entry with the repository's standard schema, while list_projects returns project status summaries.

These can save exchanges to memory, associate them with the active project, extract lessons and decisions, and write handoff notes. Skills shipped with hmem define behaviors for session startup, reading, writing, searching, project creation, curation, configuration, and related workflows.

Tools and capabilities

The daily-use tool set includes:

  • Create and change entries with write_memory, append_memory, and update_memory.
  • Search and relate entries with search_memory and find_related.
  • Manage projects with load_project, read_project, create_project, and list_projects.
  • Save the current session with flush_context.
  • Inspect memory with memory_stats and memory_health.
  • Register or switch devices with set_active_device.
  • Export a complete memory file to JSON with export_memory, or restore one with import_memory.

Maintenance tools support subtree and entry moves, identifier renaming with inbound-link rewrites, bulk patches, global tag additions or removals, tag renaming, and cache invalidation after raw SQL changes. The README presents these maintenance operations as part of the hmem-curate server, separate from the daily-use hmem server.

Limitations and notes

The five-level model reduces initial context but does not automatically expose all stored detail in every read; deeper information must be requested. Importing a JSON snapshot is destructive, so it should be treated as a replacement operation rather than an additive merge.

The project describes two MCP servers: hmem for routine memory and project operations, and hmem-curate for maintenance. Curation tools are intended to be activated when needed. After direct SQL changes, the in-memory L1 cache must be reset with reset_memory_cache so subsequent reads reflect the database state.

hmem — Humanlike Memory for AI Agents can also maintain a separate company.hmem store for shared team knowledge.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Hmem — Humanlike Memory for AI Agents

hmem — Humanlike Memory for AI Agents is an MCP server that connects agents to SQLite-backed .hmem memory files. Its main tools read, write, search, and organize five-level hierarchical memory, manage projects, flush session context, inspect health, and export or import JSON snapshots for portable persistence.

It loads memory lazily through five hierarchical levels. Agents can read compact top-level summaries first, then request deeper detail only when needed. The stored text remains available at lower levels rather than being discarded during summarization.

Yes. `load_project` activates a project and returns its briefing plus recent sessions, while `read_project` reads a project without activating it. Additional tools create projects and list project status summaries.

Use `export_memory` to create a portable JSON snapshot of the full `.hmem` file. `import_memory` restores a JSON snapshot, but the operation is destructive and should be treated as replacing the target memory.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewHmem — Humanlike Memory for AI Agents AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hmem-humanlike-memory-for-ai-agents?style=directory)](https://allmcps.com/mcp/hmem-humanlike-memory-for-ai-agents)
HTML Embed
<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>