mentedb-crewai
MenteDB integration for CrewAI and AutoGen. Gives your multi agent teams persistent, cognitive memory that survives across sessions and tracks reasoning quality over time.
Installation
pip install mentedb-crewai
Components
MenteDBCrewMemory
A memory backend for CrewAI agents that stores and retrieves memories through MenteDB. Each agent can have its own memory space, or agents on the same team can share a common space for collaborative recall.
from crewai import Agent, Crew, Task
from mentedb_crewai import MenteDBCrewMemory
memory = MenteDBCrewMemory(
data_dir="./crew-memory",
space="research-team",
)
researcher = Agent(
role="Senior Researcher",
goal="Find comprehensive information on the topic",
memory=memory,
)
writer = Agent(
role="Technical Writer",
goal="Write clear documentation from research",
memory=MenteDBCrewMemory(
data_dir="./crew-memory",
space="research-team",
agent_name="writer",
),
)
task = Task(
description="Research and document the latest trends in vector databases",
agent=researcher,
)
crew = Crew(agents=[researcher, writer], tasks=[task])
crew.kickoff()
Memory is stored persistently, so the next time the crew runs it can recall findings from previous sessions.
MenteDBTool
A tool that lets agents query MenteDB directly using MQL (Mente Query Language). Attach it to any agent so the agent can search and retrieve from the team's knowledge base during task execution.
from crewai import Agent
from mentedb_crewai import MenteDBTool
memory_tool = MenteDBTool(data_dir="./crew-memory")
agent = Agent(
role="Analyst",
goal="Analyze data using historical context",
tools=[memory_tool],
)
The agent can then invoke the tool during its reasoning to recall past decisions, find related context, or check what the team already knows about a topic.
Usage with AutoGen
MenteDB works with AutoGen agents through the same memory and tool interfaces. Use MenteDBCrewMemory to give AutoGen agents persistent memory, or MenteDBTool to let them query the knowledge base.
from mentedb_crewai import MenteDBCrewMemory, MenteDBTool
memory = MenteDBCrewMemory(data_dir="./autogen-memory", space="dev-team")
tool = MenteDBTool(data_dir="./autogen-memory")
# Store context from agent work
memory.store("The team decided to use PostgreSQL for the main database.")
# Search for relevant memories
results = memory.search("database decision", k=5)
# Get assembled context within a token budget
context = memory.get_context("Plan the database migration", token_budget=2000)
Configuration
| Parameter | Default | Description |
|---|---|---|
data_dir |
./mentedb-data |
Path to the MenteDB data directory |
space |
default |
Memory space name for agent isolation or sharing |
agent_name |
None |
Optional agent name for per agent memory scoping |
License
Apache 2.0
Metadata
Release files for mentedb-crewai 0.39.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mentedb_crewai-0.39.0.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mentedb_crewai-0.39.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / mentedb_crewai-0.39.0.tar.gz
| Download URL | mentedb_crewai-0.39.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ac391bdc19fed8fd580de87253359d86c217c63ed77d3a1a12f857f302a2249
|
|
BLAKE2b-256 checksum How to use checksums |
02d1ce876c749572eb19c6a6326f3dff621e8f4b2a8fc4da3245462f20116cc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / mentedb_crewai-0.39.0-py3-none-any.whl
| Download URL | mentedb_crewai-0.39.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b25fe630c25292b97e7c5122fbf0b4980150eb91fd7b452e433cca5412e80cd
|
|
BLAKE2b-256 checksum How to use checksums |
b2685ba4b08f55ecca3e7e3360ef326aada960fb4c0a23ed378cbc9704a27b1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency log