Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MEM0_API_KEY | Yes | Your mem0 API key |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| memory_assistant | Get help with memory operations and best practices. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |