Connector guide8-minute read16 MCP tools7 languages

Connect Mem0 to ChatGPT via MCP: Store Memories

A long-term memory for your AI with the Mem0 Platform: store facts from conversations per user, agent, app or session, search them by meaning, list, read and correct memories and trace how they changed, and see users, agents, profiles, processing events and usage.

HCBy HelpCode teamUpdated 8 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Mem0

Mem0

Give your AI a long-term memory with the Mem0 Platform: store facts from conversations per user, agent or session, search them by meaning, list, read, correct and trace the history of memories, and see users, agents, profiles, processing events and usage.

tools

16

Region

INTL

Category

Public Data

Authentication

API Key

Required env vars

MEM0_API_KEY
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Mem0 in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

AnythingMCP's plugin in ChatGPT's directory answers questions from your company databases on AnythingMCP Cloud (PostgreSQL, MySQL, SQL Server, Oracle, SAP HANA, SQLite, MongoDB, read-only): open the listing (opens in a new tab) and click Install plugin. Every other connector is added to ChatGPT as a custom MCP server with your AnythingMCP MCP URL.

Summary

A long-term memory for your AI with the Mem0 Platform: store facts from conversations per user, agent, app or session, search them by meaning, list, read and correct memories and trace how they changed, and see users, agents, profiles, processing events and usage.

Try asking

Example prompts for Mem0

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Mem0 · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Mem0, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

Mem0 + ChatGPT

A long-term memory for your AI with the Mem0 Platform: store facts from conversations per user, agent, app or session, search them by meaning, list, read and correct memories and trace how they changed, and see users, agents, profiles, processing events and usage.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

MEM0_API_KEY

Step 1 — Get credentials

Setting up takes about 2 minutes. You need a Mem0 Platform account; the free plan has monthly limits on stored memories and searches.

  1. Sign in at https://app.mem0.ai and open API Keys (https://app.mem0.ai/dashboard/api-keys).
  2. Create a key and copy it. It belongs to one organization and project: all memories are read and written there.
  3. Paste it into MEM0_API_KEY, without the word Token. The connector sends it as Authorization: Token <key>.
  4. Install the connector and run mem0_ping: it shows the organization, project and account email the key works on.

Costs: no tool is billed per call, but the plan counts usage. mem0_add_memories counts against the plan's limit of stored memories, and mem0_search_memories counts as a retrieval (search) call. mem0_get_stats shows the totals and the plan's retrieval limit.

Scoping: every memory belongs to at least one entity id: user_id, agent_id, app_id or run_id (a session). Use stable ids from your own system, such as a customer number. Search and list need a filters object with at least one of them, for example {"user_id": "alice"}, or combined: {"AND": [{"user_id": "alice"}, {"agent_id": "support-bot"}]}. Filters also take OR, NOT and the operators in, gte, lte, gt, lt, ne, contains and icontains, for example {"created_at": {"gte": "2026-01-01"}}.

Remembering: mem0_add_memories takes messages (user and assistant turns) and an entity id. Mem0 extracts the lasting facts, such as "prefers vegetarian food". Extraction runs in the background: the answer is status PENDING with an event_id, and mem0_get_event shows when it SUCCEEDED and which memories were added or changed. infer: false stores each message word for word and answers at once. metadata, expiration_date, includes, excludes and custom_instructions steer what is kept. Before storing something personal, the AI tells you what it is about to save.

Recalling: mem0_search_memories takes a natural-language query and filters and returns memory, score (relevance), categories, metadata and dates. top_k (default 10, at most 100) gives more hits, rerank: true a better order, threshold a minimum score.

Browsing and correcting: mem0_list_memories lists every memory that matches filters, newest first, with optional date range, categories and keywords; mem0_get_memory reads one; mem0_get_memory_history shows how it changed (old and new text, event ADD, UPDATE or DELETE, and the input that caused it). mem0_update_memory replaces the text, metadata or expiration_date of one memory; the AI confirms the memory and the new text with you first.

Entities, profiles and activity: mem0_list_entities lists users, agents, apps and runs with their memory counts; mem0_get_entity reads one; mem0_create_user registers a user id with metadata before any memory exists. mem0_get_user_profile returns the profile Mem0 builds for a user in the background; a 200 answer with a status and no profile means it is not ready yet. mem0_list_events and mem0_get_event show add and search operations with status (PENDING, RUNNING, SUCCEEDED, FAILED), latency and errors.

Switched off at install: mem0_delete_memory and mem0_delete_entity. Neither can be undone, and deleting an entity removes all of its memories, so a workspace admin turns them on when the team needs them.

Data formats: ids are UUIDs. Dates are ISO 8601, UTC; date filters on add and list take YYYY-MM-DD. categories are Mem0's own tags such as food, travel or professional_details.

Paging: mem0_list_memories takes page (from 1) and page_size (default 50, at most 100); mem0_list_entities pages the same way. List answers carry count, next and previous; a null next means the last page. To answer a question, the AI prefers mem0_search_memories over paging through everything.

Limits: plans limit stored memories and search calls per month; mem0_get_stats shows total_retrieval_events_limit.

Common errors: 400 means missing or invalid filters (search and list reject a top-level user_id; it belongs in filters), no entity id on add, or a bad date format; 401 a wrong or revoked key; 404 an unknown memory, entity or event; 429 the rate or plan limit is reached (the AI waits instead of retrying in a loop).

