skillfed

agent-framework-mem0

Mem0 integration for Microsoft Agent Framework.

agent-framework-mem0 v1.0.0b260813 569.0K downloads/30d#5,963 on PyPI12,804
Permissive license Active released

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-mem0

uv

uv add agent-framework-mem0

poetry

poetry add agent-framework-mem0

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed

Tags

agent memory persistencemem0 integrationagent framework context providerpersistent conversation memoryuser preference memory for agentsmulti-session agent memoryagent framework mem0
agent-frameworkmemory-persistencemem0-integration

More Application Frameworks packages

Further reading