Skip to content
LangChain

c2n Web Components for LangChain

io.github.code2nguyen/c2n

Exact APIs, examples, theme tokens and markup validation for the c2n (c2-*) Lit web components.

client:LangChain transport:stdio runtime:npm

Install c2n Web Components in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "c2n": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@c2n/mcp"],
        }
})

tools = await client.get_tools()

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

c2n Web Components in other clients