Mem0 Memory MCP

AIstdio
Repository

A self-hosted MCP server that gives AI assistants persistent, searchable long-term memory built on Mem0. Stores facts and preferences across sessions, retrieves them by semantic search, and can back memories with a Neo4j knowledge graph plus smart chunking, so an agent keeps useful context between conversations instead of starting cold.

Connect

Add this configuration to .claude/mcp.json

{
  "mcpServers": {
    "mem0": {
      "command": "npx",
      "args": [],
      "env": {
        "MEM0_API_KEY": "<YOUR_MEM0_API_KEY>",
        "OPENAI_API_KEY": "<YOUR_OPENAI_API_KEY>"
      }
    }
  }
}

Tools (3)

add_memory

Store a new memory for a given user or agent scope.

{
  "type": "object",
  "required": [
    "content"
  ],
  "properties": {
    "content": {
      "type": "string",
      "description": "Text to remember"
    },
    "user_id": {
      "type": "string",
      "description": "Scope the memory to a user or agent"
    }
  }
}

search_memory

Semantically search stored memories.

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "Search query"
    },
    "user_id": {
      "type": "string",
      "description": "Scope to search within"
    }
  }
}

delete_memory

Delete a stored memory by identifier.

{
  "type": "object",
  "required": [
    "memory_id"
  ],
  "properties": {
    "memory_id": {
      "type": "string",
      "description": "Identifier of the memory to delete"
    }
  }
}

Resources

This server does not expose any resources.

Prompts

This server does not expose any prompts.

Server information

Author
Subhash Dasyam (@subhashdasyam)
Repository
https://github.com/subhashdasyam/mem0-server-mcp
License
MIT
Stars
0
Last updated
August 3, 2026