Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MEM0_API_KEYYesYour mem0 API key

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription
memory_assistantGet help with memory operations and best practices.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/mem0ai/mem0-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server