Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mem0-api

Skill by pinkpixel-dev

Teaches an AI assistant how to build with the Mem0 memory API and SDK, including adding, searching, updating and deleting memories. It is for developers who want persistent, cross-session memory in LLM agents and chatbots.

  • Score 73
  • 97 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install mem0-api

Built from the published package, never by AI.

git clone --depth 1 https://github.com/pinkpixel-dev/mem0-mcp /tmp/mem0-mcp && mkdir -p ~/.claude/skills && cp -r /tmp/mem0-mcp/.agents/skills/mem0-api ~/.claude/skills/mem0-api

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install mem0-api in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a reference for building applications with Mem0, a managed memory layer for LLM agents. According to the source, Mem0 extracts facts from conversations, deduplicates them, and exposes them through semantic search. The skill covers the Platform SDK in TypeScript and Python, a REST API table, and the MCP server setup.

The skill explains entity scoping with user_id, agent_id, app_id and run_id, and the rules for V3 search filters. It also covers the asynchronous add pattern, webhooks, and self-hosted Mem0 OSS configuration with vector stores, LLMs, embedders and rerankers. The source names it for developers adding memory to AI agents and assistants that persists between conversations.

Written from the project's SKILL.md and checked against it.

What it can do

  • Platform SDK CRUDShows add, search, get, update, delete and delete-all calls in TypeScript and Python.
  • REST API referenceLists Mem0 endpoints for memories, events, entities and webhooks with their methods.
  • Entity scopingExplains how user_id, agent_id, app_id and run_id scope memories and how to query them.
  • V3 search filtersCovers filter operators, logical AND and OR composition, and top_k and threshold settings.
  • MCP integrationGives a one-command setup for the hosted Mem0 MCP server across several AI clients.
  • Async add patternShows how to poll the event endpoint until a memory add reaches SUCCEEDED or FAILED.
  • WebhooksDescribes memory event types and the payload shape for webhook callbacks.
  • OSS self-hosted setupShows how to configure Mem0 OSS with a vector store, LLM, embedder and reranker.

What you need

  • Mem0 API key from the Mem0 dashboard
  • Python with the mem0ai package, or Node.js with the mem0ai package
  • Vector store and LLM provider for Mem0 OSS self-hosting

Try asking

  • Add Mem0 to my chatbot so it remembers users across sessions
  • Write a TypeScript function that searches a user's Mem0 memories
  • Set up the hosted Mem0 MCP server for Claude and Cursor

Good to know

  • V3 search rejects entity IDs placed at the top level of the request
  • The add call is asynchronous and returns an event_id, not memories
  • Python mem0ai v2.x and TypeScript mem0ai v3.x are different major versions

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/mem0-api/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to mem0-api

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

mem0-api: common questions

What is Mem0 used for?

According to the source, Mem0 is a managed memory layer that gives LLM agents persistent, cross-session context. It extracts facts from conversations and makes them searchable.

What is the difference between Mem0 Platform and Mem0 OSS?

The source describes Platform as a managed hosted API and dashboard. OSS is self-hosted, and you run your own vector store, LLM and embedder stack.

Why does my Mem0 search return no results?

The source notes that writing with user_id set and agent_id null does not match a search that requires a specific agent_id. It also says V3 search needs entity IDs inside the filters object.

How do I install mem0-api?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is mem0-api free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is mem0-api safe to use?

It scores 73 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mem0-api?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

mem0-api Install

Add to stack

Loading.