Skip to content
LangChain

PlaraMail for LangChain

io.github.johnnywon/plaramail

Self-hosted email for every address on your Cloudflare domains: read, search, label, draft and send.

client:LangChain transport:streamable-http

Install PlaraMail in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "plaramail": {
            "transport": "streamable_http",
            "url": "https://{host}/mcp",
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

PlaraMail in other clients