Install any skill in seconds. Free to start, no credit card required.
Get Started Free →tanstack/tanstack-ai-memory-mem0
Use when wiring mem0() from @tanstack/ai-memory/mem0 — a hosted memory adapter that talks to a mem0 server over plain HTTP (no SDK peer). Requires a running mem0 server.
Passed 24 of 24 test cases with the skill, and 13 of 24 without it.
and 11 more in the full report
11 fixed13 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
When configuring the mem0 memory module for our microservice deployment, what environment variable will the adapter automatically read if no explicit backend URL string is passed into the factory function?
| Checked | Without skill | With skill |
|---|---|---|
| Identifies MEM0_URL as the default environment variable for the backend endpoint. | Missed | Passed |
The instructions your model reads when the skill loads.
Hosted recall/save adapter backed by a mem0 server. mem0 owns extraction and ranking
server-side. Talks to the server over plain HTTP — no SDK peer dependency.
import { memoryMiddleware } from '@tanstack/ai-memory'
import { mem0 } from '@tanstack/ai-memory/mem0'
// Build per request from the server-validated session — never from req.body.
function memoryFor(session: { userId: string; threadId: string }) {
const memory = mem0({ user: session.userId }) // baseUrl defaults to MEM0_URL
return memoryMiddleware({
adapter: memory,
scope: { threadId: session.threadId, userId: session.userId },
})
}
Requires a running mem0 server (self-hosted or hosted). Point it via baseUrl (or
MEM0_URL); pass apiKey (or MEM0_ADMIN_API_KEY) when secured.
user — mem0 user_id (falls back to scope.userId, then 'demo-user').baseUrl — mem0 server URL (default MEM0_URL or http://localhost:8000).apiKey — bearer token (default MEM0_ADMIN_API_KEY).rerank (default true), threshold (default 0.1) — search tuning.Scope fields: requests send user_id and run_id (scope.threadId). tenantId
and namespace are not sent — encode multi-tenant isolation into user if needed.
save posts the { user, assistant } turn to /memories; recall queries /search
and renders the results into the system prompt. mem0 exposes no LLM tools.
test cases passed, vs 13 / 24 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.