Mengram
Lets your AI agent keep long-term memory: facts, events and workflows that it can search and learn from.
206 stars on GitHubby alibaizhanovLicense Apache-2.0Updated 28 days ago
How to install
This MCP is remote: it runs in the cloud.
Nothing to install. Copy the address and paste it into your AI app:
Server address
https://mengram.io/mcp
- βΊClaude (site or app): Settings β Connectors β Add custom connector.
- βΊChatGPT: Settings β Apps β Create app (developer mode), and paste the address.
- βΊClaude Code, Cursor, VS Code and Windsurf: pick your app below.
Paste in the terminal:
claude mcp add --transport http mengram https://mengram.io/mcp --header "Authorization: <your value>"
What to fill in
| Name | What it is | Required |
|---|---|---|
Authorization | Bearer <your Mengram API key> β free key at https://mengram.io | Yes |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Remember that I deploy to Railway and prefer vim keybindings.
What do you know about my tech stack?
What it is
Mengram gives AI agents three kinds of memory: facts, past events and step-by-step workflows that improve when they fail. You can use its hosted API with a free key, or keep the memory in a local folder. It works with Claude Code, Codex, Cursor and other clients, and can save and recall context automatically.
What it can do
- Add memory from conversations
- Search facts, events and workflows
- Ask a question and get an answer with citations
- Procedures that evolve from failures
- Import Claude Code history
- Resume a task from where it was left
When to use
- βΊWhen you want your agent to remember your preferences and project details between sessions.
- βΊWhen you want context to survive /clear and auto-compaction in Claude Code.
- βΊWhen you want a workflow that your agent learned to be fixed after it fails.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
openviking-memoryLets your agent recall and save long-term memories through OpenViking, checking past knowledge at the start of work and saving useful facts and lessons afterward.hindsight-recallHelps your agent search long-term memory for past decisions, project context, and preferences when you ask about earlier work.rememberHelps your agent save an insight, decision, or fact to long-term memory with search tags, so it can find it in later sessions.Frequently asked questions
Is it free?
The readme says there is a free tier and a free API key at mengram.io. Local mode has no account.
Is it open source?
The readme shows a license badge but does not name the license in the text given.
Can I keep my data local?
Yes. Local mode stores memory as a folder of Markdown files you own, with no account needed.
Which tools work with it?
Claude Code, Codex, Cursor, Claude Desktop and Windsurf are mentioned, plus a hosted MCP at https://mengram.io/mcp.
What languages does it support?
It claims retrieval and answers across 23 languages.
Does it import old history?
Yes. mengram import claude-code seeds memory from your Claude Code sessions, with secrets redacted on your machine first.
If it does not work
- βΊSave your API key in ~/.mengram/config.json or set MENGRAM_API_KEY.
- βΊRun mengram setup to configure hooks and MCP for the tools it finds.
- βΊIf you installed hooks with the plugin and the CLI, remove one so they do not run twice.
5 new skills a week. 1 minute to read.