This is a Monorepo containing partner packages of MongoDB and LangChainAI. It includes integrations between MongoDB, Atlas, LangChain, and LangGraph.
It contains the following packages.
Note: This repository replaces all MongoDB integrations currently present in the langchain-community package. Users are encouraged to migrate to this repository as soon as possible.
- MongoDBAtlasFullTextSearchRetriever
- MongoDBAtlasHybridSearchRetriever
- MongoDBAtlasSemanticCache
- MongoDBAtlasVectorSearch
- MongoDBCache
- MongoDBChatMessageHistory
- MongoDBAtlasParentDocumentRetriever
- MongoDBAtlasSelfQueryRetriever.
- MongoDBDatabaseToolkit
- MongoDBDatabase
- MongoDBDocStore
- MongoDBGraphStore
- MongoDBLoader
- MongoDBRecordManager
-
Checkpointing (BaseCheckpointSaver)
-
Long-term memory (BaseStore)
You can install langchain-mongodb, langgraph-checkpoint-mongodb and langgraph-store-mongodb from PyPI.
pip install langchain-mongodb langgraph-checkpoint-mongodb langgraph-store-mongodbSee langchain-mongodb usage, langgraph-checkpoint-mongodb usage and langgraph-store-mongodb usage.
For more detailed usage examples and documentation, please refer to the MongoDB LangChain documentation and the MongoDB LangGraph documentation.
API docs can be found on ReadTheDocs.
See the Contributing Guide.
This project is licensed under the MIT License.