Skip to content
LangChain

Google Workspace for LangChain

io.github.aaronsb/google-workspace

Give AI agents access to Gmail, Calendar, Drive, and more — multi-account, manifest-driven

client:LangChain transport:stdio runtime:npm

Install Google Workspace in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

Google Workspace in other clients