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
- CLI reference for every flag.
- MCP server for agent integrations.
- Retrieval tuning for top-K, hybrid, and graph traversal options.