Skip to content
LangChain

HTML to Image for LangChain

com.html2img/html-to-image

Render HTML and CSS to PNG images over HTTP. Send HTML and CSS and get a PNG back.

client:LangChain transport:streamable-http tools:2

Install HTML to Image in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "html-to-image": {
            "transport": "streamable_http",
            "url": "https://app.html2img.com/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

HTML to Image in other clients