Skip to main content
Glama

Hermind

Long-term memory for AI agents, in one SQLite file on your machine.

Decisions, preferences and facts survive between sessions and come back even when you ask in other words, in English, Chinese or Cantonese. No server, no cloud account, no LLM or API key needed. Built first for Hermes; any MCP-capable agent can use the same notes.

English · 繁體中文

version python deps license


What it does

On day 1 the agent stores a decision (by itself, or because you asked). A week later, in a new session:

That is real output from a fresh database with three notes and lexical search only. A question that shares no word with the note can still miss; the optional semantic search closes most of that gap with a local model (one download, no API key).

Privacy in 1.1.1: Hermind cleans marked private text from selected fields when importing its own JSON. Preview and apply reports explain invalid metadata without quoting its value. Existing records are not rewritten. See the changelog for the batch-tool and model-client fixes.

Related MCP server: memory-mcp

Install

The easy way: let your agent do it. Tell it: "Read AGENTS.md in https://github.com/fungane/hermind and set Hermind up for me." It asks you where to install, shows a dry run, backs up first and gives you a rollback command (AGENTS.md).

Hermes agent (recall before every turn, capture after every reply, review queue):

git clone --branch v1.1.1 https://github.com/fungane/hermind.git ~/hermind
cd ~/hermind
python3 hermind_cli.py install-hermes --dry-run     # shows what it will do; add --profile NAME for another profile
python3 hermind_cli.py install-hermes               # backs up, copies the plugin, checks the result
hermes config set memory.provider hermind           # then restart the Hermes gateway / desktop app

Claude Code, Cursor, Codex and other MCP clients (needs uv):

claude mcp add hermind -e HERMIND_MCP_WRITE=1 -- uvx --from git+https://github.com/fungane/hermind@v1.1.1 hermind-mcp

hermind config CLIENT --write prints the entry for 20+ other clients (docs/setup.md). Without --write the server is read-only: the agent can recall but not save. On its own the agent looks notes up only when it decides to; in Claude Code, hermind install-hook adds automatic recall before every prompt (details). The server was run against Claude Code and the official MCP TypeScript SDK; the other entries follow each client's documentation.

Check it, and try it without any agent:

uvx --from git+https://github.com/fungane/hermind@v1.1.1 hermind selftest     # a few seconds; touches no real data
uvx --from git+https://github.com/fungane/hermind@v1.1.1 hermind remember "Atlas uses PostgreSQL for orders" --keywords "orders database 訂單 資料庫"
uvx --from git+https://github.com/fungane/hermind@v1.1.1 hermind search "which database for orders"

@v1.1.1 pins the tested release; change the number to upgrade. Below, hermind stands for that whole uvx --from git+https://github.com/fungane/hermind@v1.1.1 hermind (or install the command once with uv tool install git+https://github.com/fungane/hermind@v1.1.1).

Your data

Route

Database

MCP server and hermind remember/search

~/.hermind/memory.db (or $HERMIND_DB)

Hermes plugin

hermind.db in each Hermes profile, e.g. ~/.hermes/hermind.db

The two routes use different files unless you point them at the same one (hermind config CLIENT --db-from-profile NAME). Each is a single SQLite file readable only by you.

  • Export everything: hermind export --out notes.json (also --format jsonl or --format markdown --out DIR).

  • Import from Markdown folders, Claude Code, ChatGPT or Claude exports, instruction files or another Hermind: hermind import SOURCE previews, --apply imports after a backup, --revert undoes it.

  • Delete one note with the memory_forget tool (the Hermes plugin has it; the MCP server offers it only with --write --tools search,get,remember,update,forget). Uninstall completely: docs/import-export.md lists every file Hermind can create.

  • Upgrades copy the database first (memory.db.bak-v<N>-..., the three newest are kept) and stop if the copy fails.

Details: docs/import-export.md.

Projects

