Memory for your AI
Every tool you use writes to one memory graph — your projects, and the workflows it learns from every success and failure. Then every agent recalls it.
Listed in the official MCP Registry · works with Claude, Cursor, Codex, ChatGPT, LangChain & CrewAI · open source
"I'm explaining my project again."
Every new session starts from zero — same stack, same constraints, same speech.
"It made that mistake AGAIN."
You fixed it Tuesday. It repeated it Thursday. Nothing learned in between.
"Smart in Cursor, amnesiac in Claude."
Every tool keeps its own little world. You are the only bridge.
Mengram gives your AI memory: about you, about what happened, and about how you work — shared across every tool.
Survives /clear, auto-compaction, and machine switches. Add the one-click Claude connector — or install the CLI for Claude Code, Cursor & Windsurf.
Isolated memory per user_id — facts, events, and workflows that evolve from failures. REST + MCP + webhooks, server-side extraction.
No terminal, no config, no key to paste. In Claude: Settings → Connectors → Add custom connector, paste the URL below (leave the OAuth fields empty), and sign in with an email code. Set a preference once and Claude recalls it weeks later — across every chat, on claude.ai, Desktop, and Cowork.
https://mengram.io/mcp/connector
Free tier, no card — the email step creates your account. Works on Free, Pro, Max, Team & Enterprise. Full guide →
Persistent memory that survives /clear, auto-compaction, machine switches, and team handoffs. The SessionStart hook re-injects your context after every compact; the Stop hook captures conversations at end-of-turn. MCP server gives Claude 30 memory tools out of the box.
mkdir -p ~/.mengram && echo '{"api_key": "om-your-key-here"}' > ~/.mengram/config.json
claude plugin marketplace add alibaizhanov/mengram
claude plugin install mengram@mengram
Grab a free key (40 adds + 200 searches/month, no card). Skip the cold start: pip install mengram-ai && mengram import claude-code feeds in your existing session history — memory knows your projects from minute one. Source: github.com/alibaizhanov/mengram.
For Claude Desktop, Cursor, Codex, or Windsurf — paste the prompt below. The agent reads our setup guide, installs the SDK, wires up the MCP server, and verifies the round-trip.
Install Mengram for me. Fetch the canonical install guide at https://mengram.io/agent-install.txt and follow it precisely. My email is YOUR_EMAIL_HERE.
Works in any agent with shell + file-edit + web-fetch tools. Prefer doing it manually? Read the plain-text guide or the SDK docs.
Use ChatGPT, Claude Desktop, Cursor, Perplexity — any AI you prefer. Mengram connects via MCP or API.
About you — facts, preferences, your stack (semantic). What happened — events, decisions, outcomes (episodic). How you work — workflows that improve with every success and failure (procedural).
One API call returns a Cognitive Profile — a ready-to-use system prompt from all 3 memory types. Zero effort personalization.
Replace your entire RAG pipeline with 3 lines of code.
Paste any text and see what Mengram extracts — no signup needed.
This is a live demo. Want unlimited extractions?
Sign up →This is a demo account with sample data. Want your own?
Sign up free →Others store facts. Mengram remembers like a human brain.
Curator cleans contradictions. Connector finds hidden patterns. Digest gives weekly briefs. Runs autonomously.
One API key, many users. Pass user_id to scope memories per end-user. Each user gets their own isolated facts, events, workflows, and cognitive profile.
Entities, relations, facts — not just text. "Ali works_at Uzum Bank", not "the user mentioned a bank".
Memory that raises its hand. Reminders from conversations, contradiction alerts, workflow pattern detection. Your AI proactively tells you what it remembers.
One command to import ChatGPT exports, Obsidian vaults, or text files. No cold start — your memory is useful from day 1. CLI + Python + JS SDK.
Self-improving workflows. Failures auto-evolve procedures to new versions. 3+ similar successes auto-create new workflows. Version history + evolution log.
Equal retrieval quality across 23 languages — Russian, Chinese, Spanish, Japanese, Korean, Arabic. Cross-lingual works: English query finds Russian docs. Built on Cohere multilingual, not English-only OpenAI.
POST /v1/ask returns a synthesized answer with citations — not raw results. Built-in RAG, no need to wire OpenAI yourself. Pro+ feature, gated for premium tiers.
Your agents run 24/7 but forget everything between sessions. Mengram gives them persistent memory that grows smarter over time.
Your agent completes a task — applies to a job, deploys code, handles a ticket.
One add() call extracts facts, events, and procedures. The agent builds experience.
On the next task, search() recalls what worked and what failed. The agent improves autonomously.
Agents that apply to jobs, manage tickets, or process data — remembering outcomes and adapting strategy across runs.
Claude Code, Cursor, Windsurf — your AI remembers your stack, preferences, and past solutions across sessions.
CrewAI, LangChain, AutoGPT — shared memory between agents. One discovers, another executes, all remember.
Vapi, Retell, Pipecat — stop making callers repeat themselves. The assistant knows who's calling before saying a word. Vapi integration →
Others store facts. Mengram remembers experiences and learns workflows.
| Mengram | Mem0 | Supermemory | |
|---|---|---|---|
| Semantic Memory (facts) | ✅ | ✅ | ✅ |
| Episodic Memory (events) | ✅ | ❌ | ❌ |
| Procedural Memory (workflows) | ✅ | ❌ | ❌ |
| Cognitive Profile | ✅ | ❌ | ❌ |
| Knowledge Graph | ✅ | ✅ | ❌ |
| Procedural Learning (auto-evolves) | ✅ | ❌ | ❌ |
| Smart Triggers | ✅ | ❌ | ❌ |
| Multilingual (23 languages, native) | ✅ | ❌ | ❌ |
| Ask & Citations (synthesized answers) | ✅ | ❌ | ❌ |
| Price | Free | $19-249/mo | Enterprise |
Connect Mengram to your AI tools via MCP, Python, or JavaScript SDK.
pip install mengram-ai
macOS / Linux:
which mengram
Windows (PowerShell):
(Get-Command mengram).Source
Copy the output — you'll paste it in the next step.
Same JSON works for Claude Desktop, Cursor, Continue, and Windsurf:
{
"mcpServers": {
"mengram": {
"command": "/path/from/step2/mengram",
"args": ["server", "--cloud"],
"env": {
"MENGRAM_API_KEY": "om-...",
"MENGRAM_URL": "https://mengram.io"
}
}
}
}
Where to paste:
~/.cursor/mcp.json (or Settings → Cursor Settings → MCP).continue/mcpServers/mengram.yaml in your workspace (YAML — see docs)~/.codeium/windsurf/mcp_config.json (or Settings → Cascade → MCP)Claude / Cursor / Continue / Windsurf now have persistent memory. They remember you across all conversations.
pip install mengram-ai
from mengram import Mengram m = Mengram(api_key="om-...") # Save — auto-extracts facts, events, workflows m.add([ {"role": "user", "content": "Fixed OOM with Redis cache"}, {"role": "assistant", "content": "Got it."}, ]) # Unified search — all 3 memory types results = m.search_all("database issues") # → {semantic: [...], episodic: [...], procedural: [...]} # Cognitive Profile — instant personalization profile = m.get_profile() # → ready system prompt for any LLM # Multi-user isolation — one API key, many users m.add([...], user_id="alice") m.search_all("prefs", user_id="alice") # only Alice's data
npm install mengram-ai
const { MengramClient } = require('mengram-ai'); const m = new MengramClient('om-...'); // Save — auto-extracts facts, events, workflows await m.add([ { role: 'user', content: 'Fixed OOM with Redis cache' }, { role: 'assistant', content: 'Got it.' }, ]); // Unified search — all 3 memory types const all = await m.searchAll('database issues'); // → {semantic: [...], episodic: [...], procedural: [...]} // Multi-user isolation — one API key, many users await m.add([...], { userId: 'alice' }); await m.searchAll('prefs', { userId: 'alice' }); // only Alice's data
pip install langchain-mengram
Drop-in replacement — returns relevant knowledge from all 3 memory types instead of raw messages.
from langchain_mengram import MengramRetriever retriever = MengramRetriever( api_key="om-...", user_id="alice", top_k=5, ) # Use in any LangChain chain docs = retriever.invoke("deployment issues") # → Documents from semantic + episodic + procedural memory # Or in an LCEL chain chain = ( {"context": retriever, "question": RunnablePassthrough()} | prompt | llm | StrOutputParser() )
from langchain_mengram import MengramChatMessageHistory from langchain_core.runnables.history import RunnableWithMessageHistory chain_with_memory = RunnableWithMessageHistory( chain, lambda sid: MengramChatMessageHistory( api_key="om-...", session_id=sid, ), input_messages_key="input", history_messages_key="history", )
pip install mengram-ai crewai
Pass memory=MengramMemory() to any Crew. Agents get recall + remember tools automatically. Mengram handles extraction, search, and procedural learning server-side.
from crewai import Agent, Crew, Task from integrations.crewai_memory import MengramMemory agent = Agent( role="DevOps Engineer", goal="Deploy and monitor services", ) task = Task( description="Deploy v2.15 to staging", agent=agent, ) # One line adds persistent memory to your entire crew crew = Crew( agents=[agent], tasks=[task], memory=MengramMemory(api_key="om-..."), ) crew.kickoff() # → Agent recalls past deployments, learns from failures
openclaw plugins install openclaw-mengram
v2.2 — Auto-recall before every turn (cacheable profile), auto-capture after every turn. 12 tools, slash commands, CLI. Backward compatible with older OpenClaw.
{
"plugins": {
"entries": {
"openclaw-mengram": {
"enabled": true,
"config": {
"apiKey": "${MENGRAM_API_KEY}"
}
}
},
"slots": { "memory": "openclaw-mengram" }
}
}
// Auto-recall: memories injected before every agent turn
// Auto-capture: new info saved after every turn
Download the ready-made workflow and import it into n8n via Workflows → Import from File.
Create a Header Auth credential in n8n with your Mengram API key.
Header Name: Authorization Header Value: Bearer om-your-api-key
The workflow adds 3 HTTP nodes to any AI agent: search memories before, respond with context, save after. Works with OpenAI, Anthropic, Ollama — any LLM.
// Node 1: Search memories POST /v1/search → {"query": user_message, "user_id": "user-123"} // Node 2: AI Agent responds with full context System prompt includes retrieved memories // Node 3: Save new memories POST /v1/add → {"messages": [...], "user_id": "user-123"} // Auto-extracts facts, deduplicates, builds knowledge graph
No credit card. Start in 30 seconds.
Sign up with GitHubor with email:
We'll send a verification code to confirm your email.
Ready to build with memory?
Get API Key