Skip to content
LangChain

kapso whatsapp for LangChain

io.github.magurelabs/kapso-whatsapp

Send WhatsApp text, media and template messages, and read conversations.

client:LangChain transport:stdio runtime:oci

Install kapso whatsapp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "kapso-whatsapp": {
            "transport": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm", "docker.io/magureai/mcp-kapso-whatsapp:2.0.0"],
        }
})

tools = await client.get_tools()

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

kapso whatsapp in other clients