hmem is a memory management system for AI agents that allows them to retain context and information across sessions, devices, and AI providers without manual intervention.
From the registry: Persistent 5-level hierarchical memory for AI agents. SQLite-backed, lazy-loaded.
$ npm install -g hmem-mcp$ npx hmem initPlease install the `hmem-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install hmem-mcp** — Install globally from npm Run: `npm install -g hmem-mcp`
- **Run installer** — Use the interactive installer to set up memory dir and hooks Run: `npx hmem init`
Canonical MCP server config (stdio transport):
- command: `node`
- args: ["/path/to/hmem-mcp/dist/mcp-server.js"]
- required environment variables:
- `HMEM_PROJECT_DIR`: Absolute path to the memory directory (example: `<your-home>/.hmem`)
- optional environment variables:
- `HMEM_AGENT_ID`: Agent identifier matching your Agents/ directory name (example: `DEVELOPER`)
- `HMEM_SYNC_PASSPHRASE`: Enable automatic sync across devices (example: `<your-sync-passphrase>`)
Note: Best installed via 'npx hmem init' which detects your AI tool and wires up hooks automatically.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.HMEM_PROJECT_DIRrequiredDirectory where hmem stores memory data.HMEM_AGENT_IDrequiredIdentifier for the agent in the memory system.HMEM_SYNC_PASSPHRASEPassphrase for automatic sync on every read/write.AI Agents Framework with Self Reflection and MCP support