mcpField
H

HTML to Image

Remote
html2img.comMedia & Design

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.

Endpointhttps://app.html2img.com/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

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.

All endpoints
Streamable HTTPhttps://app.html2img.com/mcpAuth required

Tools

2
ParameterTypeRequiredDescription
cssstringNoOptional additional CSS to inject into the page.
dpiintegerNoScale factor / device pixel ratio (1-4) for higher-resolution output.
htmlstringYesThe 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.
widthintegerNoViewport width in pixels (1-5000). Defaults to 1920.
formatenumNoOutput 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
heightintegerNoViewport height in pixels (1-5000). Defaults to 1080.
fullpagebooleanNoCapture the full scrollable page instead of just the viewport.
ms_delayintegerNoMilliseconds to wait before capturing (1-5000), e.g. to let fonts or animations settle.
wait_for_selectorstringNoWait until this CSS selector is present before capturing.

Details

The maintainer has not added details yet. Check the README in the repository.

Comments

Markdown supported

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.