Voice AI, Multilingual & Enterprise Security · 7 min read

How to Consolidate ChatGPT, Claude Desktop & Mem0 Exports Into One Shared MCP Memory Graph

Consolidate ChatGPT, Claude Desktop, and Mem0 memory exports into one shared MCP graph. Follow our step-by-step import guide using /account and batch REST APIs.

Direct Answer (TL;DR) Self-Contained GEO Passage

Developers adopting Claude Code, Cursor, and Codex CLI often suffer from fragmented context: hard-earned architectural rules and personal project preferences are trapped in proprietary silos like ChatGPT Custom Instructions, Claude Desktop memory, or legacy Mem0 SQLite databases. Switching tools forces engineers to re-teach their AI agents from scratch. Memoreal solves memory fragmentation through a unified migration and import pipeline. Using the built-in importer in the `/account` web console or the `POST /v1/memories/import` endpoint, teams can ingest hundreds of memories from ChatGPT JSON exports, Claude Desktop markdown files, and Mem0 databases into an open, MCP-standard memory graph in under 60 seconds.

<60 Seconds
Migration time from ChatGPT or Mem0 to Memoreal
Memoreal Migration Utility Benchmark
500 Items
Maximum batch import size per REST payload
Memoreal API Specification
100% MCP Compatible
Works across Claude Code, Cursor, Codex & Windsurf
Model Context Protocol Conformance Suite
Table of Contents ↓

Memory Portability & Migration Capabilities

Memory Portability & Migration Capabilities
Feature / CapabilityChatGPT Custom InstructionsClaude Desktop MemoryMemoreal Persistent MCP Substrate
Cross-Tool PortabilityLocked to OpenAI web chat interfaceLocked to Claude Desktop desktop appPortable across Claude Code, Cursor, Codex, Zed, Windsurf, OpenCode
Import / Export FormatOpaque web UI text boxesManual Markdown file editingStandardized JSON / REST batch imports (`POST /v1/memories/import`)
Team Sharing & WorkspacesIndividual account only; no team sharingLocal machine only; no synchronizationShared team namespaces with 4-tier RBAC and real-time synchronization

The Walled Garden Problem in Personal AI Memory

Over months of interacting with AI assistants, developers painstakingly train their tools: teaching ChatGPT their preferred coding style, configuring Claude Desktop with repository quirks, and storing facts in standalone experiments. However, because each platform locks user preferences behind closed, proprietary interfaces, this invaluable institutional knowledge remains fractured. When a developer moves to Claude Code or Cursor, their new agents start completely blind, asking elementary questions already answered months ago.

  • Institutional knowledge trapped inside proprietary web chat interfaces.
  • Zero interoperability between ChatGPT, Claude Desktop, and IDE coding harnesses.
  • High switching cost: developers hesitate to adopt superior tools due to lost memory.
  • Duplicate effort maintaining contradictory instructions across multiple AI platforms.

Exporting Data from ChatGPT, Claude Desktop & Mem0

Consolidating your memory into an open MCP standard begins with exporting raw memories from legacy systems. In ChatGPT, users navigate to Settings -> Data Controls -> Export Data to receive their structured JSON archive containing custom memories. In Claude Desktop, memories are stored as clear local markdown files in your user configuration directory. For Mem0, a simple SQLite query or JSON dump extracts all stored user memories into an import-ready array of text objects.

  • ChatGPT: Export Data archive delivers `memories.json` containing timestamped facts.
  • Claude Desktop: Extract project memory markdown files from local application data.
  • Mem0: Export SQLite table `memories` to standard JSON objects with salience scores.
  • Open format: All formats map directly to Memoreal `{ content, type, salience, context }`.

Executing 60-Second Batch Imports into Memoreal

Once memories are formatted, ingestion into Memoreal is fast and straightforward. Teams can upload their JSON files directly through the `/account` web console interface, which automatically parses and validates each record. Alternatively, developers can script the migration using `POST /v1/memories/import`, which accepts up to 500 items per atomic payload. Once imported, your memories are immediately available across all your MCP-connected tools: Claude Code, Cursor, Codex CLI, and Windsurf.

  • Web UI Importer: Drag and drop JSON files in the `/account` dashboard for instant import.
  • Batch REST API: `POST /v1/memories/import` supports up to 500 memory records per call.
  • Automatic deduplication: `consolidate` merges redundant entries from multiple sources.
  • Instant synchronization: all connected IDEs and agent wings share the imported graph.

Batch Importing Memories from JSON Export via Node.js

javascript
import fs from 'node:fs';

export async function importLegacyMemories(filePath, targetNamespace) {
  const rawData = JSON.parse(fs.readFileSync(filePath, 'utf8'));
  
  // Transform arbitrary export records into Memoreal memory schema
  const memories = rawData.map(item => ({
    content: item.text || item.content || item.memory,
    type: item.type || 'episodic',
    salience: item.salience ?? 0.6,
    context: [['imported_from', item.source || 'chatgpt_export']],
  }));

  // Ingest in chunks of 500 items per API specification
  const CHUNK_SIZE = 500;
  for (let i = 0; i < memories.length; i += CHUNK_SIZE) {
    const chunk = memories.slice(i, i + CHUNK_SIZE);
    const resp = await fetch('https://memoreal.kolivri.com/v1/memories/import', {
      method: 'POST',
      headers: {
        'Authorization': `Bearer ${process.env.MEMOREAL_API_KEY}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        namespace: targetNamespace,
        memories: chunk,
      }),
    });
    const result = await resp.json();
    console.log(`Ingested batch ${i / CHUNK_SIZE + 1}: ${result.imported_count} memories`);
  }
}

Frequently Asked Questions

How long does it take to migrate 1,000 memories into Memoreal?

Using the batch import endpoint (`POST /v1/memories/import`), migrating 1,000 memories takes two API requests and typically completes in under 15 seconds.

Will imported memories interfere with existing repository rules?

No. You can import legacy memories into a dedicated namespace (e.g. `personal-prefs`) or your team workspace, keeping project rules cleanly separated.

Can I export my Memoreal memories if I ever need to leave?

Yes. Memoreal fully supports data portability: you can export all your namespaces and memories as standard JSON or Markdown at any time with zero vendor lock-in.

60-Second Setup

Install Persistent Memory for Your Coding Agent

Sub-15ms deterministic recall, AST symbol navigation, and 70%+ token savings across Claude Code, Cursor, Codex CLI, and Windsurf.

npx -y @kolivri/memoreal-mcp setup
Start Free (1,000 Calls · $0 LLM Tax) Compare All Alternatives →