With the Hermes plugin, each note remembers the project it was written in: the working directory of the session (your home directory, a filesystem root and a folder that holds several of your projects count as no project). The project is stored inside the database only; it is never shown in a result and never exported.

  • What changes: in automatic recall, chat and summary notes written in a different project rank lower (a factor of 0.5; with semantic search on, a note that the embedding results also surface can be scaled a second time, 0.25 overall). They are never hidden. Pinned notes, notes you have opened or confirmed, and technical facts, decisions and preferences are never demoted. A session or note with no project is never demoted, and explicit searches (memory_search, hermind search, the MCP server) are unchanged.

  • Settings (plugins.hermind): project_penalty (0.5; 1.0 turns this off) and project_penalty_kinds (chat,summary).

  • Notes written before the upgrade have no project. Give them one from a file that maps session ids to working directories, which you produce yourself (Hermind does not read Hermes' own databases):

    echo '{"20260301_093000_ab12cd": "/home/you/work/atlas"}' > projects.json
    hermind import-projects projects.json --dry-run     # counts only; writes nothing, not even a backup
    hermind import-projects projects.json               # saves a backup copy first, then sets the empty projects

    Only notes with no project are set, and nothing else in the database changes. Run it again whenever you like.

Why Hermind

One file, nothing running

No database server, no background service, no account. A search takes about 20 ms with 5,000 notes

English, Chinese and Cantonese

Synonym groups for all three, Traditional/Simplified folding, and optional local semantic search (four model sizes, 52 to 568 MB) for questions that share no word with the note

Remembers when things were true

A newer fact supersedes an older one without deleting it; as_of answers "what did we use in September?". Every merge can be undone

Private by default

Works fully offline. Credentials are refused, <private> text is never stored, personal data is redacted before any optional LLM call, risky agent writes wait for your review, the file can be encrypted

Good fit: you run agents on your own machine, want their memory in a file you can read, back up and move, and do not want to run a service. Not a fit: you need a hosted service, several users with access control in one database, document ingestion or a web UI.

How light is it?

Measured on Linux with 5,000 short synthetic notes; your numbers will vary with note length.

Installed package (wheel, no dependencies)

about 240 KB

MCP server after 20 searches

about 29 MB of RAM idle, about 40 MB at peak

Database

about 6 MB per 5,000 short notes

Optional semantic search (a separate worker that exits after 5 idle minutes)

about 180 to 960 MB of RAM while awake, depending on the model

The MCP figures are the Python server process itself; the uvx one-liner above also keeps a small uv launcher process running beside it (about 30 MB), which installing with uv tool install and running hermind-mcp directly avoids.

How it works

In Hermes the agent gets ten tools: memory_remember, memory_search, memory_get, memory_related (with timeline and as_of), memory_update, memory_feedback, memory_forget, memory_list, memory_review and memory_reflect. The MCP server lists the four read-only ones by default, six with --write, and the rest when you name them. docs/how-it-works.md explains the data model, search and ranking, and how well it recalls. In short: on the public LongMemEval-S set (470 English questions) lexical search alone puts the right session in the top 5 for 96.4%; on 54 casual Cantonese and English questions about one person's real notes, the right note was in the top 5 for 42 with lexical search and 49 with semantic search. One user's data: indications, not guarantees.

Privacy

Notes stay in the file on your machine; nobody, including the author, receives them. Nothing leaves the machine unless you turn it on: an LLM endpoint you configure for the optional tools (off by default), the one-time model download for semantic search, and whatever your MCP client sends to its own model provider. Pattern-based redaction misses unusual formats, and stored text can still carry prompt injection; both are reduced, not eliminated. docs/privacy.md has the full list and the encryption guide. Vulnerabilities: SECURITY.md.

Documentation

docs/setup.md

install routes, every MCP client, Hermes plugin settings, semantic search, optional LLM tools

docs/import-export.md

bringing notes in, taking them out, backups

docs/privacy.md

what is stored, what can leave the machine, encryption

docs/how-it-works.md

data model, search and ranking, every tool, recall measurements

docs/limitations.md

what does not work well yet

AGENTS.md · CHANGELOG.md

install runbook for AI agents · changes per version

Status and support

An early version, used daily by one person, so expect bugs. The tests run on Linux and macOS before each release; Windows is not supported yet. Report problems through the issue forms (they ask for what is needed and remind you not to paste real notes). Issues are read first by an AI assistant that may draft a fix; the maintainer reviews and sends every reply, so answers can take a few days. Please open an issue rather than a pull request: pull requests from outside are not accepted (CONTRIBUTING.md).

Hermind was designed by its maintainer and largely written by Claude (Anthropic) through Claude Code and the Hermes agent, then reviewed and tested by the maintainer. The test data is synthetic. It is an independent project, not made by, endorsed by or affiliated with Nous Research, Anthropic or any other product it works with.

License

MIT, see LICENSE.

Available Tools

4 tools
memory_getA
Read-only

Full text of one note by id, with older versions.

Inputs: id (required).

memory_listB
Read-only

Most recent notes, optionally of one kind.

Inputs: kind, limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a distinct role: search by query, fetch by id, list recent notes, and traverse entity relations. The boundaries are clearly drawn, with memory_search and memory_list the closest pair but separated by query-based vs. recency-based retrieval.

    Naming Consistency5/5

    All four tools follow a consistent memory_ prefix with a short verb/noun suffix (search, get, list, related). Predictable and readable as a family.

    Tool Count4/5

    Four tools is a thin but sensible set for a focused memory store read interface; each earns its place. It is on the low end, though the narrow purpose makes that defensible.

    Completeness3/5

    The surface is retrieval-only: no memory_save/create, update, or delete operations are exposed, so an agent cannot persist or correct notes. For a memory server this is a notable lifecycle gap, assuming writes are expected.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides persistent, searchable memory for AI agents across any MCP-compatible client, storing project context, user preferences, and session learnings locally in SQLite with tools to save, retrieve, search, and manage them.
      12
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Persistent long-term memory for MCP clients. Store and recall semantic facts, episodic events, and task state with vector-based relevance search. Write what matters, retrieve what's needed — memory that persists across sessions and agents, backed by a local SQLite store with optional embeddings for meaning-based lookup. Simple file-based storage, no external services required.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Provides persistent local memory for any MCP-compatible AI agent, enabling agents to store, search, recall, forget, export, and manage preferences, rules, and facts with zero dependencies, no cloud, and no API keys.
      8
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables multiple AI agents and harnesses to share one local SQLite-backed memory store over standard MCP, so decisions, preferences, and past pitfalls carry across sessions instead of being re-explained. Runs fully offline with local Chinese-capable search, zero dependencies, and no accounts, API keys, or telemetry.
      11
      MIT