Memory layer for agents that works like human. Connect with anything — Read the Docs.
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.
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.
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.
- 🔍 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
- 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
| 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 |
- Sign up at memorystack.app
- Go to Dashboard → API Keys
- Generate and copy your API key
npm install @memorystack/sdkimport { 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');pip install memorystackfrom 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'){
"mcpServers": {
"memorystack": {
"command": "npx",
"args": ["@memorystack/mcp-server"],
"env": {
"MEMORYSTACK_API_KEY": "your_api_key"
}
}
}
}- 🔍 Hybrid Search - Vector similarity + text search with RRF ranking
- 🎯 Smart Ranking - Automatic importance scoring
- 🔄 Auto-Consolidation - Deduplication and merging
- 📊 Analytics - Usage tracking and insights
- 🤖 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
- 🌐 Multi-tenant - B2B and B2C support with user isolation
- 🔒 Security - API key auth, rate limiting, GDPR-compliant
- 📈 Scalable - Built on Supabase + pgvector + Neo4j
- Quick Start - Get started in 5 minutes
- API Reference - Full API documentation
- Integrations - LangChain, CrewAI, OpenAI, Gemini
- Use Cases - Real-world applications
- 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
We welcome contributions! See CONTRIBUTING.md for guidelines.
MIT License - see LICENSE for details.
- 🌐 Website: https://memorystack.app
- 📚 Documentation: https://memorystack.app/docs
- 💰 Pricing: https://memorystack.app/pricing
- 🐛 Issues: https://github.com/memorystack-labs/memorystack/issues
- 💬 Discord: https://discord.gg/dHu5hMXd
Built with ❤️ by MemoryStack Labs