MCP Server

Use Mengram as a Model Context Protocol server with Claude Desktop, Cursor, and other MCP clients.

What is MCP?

Model Context Protocol (MCP) lets AI clients like Claude Desktop and Cursor connect to external tools. Mengram's MCP server gives these clients persistent memory.

Setup with Claude Desktop

Add to your Claude Desktop config (claude_desktop_config.json):

{{
  "mcpServers": {{
    "mengram": {{
      "command": "uvx",
      "args": ["mengram-ai"],
      "env": {{
        "MENGRAM_API_KEY": "om-your-key"
      }}
    }}
  }}
}}

Setup with Cursor

Add to Cursor's MCP settings:

{{
  "mcpServers": {{
    "mengram": {{
      "command": "uvx",
      "args": ["mengram-ai"],
      "env": {{
        "MENGRAM_API_KEY": "om-your-key"
      }}
    }}
  }}
}}

Available tools

The MCP server exposes 21 tools:

ToolDescription
rememberSave knowledge from conversation to memory
remember_textSave knowledge from plain text
recallSemantic search through memory
searchStructured search with scores and facts
search_allUnified search across all 3 memory types
timelineSearch memory by time range
vault_statsMemory statistics
run_agentsRun memory agents (curator, connector, digest)
get_insightsAI-generated insights and patterns
list_proceduresList learned workflows/procedures
procedure_feedbackRecord success/failure for a procedure
procedure_historyVersion history of a procedure
get_entityGet details of a specific entity
delete_entityDelete an entity and all its data
list_episodesList or search episodic memories
get_graphGet the knowledge graph
get_triggersList smart triggers and reminders
get_feedActivity feed — recent memory changes
archive_factArchive a specific fact on an entity
merge_entitiesMerge two entities into one
reflectTrigger AI reflection on memories

HTTP transport

For remote/cloud MCP clients, Mengram also supports SSE transport:

SSE endpoint: https://mengram.io/mcp/sse
Messages: https://mengram.io/mcp/messages/