Quickstart
This guide gets you from zero to persistent AI memory in your MCP client (Cursor, Claude Desktop, or any MCP-compatible host) in under 5 minutes.Prerequisites
- Node.js 18 or newer
- pnpm (
npm install -g pnpm) - An MCP-compatible client (Cursor or Claude Desktop)
1. Clone and build
2. Initialize your vault
.kontxt/vault.db file — your local memory store. Nothing leaves your machine.
3. Configure your MCP client
- Cursor
- Claude Desktop
Open your Cursor MCP settings and add:Replace
/path/to/kontxt with your actual clone path.4. Test it
Try the CLI to verify everything is working:5. Use it in your AI client
Restart your MCP client. From now on, kontxt will automatically surface relevant memories from your vault into your AI sessions. Try asking your AI client something related to what you stored — it should already know.You now have persistent memory running locally. Every session builds on the last.
Optional: embeddings
For better semantic search, set your OpenAI API key before building:Next steps
How memory works
Understand relevance ranking and memory types
MCP tools reference
Full reference for all exposed MCP tools
CLI reference
All CLI commands and flags
Self-hosting
Run kontxt on your own server

