Mem0 Cloud

A hosted agent-memory API shaped like mem0's REST API (an alternative to running mem0 yourself):...

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
100%
命名品質
100%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,647Token(工具定義)
~3.6 KB典型回應大小
中等的注意力影響(128k 上下文的 1.29%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "mem0-cloud": {
      "url": "https://mem0-cloud.saastemly.com/mcp"
    }
  }
}

遠端端點

https://mem0-cloud.saastemly.com/mcpstreamable-http

它能做什麼

工具清單

工具(4)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟡add_memory(memory_key, messages, user_id, agent_id, app_id, ...)

Store memories from a conversation, like mem0's add: an AI model extracts durable facts about the user from the messages (or, with infer=false, stores each message as is), embeds them and saves them privately under your memory_key (a secret string you generate; required). Identical facts are stored once. Needs at least one of user_id, agent_id, app_id, run_id. Memories are kept for 365 days. Returns {event_id, status, results:[{id, memory, event: ADD|NONE}]}. Price: $0.008 a call (3 free calls a day without an API key).

輸入結構描述

{
  "type": "object",
  "properties": {
    "memory_key": {
      "type": "string",
      "description": "Your secret: a random string of 16-256 characters that you generate once and keep (also accepted as the X-Memory-Key header). Memories are stored and searched only under its hash, so nobody who lacks it can read them, whatever user_id they send. Lose it and the memories are unreachable."
    },
    "messages": {
      "type": "array",
      "description": "Conversation turns, each {role: user|assistant|system, content: string}; up to 6000 bytes as JSON. A plain string is also accepted (one user message).",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "description": "user, assistant or system"
          },
          "content": {
            "type": "string",
            "description": "The message text"
          }
        }
      }
    },
    "user_id": {
      "type": "string",
      "description": "Entity: the user the memories are about (1-128 characters)"
    },
    "agent_id": {
      "type": "string",
      "description": "Entity: the agent the memories belong to (1-128 characters)"
    },
    "app_id": {
      "type": "string",
      "description": "Entity: the app (1-128 characters)"
    },
    "run_id": {
      "type": "string",
      "description": "Entity: the session or run (1-128 characters)"
    },
    "metadata": {
      "type": "object",
      "description": "Custom key/value metadata stored with every memory (up to 2000 bytes as JSON)"
    },
    "infer": {
      "type": "boolean",
      "description": "Default true: extract facts with the model. false: store each message verbatim (up to 10 messages of 300 characters)"
    },
    "expiration_date": {
      "type": "string",
      "description": "Optional YYYY-MM-DD: the memory is hidden from search and listing after that day (unless show_expired is true)"
    },
    "custom_instructions": {
      "type": "string",
      "description": "Optional extra extraction instructions (with includes and excludes, up to 800 bytes together)"
    },
    "includes": {
      "type": "string",
      "description": "Optional: what to focus on when extracting"
    },
    "excludes": {
      "type": "string",
      "description": "Optional: what not to extract"
    }
  },
  "required": [
    "memory_key",
    "messages"
  ]
}
🟢search_memories(memory_key, query, filters, top_k, threshold, ...)

Search your stored memories by meaning, like mem0's search: embeds the query and returns the closest memories with a relevance score from 0 to 1. Only memories stored under the same memory_key (your secret string; required) are searched. filters must name at least one of user_id, agent_id, app_id, run_id. Returns {results:[{id, memory, score, metadata, ...}]}. Price: $0.004 a call (3 free calls a day without an API key).

輸入結構描述

