MemMachine AI Agent

by MemMachine• 3.1k•• Scanned•Claim this listing•Request removal
Database Managementagentagentic aiagentsagents sdkai

Universal memory layer for AI Agents. It provides scalable, extensible, and interoperable memory storage and retrieval to streamline AI agent state management for next-generation autonomous systems.

MemMachine is an open-source ai agent by MemMachine, written mainly in Python, with 3,080 GitHub stars and the Apache-2.0 license. Its code was last updated Oct 30, 2026. The latest PyPI release is memmachine-client 0.4.0, published Oct 8, 2026, with 428 downloads last week.

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.

pip install memmachine-client
from memmachine_client import import MemMachineClient

# Initialize the client
client = MemMachineClient(base_url="http://localhost:8080")

# Get or create a project
project = client.get_or_create_project(org_id="my_org", project_id="my_project")

# Create a memory instance for a user session
memory = project.memory(
    group_id="default",
    agent_id="travel_agent",
    user_id="alice",
    session_id="session_001"
)

# Add a memory
memory.add("I prefer aisle seats on flights", metadata={"category": "travel"})
# => [AddMemoryResult(uid='...')]

# Search memories
results = memory.search("What are my flight preferences?")
print(results.content.episodic_memory.long_term_memory.episodes[0].content)
# => "I prefer aisle seats on flights"

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">
FrameworkDescription
LangChainMemory provider for LangChain agents
LangGraphStateful memory for LangGraph workflows
CrewAIPersistent memory for CrewAI multi-agent systems
LlamaIndexMemory integration for LlamaIndex applications
AWS StrandsMemory for AWS Strands Agent SDK
n8nNo-code workflow automation integration
DifyMemory backend for Dify AI applications
FastGPTIntegration 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:

# Stdio mode (for Claude Desktop)
memmachine-mcp-stdio

# HTTP mode (for web clients)
memmachine-mcp-http

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>
  1. Agents interact via the API Layer: Users interact with an agent, which connects to MemMachine through a RESTful API, Python SDK, or MCP Server.
  2. MemMachine manages memory: Processes interactions and stores them as Episodic Memory (conversational context) and Profile Memory (long-term user facts).
  3. 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:

AgentDescription
CRM AgentRecalls client history and deal stages to help sales teams close faster
Healthcare NavigatorRemembers medical history and tracks treatment progress
Personal Finance AdvisorStores portfolio preferences and risk tolerance for personalized insights
Writing AssistantLearns your style guide and terminology for consistent content

Built with MemMachine

Are you using MemMachine in your project? We'd love to feature you!

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

Community & Support

Contributing

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

References

@misc{luo2025agentlightningtrainai,
  title={Agent Lightning: Train ANY AI Agents with Reinforcement Learning},
  author={Xufang Luo and Yuge Zhang and Zhiyuan He and Zilong Wang and Siyun Zhao and Dongsheng Li and Luna K. Qiu and Yuqing Yang},
  year={2025},
  eprint={2508.03680},
  archivePrefix={arXiv},
  primaryClass={cs.AI},
  url={https://arxiv.org/abs/2508.03680},
}

License

MemMachine is released under the Apache 2.0 License.

MemMachine alternatives

View more →

Similar ai agents in Database Management, ranked by GitHub stars. Compare licence, recent activity and scan status before you choose.

NameStarsLicenceLast updatedScan
MemMachine (this page)
MemMachine
3.1kApache-2.0Oct 30, 2026Scanned, no flagged issues
Graphify
Graphify-Labs
140kApache-2.0Nov 1, 2026Scanned, no flagged issues
Claude Mem
thedotmack
108kApache-2.0Nov 1, 2026Scanned, no flagged issues
Mem0
mem0ai
68kApache-2.0Oct 30, 2026Scanned, no flagged issues
Hindsight
vectorize-io
57kMITNov 1, 2026Scanned, no flagged issues
Dokploy
Dokploy
38kNone foundOct 31, 2026Not scanned yet