Give your AI apps persistent memory in 3 lines of code. Semantic search, knowledge graphs, and rich context — not just flat facts.
from mengram import CloudMemory m = CloudMemory(api_key="mg-...") # Save knowledge from any conversation m.add([ {"role": "user", "content": "Fixed OOM with Redis, pool=20"}, {"role": "assistant", "content": "Noted the config."}, ], user_id="alice") # Semantic search — finds by meaning results = m.search("database issues", user_id="alice") # → entities, facts, relations, knowledge with code artifacts
Everything you need for AI memory — nothing you don't
Not just flat facts. Solutions, configs, commands — with code artifacts. Your AI remembers how, not just what.
Entities, relations, types. "Who uses what" and "what depends on what" — queryable graph built automatically.
OpenAI embeddings + pgvector. Find by meaning, not keywords. "database issues" finds Redis, HikariCP, pool configs.
init → add → search. Works with any LLM: OpenAI, Anthropic, Ollama. Drop into existing apps in minutes.
Built-in MCP server. Claude Desktop gets persistent memory across all conversations, all devices. Cloud-synced.
MIT licensed. Run locally with Obsidian vault or use our cloud. Your data, your choice. Free forever.
| Feature | Mengram | Mem0 Platform |
|---|---|---|
| Memory type | Rich — facts + code artifacts | Flat facts only |
| Knowledge graph | Built-in + visualizable | Separate add-on |
| Claude Desktop MCP | Native support | Not available |
| Local mode | Obsidian vault (.md files) | Cloud only |
| Pricing | Free | $249/month (Pro) |
| Open source | MIT license | Open source (Apache 2.0) |
| Data ownership | Full — local or self-host | Their servers |
No cloud, no account, no API key. Your data stays on your machine in Obsidian-compatible .md files.
pip install mengram-ai
mengram init
Creates config, vault, and Claude Desktop integration
Claude Desktop now has persistent memory. Or use Python SDK in your apps.
Free. No credit card. Start building in 30 seconds.
🔒 We only use your email to create your account. No spam.