mem0-mcp: Skill for Claude Code

.agents/skills/mem0-mcp-modernization/SKILL.md

mem0-mcp-modernization is a skill for Claude Code, Codex from pinkpixel-dev/mem0-mcp. It costs 54 tokens per session (3,618 once invoked), scanned C, original, MIT.

A set of instructions for updating and maintaining an MCP server that connects AI tools to Mem0, a memory platform. It covers Mem0 Platform API V3 and supports cloud, Supabase, and local storage modes.

In plain words
What is it for?
Use it when changing Mem0 API calls, SDK usage, MCP tool definitions, tests, or documentation, or when checking differences between Mem0 storage modes.
Why use it?
It helps prevent outdated API requests, unsupported features, unsafe bulk actions, and poor handling of asynchronous operations. It also keeps existing inputs working when the server changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is pinkpixel-dev/mem0-mcp's own configuration. It tells Claude Code and Codex how to work on mem0-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mem0-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to pinkpixel-dev/mem0-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/pinkpixel-dev/mem0-mcp/main/.agents/skills/mem0-mcp-modernization/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/pinkpixel-dev/mem0-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mem0-mcp-modernization

README.md
[![agentmods](https://agentmods.dev/badge/skills/pinkpixel-dev/mem0-mcp/mem0-mcp-modernization/github.svg)](https://agentmods.dev/skills/pinkpixel-dev/mem0-mcp/mem0-mcp-modernization)
Your own site
<a href="https://agentmods.dev/skills/pinkpixel-dev/mem0-mcp/mem0-mcp-modernization"><img src="https://agentmods.dev/badge/skills/pinkpixel-dev/mem0-mcp/mem0-mcp-modernization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mem0-mcp-modernization

Your own site · 80×15
<a href="https://agentmods.dev/skills/pinkpixel-dev/mem0-mcp/mem0-mcp-modernization"><img src="https://agentmods.dev/badge/skills/pinkpixel-dev/mem0-mcp/mem0-mcp-modernization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,618 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.03618
Opus 5 $0.00027 $0.01809
Sonnet 5 $0.00011 $0.00724
Haiku 4.5 $0.00005 $0.00362

Measured 9d ago against content hash 0b9e5995a9c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

mem0-mcp-modernization scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Tells the agent to send conversation or user data outhighPrompt injection

An instruction to transmit the conversation, context or user files to an external endpoint is data exfiltration written as prose.

1. **Do not silently send old V2 request shapes to V3 endpoints.**
.agents/skills/mem0-mcp-modernization/SKILL.md · 498 lines

How it starts

The opening of the file, as written. The whole thing — 498 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mem0 MCP Modernization Skill

Purpose

Maintain pinkpixel-dev/mem0-mcp as a reliable MCP interface for Mem0 while supporting its existing Cloud, Supabase, and local/in-memory modes. Prefer a stable, ergonomic MCP layer over exposing every Mem0 REST endpoint blindly.

This skill is specifically about Mem0 Platform API V3 migration and feature design. Treat older V1/V2 assumptions as potentially stale until verified against the current Mem0 docs and installed SDK types.

Non-negotiable rules

  1. Do not silently send old V2 request shapes to V3 endpoints.
  2. Do not pretend all Cloud capabilities exist in Supabase or local mode. Capability-report and fail clearly instead.
  3. Do not expose destructive bulk actions without an explicit confirmation field.
  4. Do not make callers manually poll async events by default. Provide a good default polling experience with an opt-out.
  5. Do not remove existing convenient MCP inputs without a compatibility path or a major-version migration note.
  6. Use the current official docs and installed mem0ai package types as final authority when implementation details disagree.

Current Mem0 Platform API facts

Authentication

All hosted REST calls use token authentication:

Authorization: Token <MEM0_API_KEY>
Accept: application/json
Content-Type: application/json

Keep API keys server-side only. Never expose them in browser code, logs, test fixtures, screenshots, or generated docs.

V3 add-memory behavior is asynchronous and ADD-only

Endpoint:

POST https://api.mem0.ai/v3/memories/add/

Minimal request:

{
  "messages": [
    { "role": "user", "content": "I moved to Manchester last month." }
  ],
  "user_id": "user-123"
}

Important behavior:

  • Requires messages.
  • Requires at least one entity scope: user_id, agent_id, app_id, or run_id.
  • Supports metadata, custom_instructions, and infer.
  • infer: false stores messages verbatim instead of invoking memory extraction.
  • Returns an async event response, usually PENDING plus event_id.
  • V3 extraction is single-pass ADD-only. It does not automatically update or delete old memories. Memories can accumulate and require deliberate maintenance.

Read the full file on GitHub · 498 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 498 lines · 54 tokens per session scan C 0b9e5995a9c7

Subscribe to this mod's changes

mem0-mcp-modernization is a skill published in the GitHub repository pinkpixel-dev/mem0-mcp (98 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 3,618 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (tells the agent to send conversation or user data out). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

braindb

Memory recall and save. Use at every conversation start and whenever the user shares personal information, expertise, project context, preferences, or decisions worth remembering long-term.

dimknaf/braindb · 36 tokens

braindb-agent

Persistent memory across sessions via the BrainDB agent. Use at conversation start and whenever you need to recall what you know about the user or save new information to long-term memory.

dimknaf/braindb · 40 tokens

braindb-custom-profile

How to author a BrainDB custom profile — prompt add/replace fragments and an optional keyless ingestor — that shapes wiki naming/structure and feeds a custom ingestion source, with zero effect on defaults when inactive.

dimknaf/braindb · 49 tokens

dev-browser

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website"…

MemTensor/MemOS · 84 tokens

harness-creator

Build, audit, and improve harnesses that make AI coding agents reliable: AGENTS.md/CLAUDE.md instruction files, feature/state tracking, verification gates, scope boundaries, session handoff, memory persistence, context budgets, tool-permission safety, and multi-agent coordination. Use this whenever a coding agent is…

walkinglabs/learn-harness-engineering · 142 tokens

browserwing-admin

Manage and operate BrowserWing — an intelligent browser automation platform. Install dependencies, configure LLM, create/manage/execute automation scripts, use AI-driven exploration to generate scripts, browse the script marketplace, and troubleshoot issues.

MemTensor/MemOS · 47 tokens