Skip to content
LangChain

HTML/CSS to Image API for LangChain

io.github.htmlcsstoimage/html-css-to-image

Generate images and PDFs from HTML/CSS, live websites, and reusable templates.

client:LangChain transport:streamable-http

Install HTML/CSS to Image API in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "html-css-to-image": {
            "transport": "streamable_http",
            "url": "https://mcp.hcti.io",
        }
})

tools = await client.get_tools()

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

HTML/CSS to Image API in other clients