Mem0 Memory MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mem0 Memory MCP Serversearch memories for user alice about her favorite coffee order"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Mem0 Memory MCP Server
A Model Context Protocol (MCP) server that provides memory storage and retrieval capabilities using Mem0. This server allows AI agents to store and search through memories, making it useful for maintaining context and making informed decisions based on past interactions.
Features
Store memories with user-specific context
Search through stored memories with relevance scoring
Simple and intuitive API
Built on the Model Context Protocol
Automatic error handling
Support for multiple user contexts
Deployable on Smithery
Related MCP server: Mem0 MCP Server
Installation
Using npx (Recommended)
npx -y @mem0/mcpLocal Development
# Install dependencies
npm install
# Run development server with Smithery playground
npm run dev
# Build the project
npm run buildConfiguration
The server requires a Mem0 API key to function. You can obtain one from Mem0 Dashboard.
For Smithery Deployment
When deploying on Smithery, users will be prompted to provide their API key through the configuration interface.
For Local Development
Create a .env file in the root directory:
MEM0_API_KEY=your-api-key-hereAvailable Tools
1. Add Memory (add-memory)
Store new memories with user-specific context.
Parameters:
content(string, required): The content to store in memoryuserId(string, required): User ID for memory storage
2. Search Memories (search-memories)
Search through stored memories to retrieve relevant information.
Parameters:
query(string, required): The search queryuserId(string, required): User ID for memory storage
Usage with MCP Clients
Cursor
Open Cursor Settings
Go to Features > MCP Servers
Add the server configuration:
{
"mcpServers": {
"mem0-mcp": {
"command": "npx",
"args": ["-y", "@mem0/mcp"],
"env": {
"MEM0_API_KEY": "YOUR-API-KEY-HERE"
}
}
}
}VS Code
Add to your User Settings (JSON):
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "apiKey",
"description": "Mem0 API Key",
"password": true
}
],
"servers": {
"mem0-memory": {
"command": "npx",
"args": ["-y", "@mem0/mcp"],
"env": {
"MEM0_API_KEY": "${input:apiKey}"
}
}
}
}
}Deployment on Smithery
This server is configured for deployment on Smithery:
Push your code to GitHub
Connect your repository to Smithery
Deploy from the Deployments tab
The server will be available via Smithery's Streamable HTTP transport, allowing users to connect without installing dependencies locally.
Development
Project Structure
mem0-mcp/
├── src/
│ └── index.ts # Main server implementation
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
├── tsup.config.ts # Build configuration
├── smithery.yaml # Smithery deployment config
└── README.mdScripts
npm run dev- Start development server with Smithery playgroundnpm run build- Build the project using Smithery CLInpm run build:local- Build using tsup directlynpm run dev:local- Watch mode with tsupnpm start- Run the built server
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceProvides AI agents with persistent, searchable memory that survives across conversations using semantic search, temporal versioning, and smart organization. Enables long-term context retention and cross-session continuity for AI assistants.Last updated14
- Flicense-quality-maintenanceEnables persistent storage and semantic search of coding preferences, patterns, and implementations using Mem0, allowing AI agents to remember and retrieve development best practices across sessions.Last updated3
- AlicenseAquality-maintenanceEnables AI applications to add, search, update, and delete long-term memories using the Mem0 Memory API, allowing agents to persistently remember user preferences, conversation history, and contextual information across sessions.Last updated9
- Alicense-qualityDmaintenanceProvides persistent, cross-session memory for AI agents, allowing them to store and automatically retrieve information across different conversations and sessions without repeating context.Last updated35174MIT
Related MCP Connectors
Persistent memory for AI agents — verbatim conversations, searchable by meaning.
Universal memory for AI agents and tools. Save, organize and search context anywhere.
Persistent memory for AI agents. Search, store, and recall across sessions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ssdavidai/mem0-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server