Skip to content
LangChain

Rafi for LangChain

io.github.heyrafi/rafi-mcp

Manage authorized Rafi leads, reminders, DNC status, and AI voice playbooks.

client:LangChain transport:streamable-http

Install Rafi in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "rafi-mcp": {
            "transport": "streamable_http",
            "url": "https://nest-app-775685078591.us-east1.run.app/api/mcp",
        }
})

tools = await client.get_tools()

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

Rafi in other clients