Setup
Installation
Credentials
Set your Atlas connection string:Usage
Create aMongoClient, construct MongoDBSaver, and call setup() once so indexes exist. There is no MongoDBSaver.fromConnString helper.
Next steps
- Customize agent state, trim or summarize history, and access memory from tools in the short-term memory guide. Pass the same
MongoDBSaverascheckpointer. - For cross-thread persistence, see long-term memory with MongoDB Atlas.
- See the checkpointer libraries list for other backends.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

