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.

Verified

View Chinese version with editor review

Tools (9)

add_memory

Store a new preference, fact, or conversation snippet. Requires at least one: user_id, agent_id, or run_id.

search_memories

Run 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_memories

Page 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_memories

Delete every memory in the given user/agent/app/run but keep the entity.

list_entities

List which users/agents/apps/runs currently hold memories.

get_memory

Fetch a single memory once you know its memory_id.

update_memory

Overwrite an existing memory’s text.

delete_memory

Delete one memory after the user confirms its memory_id.

delete_entities

Remove a user/agent/app/run record entirely (and cascade-delete its memories).

Related MCP Servers

Filesystem

Read, write, and manage files and directories on your local filesystem.

88.0k
io.github.wonderwhy-er/desktop-commander

MCP server for terminal commands, file operations, and process management

6.2k
LinkedIn Profile and Job Scraper

Enable 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