Skip to content
LangChain

Outlook Mail for LangChain

io.github.pepebits/outlook-mcp

Read, search, send and clean up Outlook.com / Hotmail mail through Microsoft Graph.

client:LangChain transport:stdio runtime:npm

Install Outlook Mail in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "outlook-mcp": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@pepebits/outlook-mcp"],
        }
})

tools = await client.get_tools()

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

Outlook Mail in other clients