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.

Store a memory
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.

Recall memories
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

Automatically detects emails, phone numbers, SSNs, and credit card numbers before storage.

Deterministic Masking

Same input always produces the same token per tenant, preserving cross-memory recall consistency.

Encrypted Vault

AES-256-GCM encrypted token storage with unique nonces. Original values recoverable only with scoped auth.

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.

PHP / Laravel
$memory = Memra::store(
    'User prefers dark mode',
    type: 'preference'
);
Python
memory = client.memories.create(
    content="User prefers dark mode",
    type="preference"
)
TypeScript
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.

Ready to build?

Get started in under a minute.