langchain-agentmail package wraps the AgentMail SDK as LangChain tools, plus a document loader and a retriever over an inbox.
Installation and setup
Tools
See the AgentMail Toolkit guide for details on the available tools, including sending and replying to messages, managing drafts, attachments, and labels.Document loader
See the AgentMail Document Loader guide for loading messages from an inbox as LangChainDocuments—useful for indexing into a vector store for RAG over email.
Retriever
See the AgentMail Retriever guide for keyword search over an inbox.Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

