Agent Memory (Key-Value Store)
agent_memoryPersistent memory for AI agents without an account: store JSON under a key and read it back in a later run, or share it with other agents. Your first write creates a store and returns its secret (mem_...); pass it as store on every later call. Operations: set (with optional if_version for safe concurrent updates), get, get_many, delete, list (prefix, tag, paging), search (words in keys and values), append (rolling list such as a log or task queue, oldest items drop off), incr (atomic counter). Up to 64 KB per value, 1000 keys and 5 MB per store, kept 1 to 365 days (default 30, renewed on every write). One price per operation. Price: $0.002 USDC per call, paid inside this MCP call via x402 (USDC on Base, Solana, Polygon or Arbitrum). x402 MCP clients such as @x402/mcp pay automatically. Free sample: call with the example input {"op":"get","store":"mem_demo_read_only","key":"example"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | incr step, default 1 | |
| op | No | Default: set if value is given, get if key is given, else list | |
| key | No | ||
| tag | No | ||
| keys | No | For get_many and delete | |
| tags | No | ||
| after | No | list: continue after this key | |
| limit | No | ||
| query | No | search: words that must all appear in key or value | |
| store | No | Store secret from an earlier call (mem_...). Omit on your first write to create a store | |
| value | No | Any JSON value, up to 64 KB (set, append) | |
| prefix | No | ||
| ttl_days | No | ||
| max_items | No | append: keep at most this many items, default 100, max 1000 | |
| if_version | No | set only if the current version matches (0 = key must not exist) | |
| with_values | No | list: include values |