What is MCP?
Model Context Protocol (MCP) lets AI clients like Claude Desktop, Cursor, Continue.dev, and Windsurf connect to external tools. Mengram’s MCP server gives these clients persistent memory — semantic, episodic, and procedural.Fastest setup — paste one prompt into your agent
If you have a coding agent (Claude Desktop, Cursor, Codex, Claude Code, Windsurf), skip the manual steps below. Paste this prompt:mengram doctor to verify the round-trip. See Agent-Native Install for the full breakdown.
The rest of this page is the manual setup if you’d rather wire it up yourself.
Prerequisites
The MCP config below uses the localmengram CLI. Install it once and find its path — you’ll need that path in the configs below.
1
Install the CLI
2
Find the mengram path
- macOS / Linux
- Windows (PowerShell)
- Windows (cmd)
command in the configs below — replace /path/to/mengram with it.Setup with Claude Desktop
Open Settings → Developer → Edit Config, then add:Setup with Cursor
Add to Cursor’s MCP settings (~/.cursor/mcp.json), or open Settings → Cursor Settings → MCP:
Setup with Continue.dev
Continue stores each MCP server as a separate YAML file. Create.continue/mcpServers/mengram.yaml at the top level of your workspace:
Setup with Windsurf
Edit~/.codeium/windsurf/mcp_config.json (or open Settings → Cascade → MCP in the IDE):
Available Tools
The cloud MCP server exposes 29 tools:Memory Operations
Entity Management
Episodic Memory
Procedural Memory
Insights & Reflection
Agents
Triggers & Graph
Context & Rules
Multi-User / Multi-Tenant
Every MCP tool accepts an optionaluser_id parameter to scope memories per end-user. Use this when building multi-tenant apps — one API key, many isolated users.
Example — calling remember for a specific end-user:
search scoped to the same user:
user_id, tools use the default scope tied to your API key. With user_id, memories are isolated per end-user — each gets their own facts, events, workflows, and cognitive profile under a single API key. Same semantics as the Python SDK, JS SDK, and REST API.