About Mengram
Mengram is an MCP server published by alibaizhanov in the AI category: human-like memory for AI agents — semantic, episodic & procedural. Experience-driven procedures that learn from failures. Free API, Python & JS SDKs, LangChain, CrewAI & OpenClaw integrations. Conduid read 32 tools from its source: archive_fact, ask, checkpoint, context_for, dedup, delete_entity and 26 more. It is published to PyPI as mengram-ai and runs with uvx.
The repository has 207 stars and 33 forks, is licensed Apache-2.0, and its last commit was on 9 Nov 2026. The latest release is v2.43.0 (14 Sep 2026): The receipt: what memory did, said out loud. It follows v2.37.2 (9 Sep 2026), and the 5 most recent releases go back to v2.23.0 (7 Apr 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include episodic-memory, crewai, cognitive-profile, langchain and ai-memory.
Install
uvx mengram-aipip install mengram-aigit clone https://github.com/alibaizhanov/mengramTools (32)
archive_factArchive a specific fact on an entity — soft-delete without removing the entity. Use when a fact is outdated, wrong, or no longer relevant.| Parameter | Type | Description |
|---|---|---|
| entity_name * | string | Entity the fact belongs to |
| fact_content * | string | Exact text of the fact to archive |
| user_id | string | Optional user ID override |
askGet a synthesized answer to a question, grounded in the user's memory with citations. Use INSTEAD of 'recall' when the user asks a direct question and wants a direct answer (e.g. 'what programming languages do I use?', 'what was the last deploy issue?'). Returns a written answer with inline source attribution — multilingual native (works in Russian, Chinese, Spanish, etc). Premium feature: requires Pro / Growth / Business plan; free / starter accounts will receive a 403.| Parameter | Type | Description |
|---|---|---|
| max_facts | integer | How many top facts to feed the LLM as documents (1-30) |
| query * | string | Natural language question — phrase as a question, not keywords |
| user_id | string | Optional user ID override |
checkpointSave a session checkpoint — summarize key decisions, learnings, and outcomes from this conversation. Lighter than 'remember': takes a structured summary instead of raw messages. Call at natural breakpoints: end of a task, after solving a bug, after making a decision.| Parameter | Type | Description |
|---|---|---|
| decisions | array | Key decisions made (e.g. 'Chose PostgreSQL over MongoDB') |
| learnings | array | Things learned or discovered (e.g. 'pgvector requires extension install') |
| next_steps | array | What needs to happen next (saved as reminders) |
| summary * | string | Brief summary of what was accomplished or decided (1-3 sentences) |
| user_id | string | Optional user ID override |
context_forGet relevant memory context for a specific task. Returns a compact context pack: related entities, procedures, and past events. Use at the START of a new task to load relevant background. More focused than 'recall' — returns structured context, not search results.| Parameter | Type | Description |
|---|---|---|
| max_tokens | integer | Room the context pack may take, in tokens (estimated). Default 1200. Memory is cut in rank order to fit and the pack ends with one line saying what was left out. |
| task * | string | Description of the task (e.g. 'deploy API to Railway', 'fix database connection pool issue') |
| user_id | string | Optional user ID override |
dedupFind and automatically merge duplicate entities. Scans all entities and merges near-duplicates (e.g. 'React' and 'React framework'). Use when user says 'clean up duplicates' or memory feels cluttered.| Parameter | Type | Description |
|---|---|---|
| user_id | string | Optional user ID override |
delete_entityDelete an entity and all its data (facts, relations, knowledge). Use when user explicitly asks to remove something from memory.| Parameter | Type | Description |
|---|---|---|
| name * | string | Entity name to delete |
| user_id | string | Optional user ID override |
dismiss_triggerDismiss a smart trigger without firing its webhook. Use when user wants to ignore or snooze a trigger notification.| Parameter | Type | Description |
|---|---|---|
| trigger_id * | integer | ID of the trigger to dismiss |
fix_entity_typeFix an entity's type classification. Use when an entity was auto-classified incorrectly (e.g. a technology labeled as 'person'). Accepts any descriptive type string.| Parameter | Type | Description |
|---|---|---|
| name * | string | Entity name to reclassify |
| new_type * | string | Correct entity type (e.g. person, project, technology, company, concept, place, activity, event, book, tool, etc.) |
| user_id | string | Optional user ID override |
generate_rules_fileGenerate a CLAUDE.md, .cursorrules, or .windsurfrules file from memory. Creates structured project rules, conventions, tech stack, workflows, and known issues — perfect for AI coding assistants. Output can be saved directly to a file.| Parameter | Type | Description |
|---|---|---|
| format | string | Output format: claude_md (Claude Code), cursorrules (Cursor), windsurf (Windsurf) |
| user_id | string | Optional user ID override |
get_entityGet details of a specific entity — facts, relations, knowledge. Use when user asks about a specific person, project, or concept by name.| Parameter | Type | Description |
|---|---|---|
| name * | string | Entity name to look up |
| user_id | string | Optional user ID override |
get_feedGet activity feed — recent memory changes and events. Use when user asks 'what's new in my memory?', 'show recent activity', 'memory changelog'.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Max feed items to return |
| user_id | string | Optional user ID override |
get_graphGet the knowledge graph — all entities and their relationships. Use when user asks 'show my knowledge graph', 'how are things connected', 'map my memory'.| Parameter | Type | Description |
|---|---|---|
| user_id | string | Optional user ID override |
get_insightsGet AI-generated insights about the user — patterns, connections, reflections from memory analysis. Call this when user asks 'what patterns do you see', 'what do you know about how I think', 'analyze my memory'.| Parameter | Type | Description |
|---|---|---|
| user_id | string | Optional user ID override |
get_reflectionsGet AI-generated reflections (insights and patterns found across memories). Optional scope filter: 'entity' (per-entity insights), 'cross' (cross-entity connections), 'temporal' (time-based patterns).| Parameter | Type | Description |
|---|---|---|
| scope | string | Filter by scope |
| user_id | string | Optional user ID override |
get_triggersList smart triggers — reminders, contradictions detected, and patterns. Use when user asks 'any reminders?', 'what should I know?', 'pending alerts'.| Parameter | Type | Description |
|---|---|---|
| include_fired | boolean | Include already-fired triggers |
| user_id | string | Optional user ID override |
list_episodesList or search episodic memories (events, interactions, experiences). Use when user asks 'what happened', 'show my recent events', 'find episodes about...'.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Max results to return |
| query | string | Search query (optional — if omitted, returns recent episodes) |
| user_id | string | Optional user ID override |
list_memoriesList all stored memory entities with their types and fact counts. Use when user asks 'what do you remember?', 'show all memories', or 'list everything you know'.| Parameter | Type | Description |
|---|---|---|
| user_id | string | Optional user ID override |
list_proceduresList learned workflows/procedures from memory. Use when user asks 'how do I usually...', 'what's my process for...', 'show my workflows'. Returns procedures with steps, success/fail counts, and version info.| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| query | string | Optional search query to find specific procedures |
| user_id | string | Optional user ID override |
merge_entitiesMerge two entities into one — combines facts, relations, and knowledge. Use when there are duplicate entities (e.g. 'JS' and 'JavaScript').| Parameter | Type | Description |
|---|---|---|
| source * | string | Entity to merge FROM (will be deleted) |
| target * | string | Entity to merge INTO (will be kept) |
| user_id | string | Optional user ID override |
procedure_feedbackRecord success or failure for a procedure. ALWAYS use this when the user reports that a workflow worked or failed. On failure with context, the system automatically evolves the procedure to a new improved version.| Parameter | Type | Description |
|---|---|---|
| context | string | What went wrong (required when success=false to trigger evolution) |
| failed_at_step | integer | Which step number failed (optional) |
| procedure_id * | string | UUID of the procedure |
| success * | boolean | true if it worked, false if it failed |
| user_id | string | Optional user ID override |
procedure_historyShow how a procedure evolved over time — all versions and what changed. Use when user asks 'how has my deploy process changed', 'show procedure evolution'.| Parameter | Type | Description |
|---|---|---|
| procedure_id * | string | UUID of any version of the procedure |
| user_id | string | Optional user ID override |
recallSemantic search through the user's memory — call it to retrieve what's known before answering a personal question. Use specific keywords: person names, project names, technologies. For broad questions like 'what do you know about me', search for the user's name. Multiple calls with different queries are encouraged.| Parameter | Type | Description |
|---|---|---|
| query * | string | Specific search query — use names, projects, technologies. NOT generic phrases. |
| user_id | string | Optional user ID override |
recall_allRecall EVERYTHING from memory vault.reflectTrigger AI reflection on memories — analyzes facts to find patterns, insights, and connections. Use when user asks 'analyze my memory', 'find patterns', 'what can you learn from my data?'.| Parameter | Type | Description |
|---|---|---|
| user_id | string | Optional user ID override |
rememberSave knowledge from a conversation to memory — pass message pairs and the AI extracts entities, facts, relations, episodes, and procedures. Use after meaningful exchanges where the user shares personal info, preferences, decisions, or technical context worth remembering.| Parameter | Type | Description |
|---|---|---|
| conversation * | array | |
| user_id | string | Optional user ID override |
remember_textSave plain text to memory — the AI extracts entities, facts, and relations automatically. Use when user shares a note, snippet, URL content, or any freeform text to remember.| Parameter | Type | Description |
|---|---|---|
| text * | string | Text to extract knowledge from and store in memory |
| user_id | string | Optional user ID override |
run_agentsRun memory agents that analyze, clean, and find patterns in memory. Use 'curator' to find contradictions and stale facts, 'connector' to find hidden patterns and insights, 'digest' for weekly summary, or 'all' for everything.| Parameter | Type | Description |
|---|---|---|
| agent | string | |
| auto_fix | boolean | Auto-archive low quality facts (curator) |
| user_id | string | Optional user ID override |
searchAdvanced structured search — returns entities with relevance scores, facts, and knowledge snippets. Use instead of 'recall' when you need detailed results with scores for comparison or analysis.| Parameter | Type | Description |
|---|---|---|
| query * | string | Search query — names, topics, technologies, or natural language questions |
| top_k | integer | Number of results to return (default 5) |
| user_id | string | Optional user ID override |
search_allUnified search across ALL memory types — semantic, episodic, and procedural. Best for broad queries that might match different memory types.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Max results per memory type |
| query * | string | Search query |
| user_id | string | Optional user ID override |
search_proceduresSearch procedures by name, trigger, or step content.| Parameter | Type | Description |
|---|---|---|
| query * | string | Search query |
timelineSearch memory by time. Use when user asks 'what did I do last week', 'when did I...', 'what happened in January'. Returns facts with timestamps.| Parameter | Type | Description |
|---|---|---|
| after | string | ISO datetime — start of range (e.g. 2025-02-01T00:00:00Z) |
| before | string | ISO datetime — end of range |
| user_id | string | Optional user ID override |
vault_statsGet memory vault statistics — total entities, facts, relations, knowledge items, and storage usage. Use when user asks 'how much do you remember', 'memory stats', or 'how big is my vault'.| Parameter | Type | Description |
|---|---|---|
| user_id | string | Optional user ID override |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.3K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by vscode-mengram/package-lock.json.
- !No dynamic code executionScanned 123 source files and found 1 call to eval or shell execution, in cli.py:1697. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEapi/cloud_mcp_server.py:30, cloud/api.py:6410, cloud/api.py:6341
- Starts other programs
- 4 callscli.py:1697, cli.py:2354, cli.py:2597
- Outbound network calls
- 26 callscloud/api.py:2172, cloud/api.py:2191, cloud/async_client.py:69
- Writes or deletes files
- 38 callsbenchmark/local-extraction/bench.py:162, benchmark/local-extraction/bench.py:199, cli.py:115
- Lockfile
- vscode-mengram/package-lock.json
Pattern matches on the source text of 123 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.3K words, fetched a month ago. The original in the repository is authoritative.
Read full README