1. Get an API key
Sign up at app.memcontext.in and create an API key from Settings > API Keys. Your key will look likemc_abc123... and is shown only once - store it securely.
2. Save a memory
status field tells you what happened:
| Status | Meaning |
|---|---|
saved | New memory created |
updated | New memory superseded an existing one |
extended | New memory extends an existing one |
duplicate | Content already exists, no new memory created |
accepted | Large content accepted for asynchronous extraction |
202 Accepted with a jobId and message for tracking extraction into atomic memories.
3. Search memories
4. Save a scope-isolated memory
scope when one API key serves multiple end users or tenants. Omit it only for global, unscoped memories.
5. Save a project memory inside that scope
6. Connect the MCP server
For Claude.ai or Claude Desktop, add a custom connector with:save_memory and search_memory directly.
See MCP Setup for Claude.ai, Claude Desktop, Cursor, OpenCode, Codex CLI, and agent instructions.
TypeScript SDK
Install the SDK when integrating from a Node.js or TypeScript app:withScope() for the hard end-user or tenant boundary. Use withProject() only as a grouping filter inside that scope.
Recommended workflow
- Search first - check for existing context before making assumptions
- Save when durable - persist stable preferences, decisions, and project facts
- Use categories - tag memories so they can be filtered later
- Use scope - isolate each app user or tenant into its own memory container
- Use projects - group project-specific knowledge inside that scope
- Give feedback - mark retrieved memories as helpful or outdated to improve quality
