Mengram
🐍 ☁️ 🏠 🍎 🪟 🐧 - Human-like memory layer for AI agents with semantic, episodic, and procedural memory. Clau
What is Mengram?
Mengram is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🐍 ☁️ 🏠 🍎 🪟 🐧 - human-like memory layer for ai agents with semantic, episodic, and procedural memory. clau
🐍 ☁️ 🏠 🍎 🪟 🐧 - Human-like memory layer for AI agents with semantic, episodic, and procedural memory. Clau
This server falls under the Knowledge & Memory category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP protocol support
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mengramConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Mengram
Mengram is a human-like memory layer for AI agents that implements three cognitive memory types: semantic memory for facts and preferences, episodic memory for events and decisions, and procedural memory for evolving workflows. It connects to the Mengram cloud platform via an API key and provides an MCP server that any compatible AI client can use to store, retrieve, and reason over persistent memories across sessions. Teams use it to give AI assistants the ability to learn coding preferences, recall past decisions, and automatically improve task procedures over time.
Prerequisites
- Node.js 18 or later (for npx usage) or Python 3.9+ (for the Python SDK)
- A Mengram account and API key starting with om-... (obtain at the Mengram platform)
- An MCP-compatible client such as Claude Desktop or Cursor
Create a Mengram account and obtain your API key
Sign up at the Mengram platform and generate an API key. Your key will begin with om- and is used to authenticate all memory operations.
Install the Mengram CLI or SDK
Install mengram-ai globally via npm, or install the Python package for SDK usage. The CLI provides MCP server mode and Claude Code hook integration.
# Node.js (CLI + MCP server)
npm install -g mengram-ai
# Python SDK
pip install mengram-aiSet your API key
Export your Mengram API key so the MCP server can authenticate with the cloud platform.
export MENGRAM_API_KEY=om-your-key-hereRun the automated setup (optional, for Claude Code users)
If you use Claude Code, run the setup command to automatically install memory hooks that load your profile and save memories in the background without manual API calls.
mengram setupAdd Mengram to your MCP client configuration
Add the server block to your MCP client config file so Claude Desktop or another client can connect to the memory server.
Mengram Examples
Client configuration
Add Mengram to Claude Desktop by setting the command to the mengram binary, passing server --cloud as arguments, and providing your API key in the env block.
{
"mcpServers": {
"mengram": {
"command": "mengram",
"args": ["server", "--cloud"],
"env": {
"MENGRAM_API_KEY": "om-your-key-here"
}
}
}
}Prompts to try
Use natural language to store and retrieve memories across your three memory types.
- "Remember that I prefer TypeScript over JavaScript and use pnpm as my package manager"
- "What do you remember about how I like to structure React components?"
- "Store an episode: today I decided to migrate the auth service to Supabase because of rate limits"
- "Show me all procedures you've learned for my deployment workflow"Troubleshooting Mengram
Authentication error: invalid or missing MENGRAM_API_KEY
Make sure your API key starts with om- and is correctly placed in the env block of your MCP config. Keys can be regenerated from the Mengram dashboard if compromised.
Memories are not persisting between sessions
Verify that the server is running with the --cloud flag so memories are stored on the Mengram platform rather than in-memory. Local-only mode does not persist across restarts.
Claude Code hooks not loading memories automatically
Run `mengram hook install` manually if the initial `mengram setup` did not complete successfully. Confirm the hooks appear in your Claude Code configuration with `mengram hook status`.
Frequently Asked Questions about Mengram
What is Mengram?
Mengram is a Model Context Protocol (MCP) server that 🐍 ☁️ 🏠 🍎 🪟 🐧 - human-like memory layer for ai agents with semantic, episodic, and procedural memory. clau It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Mengram?
Follow the installation instructions on the Mengram GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Mengram?
Mengram works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Mengram free to use?
Yes, Mengram is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.
Mengram Alternatives — Similar Knowledge & Memory Servers
Looking for alternatives to Mengram? Here are other popular knowledge & memory servers you can use with Claude, Cursor, and VS Code.
MemPalace
★ 52.6kA local AI memory system that stores all conversations verbatim and organizes them into navigable structures. It provides 19 MCP tools for AI assistants to search and retrieve past decisions, debugging sessions, and architecture debates automatically
Kratos
★ 25.7k🏛️ Memory System for AI Coding Tools - Never explain your codebase again. MCP server with perfect project isolation, 95.8% context accuracy, and the Four Pillars Framework.
Context Mode
★ 15.4kAn MCP server that preserves LLM context by intercepting large data outputs and returning only concise summaries or relevant sections. It enables efficient sandboxed code execution, file processing, and documentation indexing across multiple programm
Memu
★ 13.7kMemory for 24/7 proactive agents like OpenClaw.
MemOS
★ 9.3kMemOS (Memory Operating System) is a memory management operating system designed for AI applications. Its goal is: to enable your AI system to have long-term memory like a human, not only remembering what users have said but also actively invoking, u
Everos
★ 5.4kBuild, evaluate, and integrate long-term memory for self-evolving agents.
Browse More Knowledge & Memory MCP Servers
Explore all knowledge & memory servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Mengram in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Mengram?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.