Mengram

v1.0.0Knowledge & Memorystable

🐍 ☁️ 🏠 🍎 🪟 🐧 - Human-like memory layer for AI agents with semantic, episodic, and procedural memory. Clau

agent-memoryai-agentsai-memoryclaude-desktopcognitive-architecture
Share:
169
Stars
0
Downloads
0
Weekly
0/5

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

Provide AI agents semantic, episodic, and procedural memory.
Enable agents to learn and recall information across sessions.
Build human-like reasoning with cognitive architecture.
alibaizhanov

Maintainer

LicenseApache 2.0
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mengram

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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.

2

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-ai
3

Set 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-here
4

Run 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 setup
5

Add 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.

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.

Quick Config Preview

{ "mcpServers": { "mengram": { "command": "npx", "args": ["-y", "mengram"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides