Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Quickstart

Five minutes from zero to retrieve.

1. Install

cargo install --locked mnem-cli

(See Install for other platforms.)

2. Initialise a repo

mkdir my-graph && cd my-graph
mnem init

This creates .mnem/ with default config (in-process MiniLM embedder, redb store).

3. Ingest

mnem ingest README.md
mnem ingest docs/*.md
mnem ingest <(echo '{"text": "the cat sat on the mat", "label": "demo"}') --json

4. Retrieve

mnem retrieve "what does this project do"
mnem retrieve "what is X" --label demo --top-k 5

5. Serve over HTTP (optional)

mnem http serve --repo .        # bind 127.0.0.1:9876
curl http://127.0.0.1:9876/v1/retrieve -d '{"text": "what does this do"}'

6. Wire into Claude / Cursor (optional)

mnem mcp install

Adds an MCP server entry to your client config; subsequent agent turns can call mnem_retrieve and mnem_ingest natively.

Next steps