Skip to content
LangChain

fal.ai for LangChain

io.github.fal-ai-community/mcp

Generate and edit images, video, audio and 3D with fal. Discover models and check prices.

client:LangChain transport:streamable-http

Install fal.ai in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "mcp": {
            "transport": "streamable_http",
            "url": "https://mcp.fal.ai/mcp-relay",
        }
})

tools = await client.get_tools()

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

fal.ai in other clients