MemMachine/MemMachine

每日信息看板 · 2026-03-03
开源项目
Category
github_search
Source
2
Score
2026-03-03T01:55:11Z
Published

AI 总结

MemMachine 开源提供 AI 代理的长期记忆层,支持跨会话存储与召回(情景/用户画像/工作记忆),让无状态聊天机器人变成可个性化的上下文助手,对构建持续可用的 Agent 应用很关键。
#GitHub #repo #开源项目 #AI Agent #MCP #LangChain #Neo4j #Python SDK #Agent

内容摘录

MemMachine

<div align="center">

!MemMachine: Long Term Memory for AI Agents

**The open-source memory layer for AI agents.**

*Stop building stateless agents. Give your AI persistent memory with just 5 lines of code.*

<br/>

!GitHub Release Version
!GitHub License
Ask DeepWiki
!Discord
<br/>
!Docker Pulls
!GitHub Downloads
<br/>
!PyPI Downloads - memmachine-client
!PyPI Downloads - memmachine-server

</div>
What is MemMachine?

MemMachine is an open-source **long-term memory layer** for AI agents and LLM-powered applications. It enables your AI to **learn, store, and recall** information from past sessions—transforming stateless chatbots into personalized, context-aware assistants.
Key Capabilities
**Episodic Memory**: Graph-based conversational context that persists across sessions
**Profile Memory**: Long-term user facts and preferences stored in SQL
**Working Memory**: Short-term context for the current session
**Agent Memory Persistence**: Memory that survives restarts, sessions, and even model changes
Quick Start

Get up and running in under 5 minutes:
**Prerequisites:** This code requires a running MemMachine Server. 
Start a server locally or create a free account on the MemMachine Platform.

For full installation options (Docker, self-hosted, cloud), visit the
Quick Start Guide.
Integrations

MemMachine works seamlessly with your favorite AI frameworks:

<div align="center">

| Framework | Description |
|-----------|-------------|
| **LangChain** | Memory provider for LangChain agents |
| **LangGraph** | Stateful memory for LangGraph workflows |
| **CrewAI** | Persistent memory for CrewAI multi-agent systems |
| **LlamaIndex** | Memory integration for LlamaIndex applications |
| **AWS Strands** | Memory for AWS Strands Agent SDK |
| **n8n** | No-code workflow automation integration |
| **Dify** | Memory backend for Dify AI applications |
| **FastGPT** | Integration with FastGPT platform |

</div>
MCP Server Support

MemMachine includes a native **Model Context Protocol (MCP)** server for seamless integration with Claude Desktop, Cursor, and other MCP-compatible clients:

See the MCP documentation for setup instructions.
Who Is MemMachine For?
**Developers** building AI agents, assistants, or autonomous workflows
**Researchers** experimenting with agent architectures and cognitive models
**Teams** who need persistent, cross-session memory for their LLM applications
Key Features
**Multiple Memory Types**: Working (short-term), Episodic (long-term conversational), and Profile (user facts) memory
**Developer-Friendly APIs**: Python SDK, RESTful API, TypeScript SDK, and MCP server interfaces
**Flexible Storage**: Graph database (Neo4j) for episodic memory, SQL for profiles
**LLM Agnostic**: Works with OpenAI, Anthropic, Bedrock, Ollama, and any LLM provider
**Self-Hosted or Cloud**: Run locally, in Docker, or use our managed service

For more information, refer to the API Reference Guide.
Architecture

<div align="center">

!MemMachine Architecture

</div>
**Agents interact via the API Layer**: Users interact with an agent, which connects to MemMachine through a RESTful API, Python SDK, or MCP Server.
**MemMachine manages memory**: Processes interactions and stores them as Episodic Memory (conversational context) and Profile Memory (long-term user facts).
**Data is persisted**: Episodic memory is stored in a graph database; profile memory is stored in SQL.
Use Cases & Example Agents

MemMachine's versatile memory architecture can be applied across any domain. Explore our examples to see memory-powered agents in action:

| Agent | Description |
|-------|-------------|
| **CRM Agent** | Recalls client history and deal stages to help sales teams close faster |
| **Healthcare Navigator** | Remembers medical history and tracks treatment progress |
| **Personal Finance Advisor** | Stores portfolio preferences and risk tolerance for personalized insights |
| **Writing Assistant** | Learns your style guide and terminology for consistent content |
Built with MemMachine

Are you using MemMachine in your project? We'd love to feature you!
Share your project in GitHub Discussions → Showcase
Drop a message in our Discord #showcase channel
Growing Community

MemMachine is a growing community of builders and developers. Help us grow by clicking the ⭐ **Star** button above!

<img src="https://starchart.cc/MemMachine/MemMachine.svg?variant=light" alt="MemMachine Star History" height="300"/>
Documentation
**Main Website** – Learn about MemMachine
**Docs & API Reference** – Full documentation
**Quick Start Guide** – Get started in minutes
Community & Support
**Discord**: Join our community for support, updates, and discussions:
 https://discord.gg/usydANvKqD
**Issues & Feature Requests**: Use GitHub
 Issues
Contributing

We welcome contributions! Please see our CONTRIBUTING.md for guidelines.
License

MemMachine is released under the Apache 2.0 License.