Core API
Full CRUD with batch support. Store, retrieve, update, and delete memories through a clean REST API. Up to 100 memories per batch call.
curl -X POST https://api.usememra.com/v1/memories \
-H "Authorization: Bearer memra_live_..." \
-H "Content-Type: application/json" \
-d '{"content": "User prefers dark mode", "type": "preference", "importance": 8}'
Semantic Recall
Query by meaning, not keywords. Hybrid retrieval combines vector embeddings, entity graphs, and reciprocal rank fusion for the most relevant results.
curl -X POST https://api.usememra.com/v1/memories/recall \
-H "Authorization: Bearer memra_live_..." \
-d '{"query": "What are the user preferences?", "top_k": 5}'
Privacy Shield
Automatic PII detection and deterministic masking. Emails, phone numbers, and IDs are replaced with consistent pseudonyms before storage. Embedding providers never see raw PII.
Regex Detection
Deterministic Masking
Encrypted Vault
Multi-Tenant Isolation
Isolate memories by tenant ID. Full GDPR deletion cascade per namespace -- content, embeddings, PII tokens, cache, audit log. Export everything with one API call.
Official SDKs
First-party SDKs for PHP/Laravel, Python, and TypeScript. Type-safe, fully tested, with sync and async support.
$memory = Memra::store(
'User prefers dark mode',
type: 'preference'
);
memory = client.memories.create(
content="User prefers dark mode",
type="preference"
)
const memory = await memra.memories.create({
content: 'User prefers dark mode',
type: 'preference'
});
Install
composer require memra/laravel-sdk
Install
pip install memra-sdk
Install
npm install @memra/sdk
MCP Server
Connect any AI agent directly to Memra via the Model Context Protocol. 8 tools for storing, searching, and managing memories -- works with Claude, Cursor, VS Code, and more.