google gmail for LangChain
io.github.magurelabs/google-gmail
List, read and send Gmail messages.
client:LangChain
transport:stdio
runtime:oci
Install google gmail in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"google-gmail": {
"transport": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "docker.io/magureai/mcp-google-gmail:2.0.0"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs