neo4j-agent-memory-skill

Implement graph-native agent memory with the neo4j-agent-memory package and NAMS service.

101|35|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/neo4j-contrib/neo4j-skills --skill neo4j-agent-memory-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: neo4j-agent-memory-skill
Source: https://github.com/neo4j-contrib/neo4j-skills/tree/main/neo4j-agent-memory-skill
Command: npx skills add https://github.com/neo4j-contrib/neo4j-skills --skill neo4j-agent-memory-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design and implement persistent, graph-native memory for AI agents so conversations, extracted entities, and reasoning traces can be stored and retrieved coherently in Neo4j.

Core Features & Use Cases

  • Short-term memory: store conversation history (and support context retrieval) as Neo4j graph data for continuity across sessions.
  • Long-term memory (POLE+O): model structured knowledge—Person, Object, Location, Event, and Organization—derived from agent interactions.
  • Reasoning traces: persist thought/action/provenance as first-class graph nodes so agents can learn from prior reasoning patterns.
  • Hosted service (NAMS): use the Neo4j Agent Memory Service at memory.neo4jlabs.com with REST and hosted MCP tools for managed memory operations and sharing.

Quick Start

Use the neo4j-agent-memory skill when you are setting up graph-native agent memory with the neo4j-agent-memory package or the hosted NAMS service for conversation, POLE+O entity knowledge, and reasoning trace persistence.

Frequently Asked Questions about neo4j-agent-memory-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement persistent agent memory with Neo4j for AI assistants?

Persistent agent memory with Neo4j is implemented using the neo4j-agent-memory package to store conversation history, extracted entities, and reasoning traces as graph data for coherent retrieval. The Skill provides the authoritative reference for mapping MemoryClient and MemorySettings usage.

What is the POLE+O model for long-term agent memory?

The POLE+O model for long-term agent memory structures extracted knowledge into Person, Object, Location, Event, and Organization entities derived from AI assistant interactions. It models structured knowledge as graph nodes within Neo4j for persistent retrieval.

How do I store reasoning traces as graph data in Neo4j?

Reasoning traces are stored as graph data in Neo4j by persisting thought, action, and provenance as first-class graph nodes. This allows AI agents to retrieve and learn from prior reasoning patterns during future interactions.

Can I use the Neo4j Agent Memory Service with MCP tools?

The Neo4j Agent Memory Service supports MCP tools through its hosted endpoint at memory.neo4jlabs.com. It provides REST and hosted MCP tools for managed memory operations and sharing, requiring authentication with a nams_ key prefix.

Does the Neo4j agent memory package support short-term conversation history?

The Neo4j agent memory package supports short-term conversation history by storing context as graph data for continuity across sessions. This enables context retrieval for AI assistants interacting with the Neo4j graph database.

What are the limitations of using the hosted NAMS service for agent memory?

The hosted NAMS service requires correct mapping of MemoryClient and MemorySettings usage along with specific endpoint and authentication details, including the nams_ key prefix. Safe and accurate implementation depends on following these hosted service constraints strictly.