Give every user of your agent
a memory.

One API key, isolated memory per user_id. Your agents get semantic facts, episodic events, and procedural workflows that evolve when they fail — extraction, dedup, and contradiction-handling run server-side.

Get a free API key API reference

Quickstart — memory per end-user in 10 lines

pip install mengram-ai

from mengram import Mengram
m = Mengram(api_key="om-...")

# each of YOUR users gets an isolated memory store
m.add([{"role": "user", "content": "I prefer email, and my last order arrived damaged"}],
      user_id="customer-4812")

# later — any session, any of your agents
m.search("how should I contact this customer?", user_id="customer-4812")
# → prefers email; recent damaged-order incident

REST, Python, and JavaScript SDKs. Same isolation over MCP for tool-native agents.

Built for agent builders

Multi-user isolation

Pass user_id — every end-user gets isolated facts, events, workflows, and a cognitive profile. One key, thousands of users.

Procedural memory

Workflows with version history that evolve from failures: revisions record the violated assumption and derive preconditions your agent checks before trusting a workflow.

Server-side extraction

Send raw conversation turns — facts, events, and workflows are extracted, deduplicated, and contradiction-checked for you. No prompt engineering.

Webhooks

Subscribe to memory events (updates, contradictions) and drive your own flows when the memory changes.

23 languages

Multilingual embeddings + reranking — your users can talk to your agent in Russian, Chinese, Spanish; recall works.

Self-hostable

Apache 2.0 core. Run it on your infra when compliance demands it; same API surface.

Drop-in for your stack

LangChain

MengramRetriever + chat message history — pip install langchain-mengram

CrewAI

memory=MengramMemory(api_key=...) on any Crew — agents get recall and remember tools.

MCP

30 memory tools over streamable HTTP at mengram.io/mcp — Claude, Cursor, or your own MCP client. Listed in the official MCP registry.

REST

Plain HTTP for everything else — full reference.

Pricing that starts free

Free: 40 adds + 200 searches/month — enough to wire up and demo. Production tiers from $19 (10k searches) to $99 (30k searches, unlimited sub-users). Full pricing →

Mengram — AI memory that learns how you work. Home · GitHub