What is MemContext?
MemContext is memory infrastructure for AI agents and applications. It provides a REST API and MCP server that allow AI systems to:- Save durable user and project knowledge across sessions
- Isolate app users and tenants with hard memory containers via
scope - Search memories with natural-language questions and exact terms
- Evolve memories over time with automatic version chains
- Profile users with pre-aggregated context from their memory
- Ingest workspace documents through Context Vault for RAG-style AI context
Who is it for?
MemContext serves three primary use cases:- Coding assistants that need stable preferences, decisions, and project context across sessions
- Product applications that need evolving memory for content generation, support, onboarding, or personalization
- Workspace AI tools that need to retrieve source passages and extracted facts from files, docs, and URLs
The Three Retrieval Modes
MemContext supports three ways to retrieve context:| Mode | Use it for | Returns |
|---|---|---|
| Memories | Durable facts, preferences, and decisions | Atomic memories |
| Document chunks | RAG over PDFs, Markdown, docs, and URLs | Source passages with citations |
| Hybrid workspace | Production AI tools that need both | Document chunks plus memory facts |
Core primitives
| Concept | Description |
|---|---|
| Scope | Hard isolation boundary for app users or tenants (e.g. user_123) |
| Category | Broad memory type: preference, fact, decision, or context |
| Project | Soft grouping/filter inside the selected scope or default memory area |
| Version chains | Memories can supersede old memories without losing history |
| Hybrid search | Natural-language search that also handles exact names, tools, and decisions |
| MCP tools | AI assistants can save and search memory directly via Model Context Protocol |
Why it exists
Simple retrieval is not enough for memory. Memory needs:- Updates when reality changes
- History when strategy evolves
- Exact-match retrieval for product names, org names, and decisions
- Lightweight APIs other tools can build on
Next steps
Quickstart
Make your first API and MCP calls in under 2 minutes.
How It Works
Understand how MemContext saves, updates, and retrieves memory.
API Reference
Full endpoint documentation with interactive examples.
MCP Setup
Connect MemContext to Claude Desktop, Cursor, or any MCP client.
