agent-framework-mem0
Mem0 integration for Microsoft Agent Framework.
What it is and what it does
This package bridges Mem0's persistent memory service into Microsoft Agent Framework, allowing agents to maintain state across conversations. It provides a context provider that stores and retrieves memories scoped by application, agent, and user identifiers, enabling agents to learn and recall user preferences and conversation history across different sessions and threads.
The package is a thin integration layer built on top of agent-framework-core and mem0ai. It handles memory scoping (separating write scope from retrieval scope) and offers configuration for both Platform and open-source Mem0 clients. Telemetry is disabled by default but can be enabled via environment variable before import.
Use it for:
- Build a customer support agent that remembers each user's past issues and preferences across multiple conversations.
- Create a personal assistant agent that learns and recalls user habits, preferences, and context over weeks or months.
- Develop multi-turn conversational agents where context from earlier threads informs responses in new sessions.
- Implement per-user or per-agent memory isolation in a multi-tenant agent deployment.
- Prototype agent memory features quickly using the Mem0 service without building custom persistence logic.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates Mem0 persistent memory into Microsoft Agent Framework agents, enabling agents to remember user preferences and conversation context across sessions and threads.
Yes, if you are building agents with Microsoft Agent Framework and need persistent memory across sessions. The package is actively maintained, has low install friction, carries a permissive MIT license, and integrates cleanly with agent-framework-core and mem0ai. Beta status is appropriate for a fresh integration; monitor for API changes as it stabilizes.
Install
agent-framework-mem0 on PyPI
pip
pip install agent-framework-mem0uv
uv add agent-framework-mem0poetry
poetry add agent-framework-mem0Installing agent-framework-mem0
Before you install
Fresh release (0 days old) from an active Microsoft repository with 12804 stars. Low install friction with only two runtime dependencies. Beta status (Development Status :: 4) signals the package is still stabilizing.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package with minimal restrictions, provided you include the license notice.
Quickstart
pip install agent-framework-mem0 --pre
from agent_framework.mem0 import Mem0ContextProvider
provider = Mem0ContextProvider(
api_key="your-key",
user_id="user-id",
search_user_id="user-id",
)
Requires Python >= 3.10. Mem0 API key required to use the provider. Retrieval scope must be explicitly set (search_user_id, search_agent_id, or search_application_id) or no memories will be retrieved.
Verify before relying
- Whether the Platform client (AsyncMemoryClient) is required for application_id scoping, or if OSS AsyncMemory client suffices for typical use cases.
- Performance characteristics and memory storage limits when operating at scale across many users or agents.
- Whether telemetry can be re-enabled after import or only before importing the module.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — agent-framework-core, mem0ai |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 568,979/month — #5,963 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: agent_framework_mem0-1.0.0b260813-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
agent-framework-azure-aiIntegrates Azure AI Foundry memory capabilities…
permissive · top 15,000 on PyPI
agent-framework-redisAdds Redis-backed persistent memory and…
permissive · top 15,000 on PyPI
hindsight-api-slimHindsight-api-slim provides a persistent memory…
permissive · top 15,000 on PyPI
mem0aiMem0 adds a persistent, searchable memory layer…
permissive · top 5,000 on PyPI
memoriMemori is a Python SDK that automatically…
permissive · top 15,000 on PyPI
langmemLangMem provides memory management tools for…
permissive · top 15,000 on PyPI
memsearchMemsearch builds a searchable semantic memory…
permissive · top 15,000 on PyPI
mindroomMindRoom is a multi-agent runtime that deploys…
permissive · top 15,000 on PyPI
agent-framework-azurefunctionsHosts Microsoft Agent Framework agents on Azure…
permissive · top 15,000 on PyPI
microsoft-agents-a365-runtimeProvides core runtime utilities, environment…
permissive · top 15,000 on PyPI