A memory system using mem0 for AI applications. Enables long-term memory for AI agents as a drop-in MCP server.
# Add to your Claude Code skills
git clone https://github.com/pinkpixel-dev/mem0-mcpLast scanned: 8/3/2026
{
"issues": [
{
"type": "npm-audit",
"message": "@hono/node-server: Node.js Adapter for Hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "@modelcontextprotocol/sdk: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "fast-uri: fast-uri vulnerable to host confusion via literal backslash authority delimiter",
"severity": "high"
},
{
"type": "npm-audit",
"message": "protobufjs: protobufjs: Denial of Service via infinite loop in .proto option parsing",
"severity": "medium"
}
],
"status": "WARNING",
"scannedAt": "2026-08-03T07:29:51.965Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}mem0-mcp is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by pinkpixel-dev. A memory system using mem0 for AI applications. Enables long-term memory for AI agents as a drop-in MCP server. It has 100 GitHub stars.
mem0-mcp returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.
Clone the repository with "git clone https://github.com/pinkpixel-dev/mem0-mcp" and add it to your Claude Code skills directory (see the Installation section above).
mem0-mcp is primarily written in TypeScript. It is open-source under pinkpixel-dev on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mem0-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Requires a passing catalog security scan. Resolve the flagged issues and resubmit to enable featuring.

A Model Context Protocol (MCP) server that integrates with Mem0.ai to provide persistent memory capabilities for LLMs. It allows AI agents to store and retrieve information across sessions.
This server uses the mem0ai Node.js SDK for its core functionality.
add_memory: Stores a memory from text content or structured message arrays.
content (string) or messages (array of role/content objects), userId (string), runId / sessionId (string), agentId (string), appId (string), metadata (object), infer (boolean), customInstructions (string), waitForCompletion (boolean, default: true), timeoutMs (number, default: 15000)waitForCompletion: false to get the eventId immediately.search_memories: Searches memories using semantic and BM25 hybrid filters.
query (string), userId (string), runId / sessionId (string), agentId (string), appId (string), filters (object), threshold (number), topK (number), rerank (boolean), referenceDate (string)filters block to prevent API validation errors.search_memory: Backward-compatible alias for search_memories.list_memories: Paginated listing of memory records scoped by identifiers.
userId (string), runId / sessionId (string), agentId (string), appId (string), filters (object), page (number), pageSize (number)get_memory: Retrieves a single memory record by its ID.
memoryId (string)update_memory: Modifies the text or metadata of an existing memory.
memoryId (string), text (string), metadata (object)delete_memory: Deletes a specific memory record by ID.
memoryId (string)get_memory_history: Retrieves the audit trail of memory revisions (cloud only).
memoryId (string)get_memory_capabilities: Exposes the feature matrix and support flags of the active backend storage mode.
batch_update_memories: Performs bulk updates of text contents for multiple memories (cloud only).
updates (array of { memoryId: string, text: string } objects)batch_delete_memories: Performs bulk deletions of multiple memories.
memoryIds (array of strings), confirm (boolean, must be true to execute)rate_memory: Submits quality feedback evaluation for a memory record (cloud only).
memoryId (string), feedback (string: positive, negative, very_negative), reason (string, optional)get_memory_event: Manually retrieves details of a specific background event job (cloud only).
eventId (string)list_memory_events: Lists history logs of background memory processing events (cloud only).
page (number), pageSize (number)create_memory_export: Initiates an asynchronous memory export query job (cloud only).
schema (object), filters (object, optional), exportInstructions (string, optional)get_memory_export: Retrieves status and download metadata of a memory export job (cloud only).
exportId (string)This server supports three storage modes:
Cloud Storage Mode ☁️ (Recommended for production)
MEM0_API_KEY environment variable)Supabase Storage Mode 🗄️ (Recommended for self-hosting)
SUPABASE_URL and SUPABASE_KEY environment variables)OPENAI_API_KEY environment variable) for embeddingsLocal Storage Mode 💾 (Development/testing only)
OPENAI_API_KEY environment variable)You can run this server in three main ways:
To install Mem0 Memory Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @pinkpixel-dev/mem0-mcp-server --client claude
Install the package globally and use the mem0-mcp command:
npm install -g @pinkpixel/mem0-mcp
After global installation, you can run the server directly:
mem0-mcp
Configure your MCP client to use the global command:
{
"mcpServers": {
"mem0-mcp": {
"command": "mem0-mcp",
"args": [],
"env": {
"MEM0_API_KEY": "YOUR_MEM0_API_KEY_HERE",
"DEFAULT_USER_ID": "user123",
"DEFAULT_AGENT_ID": "your-agent-id",
"DEFAULT_APP_ID": "your-app-id"
}
}
}
}
{
"mcpServers": {
"mem0-mcp": {
"command": "mem0-mcp",
"args": [],
"env": {
"SUPABASE_URL": "YOUR_SUPABASE_PROJECT_URL",
"SUPABASE_KEY": "YOUR_SUPABASE_ANON_KEY",
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY_HERE",
"DEFAULT_USER_ID": "user123",
"DEFAULT_AGENT_ID": "your-agent-id",
"DEFAULT_APP_ID": "your-app-id"
}
}
}
}
{
"mcpServers": {
"mem0-mcp": {
"command": "mem0-mcp",
"args": [],
"env": {
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY_HERE",
"DEFAULT_USER_ID": "user123"
}
}
}
}
npx (Recommended for occasional use)Configure your MCP client (e.g., Claude Desktop, Cursor, Cline, Roo Code, etc.) to run the server using npx:
{
"mcpServers": {
"mem0-mcp": {
"command": "npx",
"args": [
"-y",
"@pinkpixel/mem0-mcp"
],
"env": {
"MEM0_API_KEY": "YOUR_MEM0_API_KEY_HERE",
"DEFAULT_USER_ID": "user123",
"DEFAULT_AGENT_ID": "your-agent-id",
"DEFAULT_APP_ID": "your-app-id"
}
}
}
}
{
"mcpServers": {
"mem0-mcp": {
"command": "npx",
"args": [
"-y",
"@pinkpixel/mem0-mcp"
],
"env": {
"SUPABASE_URL": "YOUR_SUPABASE_PROJECT_URL",
"SUPABASE_KEY": "YOUR_SUPABASE_ANON_KEY",
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY_HERE",
"DEFAULT_USER_ID": "user123",
"DEFAULT_AGENT_ID": "your-agent-id",
"DEFAULT_APP_ID": "your-app-id"
}
}
}
}
{
"mcpServers": {
"mem0-mcp": {
"command": "npx",
"args": [
"-y",
"@pinkpixel/mem0-mcp"
],
"env": {
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY_HERE",
"DEFAULT_USER_ID": "user123"
}
}
}
}
Note: This method requires you to git clone the repository first.
Clone the repository, install dependencies, and build the server:
git clone https://github.com/pinkpixel-dev/mem0-mcp
cd mem0-mcp
npm install
npm run build
Then, configure your MCP client to run the built script directly using node:
{
"mcpServers": {
"mem0-mcp": {
"command": "node",
"args": [
"/absolute/path/to/mem0-mcp/build/index.js"
],
"env": {
"MEM0_API_KEY": "YOUR_MEM0_API_KEY_HERE",
"DEFAULT_USER_ID": "user123",
"DEFAULT_AGENT_ID": "your-agent-id",
"DEFAULT_APP_ID": "your-app-id"
}
}
}
}
{
"mcpServers": {
"mem0-mcp": {
"command": "node",
"args": [
"/absolute/path/to/mem0-mcp/build/index.js"
],
"env": {
"SUPABASE_URL": "YOUR_SUPABASE_PROJECT_URL",
"SUPABASE_KEY": "YOUR_SUPABASE_ANON_KEY",
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY_HERE"