cloudmail for LangChain
io.github.cloudmail-hq/cloudmail
Read, search, draft and send mail in your self-hosted cloudmail deployment, with held-send approval.
client:LangChain
transport:streamable-http
Install cloudmail in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"cloudmail": {
"transport": "streamable_http",
"url": "https://{domain}/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs