← Open Source

Memory Layer for agents.

TypeScript
Momentum
+0stars in 24 hours0.0%
6
Stars
0
Forks
1
Contributors
Created 2026-02-02 · Updated 2026-03-30 · #28487 today
Top developers
Pandurangmopgar
README

MemoryStack

Memory layer for agents that works like human. Connect with anything — Read the Docs.

🧠 What is MemoryStack?

MemoryStack is a semantic memory infrastructure that gives AI applications the ability to remember, learn, and adapt—just like human memory. Built for developers creating AI agents, chatbots, and multi-agent systems, it provides persistent memory that doesn't just store information, but actively learns from it.

The Problem We Solve

Traditional AI applications suffer from "memory amnesia"—they forget context between sessions, can't learn from patterns, and fail to adapt to user preferences. This leads to repetitive conversations, inability to personalize, and fragmented context in multi-agent systems.

How MemoryStack Works

Unlike simple vector databases or key-value stores, MemoryStack implements a complete cognitive cycle inspired by human memory:

Traditional Memory Systems:

"I remember you like coffee"

MemoryStack:

"I learned you have a morning coffee routine between 7:45-8:15am on weekdays. Your preference evolved from tea to coffee over the past month. Would you like me to suggest your usual order at 7:50am tomorrow?"

This is adaptive learning—the system doesn't just recall facts, it discovers patterns, detects contradictions, and generates insights that enable truly intelligent AI behavior.

Core Capabilities

  • 🔍 Hybrid Search - Combines vector similarity (semantic understanding) with text search (keyword matching) for accurate retrieval
  • 🧠 Adaptive Learning - Automatic importance scoring, contradiction detection, and pattern reflection
  • 🤖 Multi-Agent Ready - Agent-specific memory, team collaboration, and seamless context handoffs
  • 🏢 Enterprise-Grade - Multi-tenant architecture with complete data isolation, GDPR compliance, and SOC2 readiness
  • ⚡ Developer-Friendly - Simple SDKs (Node.js, Python), MCP server for Claude/Cursor, and comprehensive REST API

Built For

  • AI Chatbots - Remember user preferences and conversation history across sessions
  • Personal Assistants - Learn from interactions and provide personalized recommendations
  • Multi-Agent Systems - Enable agent collaboration with shared memory and coordinated context
  • Customer Support - Track customer history and preferences for better service
  • Educational AI - Adaptive tutoring that learns student patterns and adjusts teaching strategies

📦 What's Included

Package Description Installation
SDK - Node.js TypeScript/JavaScript SDK npm install @memorystack/sdk
SDK - Python Python SDK pip install memorystack
MCP Server Model Context Protocol server for Claude, Cursor, Kiro npx @memorystack/mcp-server
Cookbook Real-world examples and recipes See examples
Eval LongMemEval benchmark evaluation framework See eval README
Research Academic paper and methodology LaTeX source

🚀 Quick Start

Get Your API Key

  1. Sign up at memorystack.app
  2. Go to Dashboard → API Keys
  3. Generate and copy your API key

Node.js / TypeScript

npm install @memorystack/sdk
import { MemoryStackClient } from '@memorystack/sdk';

const client = new MemoryStackClient({
  apiKey: process.env.MEMORYSTACK_API_KEY
});

// Store a memory
await client.add('User prefers dark mode and TypeScript');

// Search memories
const results = await client.search('user preferences');

Python

pip install memorystack
from memorystack import MemoryStackClient

client = MemoryStackClient(api_key=os.environ['MEMORYSTACK_API_KEY'])

# Store a memory
client.add('User prefers dark mode and Python')

# Search memories
results = client.search('user preferences')

MCP Server (Claude Desktop, Cursor, Kiro)

{
  "mcpServers": {
    "memorystack": {
      "command": "npx",
      "args": ["@memorystack/mcp-server"],
      "env": {
        "MEMORYSTACK_API_KEY": "your_api_key"
      }
    }
  }
}

✨ Features

Core Memory

  • 🔍 Hybrid Search - Vector similarity + text search with RRF ranking
  • 🎯 Smart Ranking - Automatic importance scoring
  • 🔄 Auto-Consolidation - Deduplication and merging
  • 📊 Analytics - Usage tracking and insights

Multi-Agent Systems

  • 🤖 Agent Management - Create, manage, and organize agents
  • 👥 Team Collaboration - Shared memory across agent teams
  • 🔄 Agent Handoffs - Seamless context transfer between agents
  • 🏗️ Workflow Patterns - Sequential, conditional, autonomous

Enterprise Ready

  • 🌐 Multi-tenant - B2B and B2C support with user isolation
  • 🔒 Security - API key auth, rate limiting, GDPR-compliant
  • 📈 Scalable - Built on Supabase + pgvector + Neo4j

📚 Documentation

🎯 Use Cases

  • Chatbots - Remember user preferences across sessions
  • Personal Assistants - Learn from interactions over time
  • Multi-Agent Systems - Share context between specialized agents
  • Customer Support - Track customer history and preferences
  • Education - Adaptive tutoring that learns student patterns

🤝 Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

📄 License

MIT License - see LICENSE for details.

🔗 Links


Built with ❤️ by MemoryStack Labs

Nearby in the ranking

AI Rank for iPhone

Follow AI model rankings

Download on the App Store