Skip to content
LangChain

petal components mcp for LangChain

io.github.petalframework/petal-components-mcp

Phoenix LiveView component schemas from petal_components, exposed to AI coding assistants.

client:LangChain transport:streamable-http runtime:npm tools:3

Install petal components mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "petal-components-mcp": {
            "transport": "streamable_http",
            "url": "https://mcp.petal.build/mcp",
        }
})

tools = await client.get_tools()

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

What LangChain can do once it is connected

petal components mcp in other clients