{
  "type": "object",
  "properties": {
    "memory_key": {
      "type": "string",
      "description": "Your secret: a random string of 16-256 characters that you generate once and keep (also accepted as the X-Memory-Key header). Memories are stored and searched only under its hash, so nobody who lacks it can read them, whatever user_id they send. Lose it and the memories are unreachable."
    },
    "query": {
      "type": "string",
      "description": "What to look for, in natural language (up to 500 characters)"
    },
    "filters": {
      "type": "object",
      "description": "mem0 filters: at least one of user_id, agent_id, app_id, run_id, each a string, \"*\" or {\"in\": [up to 20 strings]}; AND lists of those. OR and NOT are not supported."
    },
    "top_k": {
      "type": "integer",
      "description": "How many memories to return, 1-100 (default 10)"
    },
    "threshold": {
      "type": "number",
      "description": "Minimum relevance score, 0-1 (default 0.1; 0 disables)"
    },
    "show_expired": {
      "type": "boolean",
      "description": "Include memories whose expiration_date has passed (default false)"
    }
  },
  "required": [
    "memory_key",
    "query",
    "filters"
  ]
}
🟢get_memories(memory_key, memory_id, user_id, agent_id, app_id, ...)

Read your stored memories, like mem0's get memory and get all memories. With memory_id: returns that one memory (404 if it is not yours). Without it: returns a page {count, next, previous, results} of the memories matching user_id, agent_id, app_id or run_id (at least one; "*" matches any value), newest first. Requires your memory_key (a secret string you generate): a different key sees nothing. Price: $0.002 a call (3 free calls a day without an API key).

輸入結構描述

{
  "type": "object",
  "properties": {
    "memory_key": {
      "type": "string",
      "description": "Your secret: a random string of 16-256 characters that you generate once and keep (also accepted as the X-Memory-Key header). Memories are stored and searched only under its hash, so nobody who lacks it can read them, whatever user_id they send. Lose it and the memories are unreachable."
    },
    "memory_id": {
      "type": "string",
      "description": "UUID of one memory to fetch; leave out to list memories instead"
    },
    "user_id": {
      "type": "string",
      "description": "Entity: the user the memories are about (1-128 characters)"
    },
    "agent_id": {
      "type": "string",
      "description": "Entity: the agent the memories belong to (1-128 characters)"
    },
    "app_id": {
      "type": "string",
      "description": "Entity: the app (1-128 characters)"
    },
    "run_id": {
      "type": "string",
      "description": "Entity: the session or run (1-128 characters)"
    },
    "page": {
      "type": "integer",
      "description": "Page number, from 1 (default 1)"
    },
    "page_size": {
      "type": "integer",
      "description": "Memories per page, 1-100 (default 50)"
    },
    "show_expired": {
      "type": "boolean",
      "description": "Include memories whose expiration_date has passed (default false)"
    }
  },
  "required": [
    "memory_key"
  ]
}
🔴delete_memories(memory_key, memory_id, user_id, agent_id, app_id, ...)

Delete your stored memories, like mem0's delete memory and delete all memories. With memory_id: deletes that one memory (404 if it is not yours). Without it: deletes up to 200 of your memories matching user_id, agent_id, app_id or run_id (at least one), and says if more remain. Requires your memory_key (a secret string you generate): other keys cannot delete your memories. Price: $0.002 a call (3 free calls a day without an API key).

輸入結構描述

{
  "type": "object",
  "properties": {
    "memory_key": {
      "type": "string",
      "description": "Your secret: a random string of 16-256 characters that you generate once and keep (also accepted as the X-Memory-Key header). Memories are stored and searched only under its hash, so nobody who lacks it can read them, whatever user_id they send. Lose it and the memories are unreachable."
    },
    "memory_id": {
      "type": "string",
      "description": "UUID of one memory to delete; leave out to delete by entity instead"
    },
    "user_id": {
      "type": "string",
      "description": "Entity: the user the memories are about (1-128 characters)"
    },
    "agent_id": {
      "type": "string",
      "description": "Entity: the agent the memories belong to (1-128 characters)"
    },
    "app_id": {
      "type": "string",
      "description": "Entity: the app (1-128 characters)"
    },
    "run_id": {
      "type": "string",
      "description": "Entity: the session or run (1-128 characters)"
    }
  },
  "required": [
    "memory_key"
  ]
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本4 個工具