About HTML to Image
Render HTML and CSS to PNG images over HTTP. Send HTML and CSS and get a PNG back
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://app.html2img.com/mcpclaude mcp add --transport http com-html2img-html-to-image https://app.html2img.com/mcp{"mcpServers":{"com-html2img-html-to-image":{"type":"http","url":"https://app.html2img.com/mcp"}}}Open in Cursor{"servers":{"com-html2img-html-to-image":{"type":"http","url":"https://app.html2img.com/mcp"}}}Open in VS Code{"mcpServers":{"com-html2img-html-to-image":{"type":"http","url":"https://app.html2img.com/mcp"}}}{"mcpServers":{"com-html2img-html-to-image":{"serverUrl":"https://app.html2img.com/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://app.html2img.com/mcpAuth requiredTools
2| Parameter | Type | Required | Description |
|---|---|---|---|
| css | string | No | Optional additional CSS to inject into the page. |
| dpi | integer | No | Scale factor / device pixel ratio (1-4) for higher-resolution output. |
| html | string | Yes | The full HTML markup to render. Include CSS in an inline <style> block. Publicly accessible remote image URLs work; use base64 data URIs for images that are not hosted anywhere. |
| width | integer | No | Viewport width in pixels (1-5000). Defaults to 1920. |
| format | enum | No | Output format. "png" (default) returns an image sized by width and height. "pdf" returns an A4 portrait vector PDF with selectable, searchable text and automatic pagination; width, height, dpi and fullpage are ignored. Use "pdf" for documents such as invoices, reports, certificates and tickets. Use "png" for social cards, OG images and anything displayed at fixed pixel dimensions.png | pdf |
| height | integer | No | Viewport height in pixels (1-5000). Defaults to 1080. |
| fullpage | boolean | No | Capture the full scrollable page instead of just the viewport. |
| ms_delay | integer | No | Milliseconds to wait before capturing (1-5000), e.g. to let fonts or animations settle. |
| wait_for_selector | string | No | Wait until this CSS selector is present before capturing. |
Details
The maintainer has not added details yet. Check the README in the repository.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.