Give your coding agents a memory that lasts: install MNEMOS and connect it to Claude Code, Cursor, Codex and more
Coding agents forget everything when the session ends. MNEMOS is an open-source memory service they can all share. Agents save what they learn and search it later, from any tool, in any session.
This is a short guide to install it and connect your tools. It takes about ten minutes.
MNEMOS runs as a small service on your machine or your network. Your agents talk to it over MCP, the standard way coding tools reach outside services. Two tools do most of the work:
create_memorysaves a note with a category, tags and content.search_memoriesfinds notes by meaning, with filters.
There are also tools to fetch a memory by ID (get_memory), query a knowledge graph (kg_search), and check memory health (kronos_anomalies).
It stores data in SQLite by default, so you need no database to start. PostgreSQL, Oracle, Db2, MySQL, and MariaDB are supported when you want one. Apache-2.0 licensed.
Fastest: run the container. It works on AMD64 and ARM64.
docker run -p 5002:5002 -v mnemos-data:/data ghcr.io/ncz-os/mnemos-enterprise:latestTo keep every machine on identical code, pin a version instead of latest, for example :7.3.4. Prefer to install from source? The packages are not on PyPI yet, so install from GitLab:
git clone https://gitlab.com/ncz-os/mnemos && cd mnemos
python -m pip install -e .
mnemos init # creates config and a token
mnemos serve # API on :5002
mnemos doctor # checks it worksKeep the token from mnemos init. You will give it to your agents. Or let your agent do it. Paste the install request into Claude Code, Cursor, or Codex and point it at the repo's AGENTS.md. It has a step-by-step procedure for agents. You confirm each command.
Add MNEMOS as an MCP server. For Claude Code, this goes in ~/.claude/mcp_servers.json:
{
"mcpServers": {
"mnemos": {
"command": "mnemos",
"args": ["serve", "mcp-stdio"],
"env": {
"MNEMOS_BASE": "http://localhost:5002",
"MNEMOS_API_KEY": "<your token>"
}
}
}
}Any MCP-capable tool takes the same entry in its own config: Cursor, Cline, Continue.dev, Zed and Aider. For remote agents that need HTTP instead, run mnemos serve mcp-http.
Restart the tool. Ask it to "search memories for the deploy process". If it calls search_memories, you are connected.
Asking an agent to remember things works, but it is better if it just happens. For Claude Code, MNEMOS ships hooks that fire when a session starts, when you submit a prompt, and when it stops, so context is saved and recalled without being asked. Copy them from integrations/claude-code/ in the repo and set MNEMOS_BASE.
There are matching integrations for ZeroClaw, OpenClaw and Hermes in the same repo. Webhooks can push memory.created and similar events to any HTTPS endpoint.
- Save the why, not just the what: the root cause and the evidence, not "fixed the bug".
- Save dead ends too. A note saying "tried X, it did nothing" saves the next agent an hour.
- Put exact error strings and commands in the note. Those are what a later search matches.
- Give notes a category so you can filter later.
Running several agents on one project? MNEMOS pairs with Hive, a job queue where agents hand out and check work. Hive works without MNEMOS, but we recommend running them together.
Source and docs: gitlab.com/ncz-os/mnemos
Project page: ncz-os.com/mnemos/







Comments
0 comments