doobidoo

n8n Claude Memory Agent — AI skill for Claude Code

AI community

Intelligent N8N workflow integrating Claude Code CLI with MCP Memory Service for context-aware AI automation.

How to install n8n Claude Memory Agent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open doobidoo/n8n-claude-memory-agent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What n8n Claude Memory Agent does

Intelligent N8N workflow integrating Claude Code CLI with MCP Memory Service for context-aware AI automation.

Alternatives in AI

  • Deepseek Pp — DeepSeek Web browser extension: AI agent workspace with MCP tools, memory, Skills, automation, web search, and 1.7k ★
  • Metaharness — 🛠️ The meta-harness for AI agents — scaffold your own focused, branded agent harness with its own npx CLI, MC 616 ★
  • Claudexor — Multi-harness control plane for Claude Code, Codex, Cursor, and OpenCode: quota-aware rotation across multiple 425 ★

README

N8N Claude Memory Agent

An intelligent N8N workflow that integrates Claude Code CLI with MCP Memory Service for context-aware AI automation

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![N8N](https://img.shields.io/badge/N8N-Workflow-FF6D5A)](https://n8n.io) [![Claude Code](https://img.shields.io/badge/Claude-Code-5A67D8)](https://claude.com)

🎯 Overview

This project provides a production-ready N8N workflow that orchestrates Claude Code CLI via SSH while maintaining conversation context through an MCP (Model Context Protocol) Memory Service. The workflow automatically:

  • Retrieves relevant context from previous sessions using semantic search
  • Enhances prompts with historical information
  • Executes Claude Code commands via SSH with session persistence
  • Extracts and stores important facts for future retrieval
  • Auto-tags conversations by detected technologies

✨ Features

🧠 Memory Integration

  • Semantic Search: Quality-boosted retrieval (30% quality, 70% semantic similarity)
  • Auto-Tagging: Detects 8 technology categories (Docker, Git, Python, JavaScript, N8N, Claude, Database, Cloud)
  • Fact Extraction: Identifies important information using 6 importance patterns
  • Session Tracking: UUID-based session management for conversation continuity

🔧 Technical Implementation

  • 11-Node Workflow: Fully automated pipeline from trigger to storage
  • SSH Key Authentication: Secure localhost connection with private key
  • Error Handling: Graceful degradation with continueOnFail on HTTP nodes
  • Context Formatting: Structured memory presentation with relevance scores

📊 Workflow Architecture

Manual Trigger
    ↓
Generate Session ID (UUID)
    ↓
Extract Keywords & Detect Topics
    ↓
Memory Service - Semantic Search (HTTP POST)
    ↓
Format Retrieved Context
    ↓
Build Enhanced Prompt
    ↓
SSH - Initial Claude Command (-p flag)