Connections & Capabilities
Connects To
Capabilities
Quickstart
Install
pip install mem0-mcp-serverConfig
{
"mcpServers": {
"mem0": {
"command": "uvx",
"args": ["mem0-mcp-server"],
"env": {
"MEM0_API_KEY": "m0-...",
"MEM0_DEFAULT_USER_ID": "your-handle"
}
}
}
}Exposed MCP Tools (9)
add_memorySaves text or conversation history for a user/agent.
Adds data to memory, potentially increasing storage costs.
search_memoriesPerforms semantic search across existing memories.
Read-only operation, no data modification.
get_memoriesLists memories with structured filters and pagination.
Read-only operation, no data modification.
get_memoryRetrieves a single memory by its `memory_id`.
Read-only operation, no data modification.
update_memoryOverwrites a memory's text once the user confirms the `memory_id`.
Modifies existing data, potentially leading to data corruption if not handled carefully.
delete_memoryDeletes a single memory by `memory_id`.
Deletes data, potentially leading to irreversible data loss.
delete_all_memoriesBulk deletes all memories in the confirmed scope.
Bulk deletion can cause significant and irreversible data loss.
delete_entitiesDeletes a user/agent/app/run entity and its memories.
Deletes entities and associated memories, leading to significant data loss.
list_entitiesEnumerates users/agents/apps/runs stored in Mem0.
Read-only operation, no data modification.
Safety Assessment
The Mem0 MCP Server offers memory management capabilities with some inherent risks due to write and delete operations. It's relatively safe when used with strong API key management and careful consideration of delete operations. Risks increase with exposure of the API key and misuse of bulk delete functionalities.
- Requires API key for authentication.
- Provides tools for managing memories, but includes delete operations.
- Can be run locally, in Docker, or via Smithery, offering deployment flexibility.
- Default user ID can be configured.
- Includes tools for deleting memories, which could lead to data loss.
- API key management is crucial to prevent unauthorized access.
- Exposure of the API key in the environment variables poses a risk if not properly secured.
- Bulk delete operations can be destructive if not used carefully.
