Memory Tool
效率与工作流by mem0ai
Save, search, and manage long-term memories across users and apps. Quickly recall facts, preferences, and past conversations with semantic search and structured filters. Update or delete specific entries, or bulk-clear a scope to keep context accurate and tidy.
Tools (9)
add_memoryStore a new preference, fact, or conversation snippet. Requires at least one: user_id, agent_id, or run_id.
search_memoriesRun a semantic search over existing memories. Use filters to narrow results. Common filter patterns: - Single user: {"AND": [{"user_id": "john"}]} - Agent memories: {"AND": [{"agent_id": "agent_name"}]} - Recent memories: {"AND": [{"user_id": "john"}, {"created_at": {"gte": "2024-01-01"}}]} - Multiple users: {"AND": [{"user_id": {"in": ["john", "jane"]}}]} - Cross-entity: {"OR": [{"user_id": "john"}, {"agent_id": "agent_name"}]} user_id is automatically added to filters if not provided.
get_memoriesPage through memories using filters instead of search. Use filters to list specific memories. Common filter patterns: - Single user: {"AND": [{"user_id": "john"}]} - Agent memories: {"AND": [{"agent_id": "agent_name"}]} - Recent memories: {"AND": [{"user_id": "john"}, {"created_at": {"gte": "2024-01-01"}}]} - Multiple users: {"AND": [{"user_id": {"in": ["john", "jane"]}}]} Pagination: Use page (1-indexed) and page_size for browsing results. user_id is automatically added to filters if not provided.
delete_all_memoriesDelete every memory in the given user/agent/app/run but keep the entity.
list_entitiesList which users/agents/apps/runs currently hold memories.
get_memoryFetch a single memory once you know its memory_id.
update_memoryOverwrite an existing memory’s text.
delete_memoryDelete one memory after the user confirms its memory_id.
delete_entitiesRemove a user/agent/app/run record entirely (and cascade-delete its memories).
Related MCP Servers
MCP server for terminal commands, file operations, and process management
6.2kEnable AI assistants to interact with LinkedIn by scraping profiles, companies, and job postings. Perform detailed data extraction and session management to support recruitment and business research workflows. Simplify LinkedIn data access with secure credential handling and seamless integration.
2.6k