MemMachine  by MemMachine

Universal memory layer for AI agents

Created 3 months ago
1,167 stars

Top 33.0% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

MemMachine offers a universal memory layer designed to enhance AI agents by providing scalable, extensible, and interoperable storage and retrieval of data across sessions and models. It addresses the need for persistent state management in autonomous systems, enabling AI applications to learn from past interactions and build evolving user profiles. This benefits developers building AI agents, assistants, or autonomous workflows, as well as researchers experimenting with agent architectures and cognitive models, by transforming generic chatbots into personalized, context-aware AI assistants.

How It Works

MemMachine's architecture features an API layer, accessible via Python SDK, RESTful endpoints, or an MCP Server, through which AI agents interact with the core memory system. The system manages two distinct memory types: Episodic Memory for conversational context and Profile Memory for long-term user facts. Data is persisted to a database layer, with Episodic Memory stored in a graph database and Profile Memory in an SQL database, facilitating efficient state management and recall.

Quick Start & Requirements

MemMachine is distributed as a Docker container and a Python package. A Quick Start Guide and comprehensive Docs & API Reference are available. Specific hardware or software prerequisites beyond Docker and Python are not detailed, but the architecture implies the need for graph and SQL database infrastructure.

Highlighted Details

  • Supports multiple memory types: Working (Short Term), Persistent (Long Term), and Personalized (Profile).
  • Offers developer-friendly APIs including Python SDK, RESTful, and MCP interfaces.
  • Demonstrates versatile use cases such as CRM Agents, Healthcare Navigators, Personal Finance Advisors, and Content Writers.

Maintenance & Community

Community support and discussions are available via a Discord server. Issues and feature requests should be directed to GitHub Issues. Contribution guidelines are outlined in CONTRIBUTING.md.

Licensing & Compatibility

MemMachine is released under the Apache 2.0 License, which generally permits commercial use and integration into closed-source projects.

Limitations & Caveats

The provided README does not explicitly detail limitations, alpha status, or known bugs. The architecture requires the setup and management of separate graph and SQL databases for memory persistence.

Health Check
Last Commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
134
Issues (30d)
75
Star History
1,040 stars in the last 30 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
9 more.

companion-app by a16z-infra

0.1%
6k
AI companion stack for personalized chatbots
Created 2 years ago
Updated 1 year ago
Feedback? Help us improve.