Skip to content
LangChain

Mailbox for LangChain

io.github.psyb0t/mailbox

Self-hosted MCP server for unified IMAP/SMTP mailbox access: read, list, and send email.

client:LangChain transport:stdio runtime:oci

Install Mailbox in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "mailbox": {
            "transport": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm", "docker.io/psyb0t/mailbox:v0.4.15"],
        }
})

tools = await client.get_tools()

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

Mailbox in other clients