Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

tanstack-ai-memory-mem0

Skill by TanStack

Connects TanStack AI apps to a mem0 server as a memory adapter. It saves chat turns and recalls relevant memories over plain HTTP, for developers who want mem0 as their memory backend.

  • Score 76
  • 3.4k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install tanstack-ai-memory-mem0

Built from the published package, never by AI.

git clone --depth 1 https://github.com/TanStack/ai /tmp/ai && mkdir -p ~/.claude/skills && cp -r /tmp/ai/packages/ai-memory/skills/tanstack-ai-memory-mem0 ~/.claude/skills/tanstack-ai-memory-mem0

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install tanstack-ai-memory-mem0 in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The mem0 adapter is a memory adapter for TanStack AI. It is imported from @tanstack/ai-memory/mem0 and used with memoryMiddleware. It talks to a mem0 server over plain HTTP and has no SDK peer dependency. mem0 handles extraction and ranking on the server side, and a running mem0 server is required.

The save function posts the user and assistant turn to the /memories endpoint. The recall function queries /search and renders the results into the system prompt. Options include user, baseUrl, apiKey, rerank and threshold. It is for developers building TanStack AI apps who want to use mem0 for memory. mem0 exposes no LLM tools.

Written from the project's SKILL.md and checked against it.

What it can do

  • recallQueries the mem0 /search endpoint and renders the results into the system prompt.
  • savePosts the user and assistant turn to the mem0 /memories endpoint.
  • Search tuningOptions rerank (default true) and threshold (default 0.1) adjust search results.
  • Scoped memorySends user_id and run_id from the request scope to mem0.

What you need

  • A running mem0 server, self-hosted or hosted
  • A mem0 API key, if the server is secured

Try asking

  • Save this chat turn to mem0 memory for the current user.
  • Recall relevant memories for this user before answering.
  • Set up mem0 memory with memoryMiddleware in my TanStack AI chat.

Good to know

  • Requires a running mem0 server.
  • tenantId and namespace are not sent to mem0.
  • mem0 exposes no LLM tools.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packages/ai-memory/skills/tanstack-ai-memory-mem0/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md2 KB

Alternatives to tanstack-ai-memory-mem0

All alternatives →

Compare with setup-zoom-webhooks, baoyu-post-to-weibo or add-dial-number

tanstack-ai-memory-mem0: common questions

Does the mem0 adapter need the mem0 SDK?

No. The adapter talks to the mem0 server over plain HTTP and has no SDK peer dependency.

How does the adapter handle multi-tenant isolation?

tenantId and namespace are not sent to mem0. The source says to encode multi-tenant isolation into the user option if needed.

Which mem0 endpoints does the adapter use?

The save function posts to /memories and the recall function queries /search.

How do I install tanstack-ai-memory-mem0?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is tanstack-ai-memory-mem0 free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is tanstack-ai-memory-mem0 safe to use?

It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to tanstack-ai-memory-mem0?

Similar skills: setup-zoom-webhooks, baoyu-post-to-weibo, add-dial-number, setup-zoom-websockets.

tanstack-ai-memory-mem0 Install

Add to stack

Loading.