The connector does not delete all memories in bulk and does not run Mem0's open-source library; it works with the hosted Mem0 Platform only.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in ChatGPT

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

ChatGPT adds MCP servers as plugins on its Plugins page, on the web and on paid plans. Developer mode is no longer needed. In a Business workspace only admins and owners can add one; in Enterprise and Edu an admin can grant the Create plugins with MCPs permission.

  1. Go to chatgpt.com/plugins, click Add, then Add custom MCP server.
  2. Enter a name, e.g. Name: Mem0.
  3. Under Connection, enter the Server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID and keep Authentication on OAuth.
  4. Select I understand and want to continue, then Create as a plugin. When ChatGPT asks, sign in to AnythingMCP and allow access.
  5. Install the new plugin from your personal plugins, then type @ in a chat and pick it.

Available tools

ToolWhat it does
mem0_pingCheck the Mem0 API key and show the organization id, project id and account email it works on
mem0_add_memoriesStore memories from a conversation in Mem0: Mem0 extracts the lasting facts and saves them under the given user, agent, app or run (at…
mem0_search_memoriesSearch Mem0 memories by meaning with a natural-language query, within filters that name at least one user_id, agent_id, app_id or run_id
mem0_list_memoriesList all Mem0 memories that match filters (at least one user_id, agent_id, app_id or run_id), page by page, with optional date range…
mem0_get_memoryRead one Mem0 memory by id: its text, user, agent, app and session ids, metadata, categories, creation, update and expiration dates
mem0_update_memoryReplace the text, metadata or expiration date of one Mem0 memory, e.g. to correct a wrong fact
mem0_get_memory_historyShow how one Mem0 memory changed over time: each entry has the old and new text, the event (ADD, UPDATE, DELETE), the conversation input…
mem0_list_entitiesList the users, agents, apps and runs that have memories in the Mem0 project, with their type, name, memory count and dates, plus totals…
mem0_get_entityRead one Mem0 entity (a user, agent, app or run): id, name, owner, metadata and dates
mem0_get_user_profileRead the memory profile Mem0 builds for a user: a summary of who they are and what they prefer
mem0_create_userRegister a user id in the Mem0 project with optional metadata, before any memory is added for it
mem0_list_eventsList the memory operations of the Mem0 project (add and search events) with type, status (PENDING, RUNNING, SUCCEEDED, FAILED), payload…
mem0_get_eventRead one Mem0 event, e.g. the event_id returned by mem0_add_memories: status, the memories it added, updated or deleted, latency…
mem0_get_statsShow Mem0 usage statistics: total memories, add events, search (retrieval) events and the plan's retrieval limit, and memories per user…
mem0_delete_memoryDelete one Mem0 memory permanently
mem0_delete_entityDelete a Mem0 user, agent, app or run together with all of its memories

Example prompts

  • "Remember for user alice that she is vegetarian and allergic to nuts."
  • "What do we know about the food preferences of user alice? Search her memories."
  • "Did the memory extraction from my last add succeed, and which memories did it create?"
  • "The memory that says alice lives in Lyon is outdated: she moved to Turin. Correct it and show me its history."
  • "Which users have the most memories, and how close are we to the plan's search limit?"

FAQ

Does the free ChatGPT plan work with custom MCP servers? OpenAI documents custom MCP servers for paid plans only; the Free plan is not on its list.

Next steps

Was this guide helpful?

Your Mem0 agent is one click away.

Install the connector, paste the key, prompt ChatGPT. Free for 7 days, no credit card.

Related guides

Connectors

Connect Mem0 to Claude via MCP: Search Memories

A long-term memory for your AI with the Mem0 Platform: store facts from conversations per user, agent, app or session, search them by meaning, list, read and correct memories and trace how they changed, and see users, agents, profiles, processing events and usage.

Connectors

Connect Mem0 to Cursor via MCP: Search Memories

A long-term memory for your AI with the Mem0 Platform: store facts from conversations per user, agent, app or session, search them by meaning, list, read and correct memories and trace how they changed, and see users, agents, profiles, processing events and usage.

Connectors

Connect Mem0 to Gemini CLI via MCP

A long-term memory for your AI with the Mem0 Platform: store facts from conversations per user, agent, app or session, search them by meaning, list, read and correct memories and trace how they changed, and see users, agents, profiles, processing events and usage.

Connectors

Connect Mem0 to Meta Muse via MCP

A long-term memory for your AI with the Mem0 Platform: store facts from conversations per user, agent, app or session, search them by meaning, list, read and correct memories and trace how they changed, and see users, agents, profiles, processing events and usage.

Connectors

Mem0 MCP Server: Memories, Profiles and History

A long-term memory for your AI with the Mem0 Platform: store facts from conversations per user, agent, app or session, search them by meaning, list, read and correct memories and trace how they changed, and see users, agents, profiles, processing events and usage.

Connectors

Connect Mem0 to Microsoft Copilot via MCP

A long-term memory for your AI with the Mem0 Platform: store facts from conversations per user, agent, app or session, search them by meaning, list, read and correct memories and trace how they changed, and see users, agents, profiles, processing events and usage.