1. Conduid
  2. AI
  3. Mengram
MCP server · AI

Mengram

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.

78Good

Scored 4 hours ago · breakdown

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
uvx mengram-ai
pip
pip install mengram-ai
From source
git clone https://github.com/alibaizhanov/mengram

Tools (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.
ParameterTypeDescription
entity_name *stringEntity the fact belongs to
fact_content *stringExact text of the fact to archive
user_idstringOptional 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.
ParameterTypeDescription
max_factsintegerHow many top facts to feed the LLM as documents (1-30)
query *stringNatural language question — phrase as a question, not keywords
user_idstringOptional 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.
ParameterTypeDescription
decisionsarrayKey decisions made (e.g. 'Chose PostgreSQL over MongoDB')
learningsarrayThings learned or discovered (e.g. 'pgvector requires extension install')
next_stepsarrayWhat needs to happen next (saved as reminders)
summary *stringBrief summary of what was accomplished or decided (1-3 sentences)
user_idstringOptional 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.
ParameterTypeDescription
max_tokensintegerRoom 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 *stringDescription of the task (e.g. 'deploy API to Railway', 'fix database connection pool issue')
user_idstringOptional 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.
ParameterTypeDescription
user_idstringOptional user ID override
delete_entityDelete an entity and all its data (facts, relations, knowledge). Use when user explicitly asks to remove something from memory.
ParameterTypeDescription
name *stringEntity name to delete
user_idstringOptional user ID override
dismiss_triggerDismiss a smart trigger without firing its webhook. Use when user wants to ignore or snooze a trigger notification.
ParameterTypeDescription
trigger_id *integerID 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.
ParameterTypeDescription
name *stringEntity name to reclassify
new_type *stringCorrect entity type (e.g. person, project, technology, company, concept, place, activity, event, book, tool, etc.)
user_idstringOptional 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.
ParameterTypeDescription
formatstringOutput format: claude_md (Claude Code), cursorrules (Cursor), windsurf (Windsurf)
user_idstringOptional 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.
ParameterTypeDescription
name *stringEntity name to look up
user_idstringOptional 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'.
ParameterTypeDescription
limitintegerMax feed items to return
user_idstringOptional 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'.
ParameterTypeDescription
user_idstringOptional 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'.
ParameterTypeDescription
user_idstringOptional 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).
ParameterTypeDescription
scopestringFilter by scope
user_idstringOptional user ID override
get_triggersList smart triggers — reminders, contradictions detected, and patterns. Use when user asks 'any reminders?', 'what should I know?', 'pending alerts'.
ParameterTypeDescription
include_firedbooleanInclude already-fired triggers
user_idstringOptional 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...'.
ParameterTypeDescription
limitintegerMax results to return
querystringSearch query (optional — if omitted, returns recent episodes)
user_idstringOptional 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'.
ParameterTypeDescription
user_idstringOptional 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.
ParameterTypeDescription
limitinteger
querystringOptional search query to find specific procedures
user_idstringOptional 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').
ParameterTypeDescription
source *stringEntity to merge FROM (will be deleted)
target *stringEntity to merge INTO (will be kept)
user_idstringOptional 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.
ParameterTypeDescription
contextstringWhat went wrong (required when success=false to trigger evolution)
failed_at_stepintegerWhich step number failed (optional)
procedure_id *stringUUID of the procedure
success *booleantrue if it worked, false if it failed
user_idstringOptional 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'.
ParameterTypeDescription
procedure_id *stringUUID of any version of the procedure
user_idstringOptional 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.
ParameterTypeDescription
query *stringSpecific search query — use names, projects, technologies. NOT generic phrases.
user_idstringOptional 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?'.
ParameterTypeDescription
user_idstringOptional 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.
ParameterTypeDescription
conversation *array
user_idstringOptional 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.
ParameterTypeDescription
text *stringText to extract knowledge from and store in memory
user_idstringOptional 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.
ParameterTypeDescription
agentstring
auto_fixbooleanAuto-archive low quality facts (curator)
user_idstringOptional 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.
ParameterTypeDescription
query *stringSearch query — names, topics, technologies, or natural language questions
top_kintegerNumber of results to return (default 5)
user_idstringOptional user ID override
search_allUnified search across ALL memory types — semantic, episodic, and procedural. Best for broad queries that might match different memory types.
ParameterTypeDescription
limitintegerMax results per memory type
query *stringSearch query
user_idstringOptional user ID override
search_proceduresSearch procedures by name, trigger, or step content.
ParameterTypeDescription
query *stringSearch 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.
ParameterTypeDescription
afterstringISO datetime — start of range (e.g. 2025-02-01T00:00:00Z)
beforestringISO datetime — end of range
user_idstringOptional 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'.
ParameterTypeDescription
user_idstringOptional 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

v2.43.02.43.0 — the receipt · 14 Sep 20262.43.0 — 2026-09-14 Added The receipt: what memory did, said out loud. A hook that works is invisible — the recalled fact goes into the prompt, the gate's question looks like any permission prompt, the recorded outcome is a number in a…
v2.37.22.37.2 · 9 Sep 2026Three fixes found by running a real import and benchmarking local models. Import is resumable. State is written after every successful session instead of only at the end, so a killed or timed-out import no longer re-extracts everything it…
v2.37.0v2.37.0 — Local mode: memory in a folder, no account · 7 Sep 2026Everything since v2.25.3, in one release. The core now runs from a folder you own; the cloud writes the same format. Local mode (2.33 → 2.37) pip install mengram-ai mengram local init ./memory --provider ollama --model llama3.1:8b # or…
v2.25.3v2.25.3 — Agent-native install + B2B repositioning · 14 May 2026Highlights Agent-native install paradigm Paste a single prompt into your coding agent (Claude Desktop, Cursor, Claude Code, Codex, Windsurf, Claude.ai web) — the agent fetches a plain-text install guide written for LLMs, installs Mengram,…
v2.23.0v2.23.0 — Self-Hosting, JS SDK Retry, OpenClaw 402 Fix · 7 Apr 2026Self-Hosting Improvements Signup without email verification — set `DISABLE_EMAIL_VERIFICATION=true` in Docker Compose to get API keys immediately, no Resend dependency needed `BASE_URL` env var — configures all OAuth redirects, email…

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
Questions

About Mengram

How do I install Mengram?

Run uvx mengram-ai, then add the server to your MCP client's configuration.

Is Mengram safe to use with an AI agent?

Its trust score is 78 out of 100 (good). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Conduid's scan of 123 source files found that it serves MCP over stdio, Streamable HTTP and HTTP with SSE, starts other programs (4 calls), makes outbound network calls (26 calls) and writes or deletes files (38 calls). Its dependencies are pinned by vscode-mengram/package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Mengram still maintained?

Yes — the latest release is v2.43.0 (14 Sep 2026), and the last commit was 22 days ago. The repository has 207 stars and 25 open issues.

What tools does Mengram provide?

Conduid read 32 tools from the source: archive_fact, ask, checkpoint, context_for, dedup, delete_entity, dismiss_trigger, fix_entity_type and 24 more. 31 of them publish their parameters, listed under Tools above.

What license is Mengram released under?

The repository declares the Apache-2.0 license. That applies to the latest release, v2.43.0, as well.