Open Source · Free Forever

Memory layer
for AI apps

Give your AI apps persistent memory in 3 lines of code. Semantic search, knowledge graphs, and rich context — not just flat facts.

python
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

Built for developers who ship

Everything you need for AI memory — nothing you don't

🔮

Rich Knowledge

Not just flat facts. Solutions, configs, commands — with code artifacts. Your AI remembers how, not just what.

🕸️

Knowledge Graph

Entities, relations, types. "Who uses what" and "what depends on what" — queryable graph built automatically.

🔍

Semantic Search

OpenAI embeddings + pgvector. Find by meaning, not keywords. "database issues" finds Redis, HikariCP, pool configs.

3 Lines to Integrate

init → add → search. Works with any LLM: OpenAI, Anthropic, Ollama. Drop into existing apps in minutes.

🖥️

Claude Desktop MCP

Built-in MCP server. Claude Desktop gets persistent memory across all conversations, all devices. Cloud-synced.

🔓

Open Source

MIT licensed. Run locally with Obsidian vault or use our cloud. Your data, your choice. Free forever.

Mengram vs Mem0

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

Run 100% locally

No cloud, no account, no API key. Your data stays on your machine in Obsidian-compatible .md files.

1

Install

pip install mengram-ai
2

Setup

mengram init

Creates config, vault, and Claude Desktop integration

3

Use

Claude Desktop now has persistent memory. Or use Python SDK in your apps.