npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@amaralkarl/n8n-nodes-mem0

v2.0.1

Published

n8n community node for Mem0 – intelligent memory layer for AI applications

Readme

n8n-nodes-mem0

npm version npm downloads License: MIT

n8n community node package that integrates Mem0 — an intelligent memory layer for AI agents — into your n8n workflows.

Supports both the Mem0 cloud (mem0.ai) and self-hosted Mem0 instances.


Nodes Included

| Node | Description | |---|---| | Mem0 | Full CRUD node for managing memories, entities, organizations, projects, and config | | Mem0 Chat Memory | AI Agent memory source — supplies conversation history to an AI Agent node | | Mem0 AI Tools | AI Agent tools provider — exposes search, add, get, delete, and history as callable tools |


Installation

Via Community Nodes UI (recommended)

  1. Open your n8n instance
  2. Go to Settings → Community Nodes
  3. Search for @amaralkarl/n8n-nodes-mem0
  4. Click Install

Manual

npm install @amaralkarl/n8n-nodes-mem0

Then restart your n8n instance.


Credential Setup

Cloud (mem0.ai)

  1. Sign up at mem0.ai and obtain an API key
  2. In n8n, create a Mem0 API credential with:
    • API Key (required)
    • Organization ID (optional)
    • Project ID (optional)

Self-Hosted

  1. Deploy a Mem0 OSS instance (see mem0 docs)
  2. In n8n, create a Mem0 Self-Hosted API credential with:
    • Base URL (e.g., http://localhost:8000)
    • API Key (optional, if your instance requires one)

Node Reference

Mem0 (CRUD)

General-purpose node for managing all Mem0 resources.

Authentication: Cloud or Self-Hosted

Memory Operations (Cloud & Self-Hosted)

| Operation | Description | |---|---| | Add | Store a message or conversation turn as a memory | | Get | Retrieve a single memory by ID | | Get All | List all memories for a user/agent/run | | Search | Semantic search using v1 endpoint | | Search V2 | Advanced semantic search with filter rules (cloud only) | | Update | Update a memory's text or metadata | | Delete | Delete a specific memory by ID | | Delete All | Delete all memories for a user/agent/run | | History | Get the change history of a memory |

Entity Operations (Cloud)

Manage user, agent, app, and session entities. Operations: Create, Get, Get All, Update, Delete

Organization Operations (Cloud)

Manage organizations with name, slug, description, and metadata. Operations: Create, Get, Get All, Update, Delete

Project Operations (Cloud)

Manage projects within organizations. Operations: Create, Get, Get All, Update, Delete

Config Operations (Self-Hosted)

| Operation | Description | |---|---| | Health | Check instance health | | Get Config | Retrieve current configuration | | Switch | Switch between LLM providers (gemini, openrouter, nvidia, qwen) | | Configure | Full configuration update via JSON | | Reset | Reset configuration to defaults |


Mem0 Chat Memory

Supplies conversation history to an AI Agent node as a memory source.

Connect the Memory output to the AI Agent's memory input.

Retrieval Modes:

| Mode | Description | |---|---| | Basic | Returns the last N raw memories, preserving role (user/assistant/system) | | Summary | Returns a single summarized text block of all memories | | Semantic (v1) | Semantic similarity search using the v1 /memories/search/ endpoint | | Semantic (v2) | Advanced semantic search with metadata filters via the v2 endpoint | | Hybrid | Combines semantic v2 + recent memories, scored with time-decay and MMR diversity |

Hybrid mode parameters:

  • Alpha — weight of semantic relevance vs. recency (0–1, default 0.65)
  • Half-life (hours) — decay rate for time-based scoring (default 48h)
  • Max Return — maximum memories returned to the agent (default 30)
  • MMR Lambda — balance between relevance and diversity (default 0.5)

Session ID: Automatically reads runId, sessionId, or chatId from the incoming node data, or you can define a custom key (supports n8n expressions).


Mem0 AI Tools

Exposes Mem0 operations as callable tools for an AI Agent node.

Connect the Tool output to the AI Agent's tool input. The agent will decide when and how to call each tool.

Available Tools:

| Tool | Description | |---|---| | mem0_search_memory | Semantic search for relevant memories | | mem0_add_memory | Save new content as a memory | | mem0_get_all_memories | Retrieve all memories for a user/agent | | mem0_delete_memory | Delete a memory by ID | | mem0_get_memory_history | Get the change history of a memory |

All tools accept optional user_id, agent_id, and run_id overrides per call.


Self-Hosted Notes

The self-hosted Mem0 instance does not use versioned API prefixes. This package automatically translates cloud endpoints:

  • /v1/memories/memories
  • /v2/memories/search//memories/search/

The Config operations (health, getConfig, switch, configure, reset) are only available for self-hosted instances.


License

MIT