Skip to main content
Glama
zfy258

mem0-mcp-server

by zfy258

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MEM0_DIRNoWhere memory data is stored.~/.mem0
OPENAI_API_KEYNoSet to use OpenAI embeddings (1536 dims). If not set, the server falls back to FastEmbed, Ollama, or MockEmbeddings.
MEM0_LOCAL_OLLAMA_URLNoOllama base URL.http://localhost:11434
MEM0_LOCAL_OLLAMA_MODELNoOllama model name.nomic-embed-text
MEM0_LOCAL_FASTEMBED_MODELNoFastEmbed model name.BAAI/bge-small-zh-v1.5

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
add_memoryA

Store a memory in the local OSS Mem0 store. By default the text is stored verbatim with no LLM call (offline, free). Set infer=true to run Mem0's LLM fact extraction (requires a configured LLM).

search_memoriesB

Search memories by semantic similarity. Uses local embeddings.

get_memoriesA

List stored memories, newest first, with optional user/agent filters.

get_memoryB

Retrieve a single memory by its ID.

update_memoryB

Overwrite the text (and optionally metadata) of a memory by ID.

delete_memoryA

Delete a single memory by ID.

delete_all_memoriesA

Delete all memories for a user and/or agent. At least one scope is required.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

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

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