HTML to Image is an MCP server published by com.html2img, hosted at app.html2img.com. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 2 tools, including generate-image-from-html, screenshot-url.
Render HTML and CSS to PNG images over HTTP. Send HTML and CSS and get a PNG back.
Nothing else in the archive shares these values.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Render HTML and CSS into a PNG image, or into an A4 vector PDF with format "pdf". Provide complete, self-contained HTML and put styles in an inline <style> block. Remote image URLs load if they are real and publicly accessible; embed generated or local images as base64 data URIs rather than inventing URLs. Returns the rendered image plus a shareable CDN URL; PDF renders return the URL only. Consumes one credit per call.
| Parameter | Type | Description |
|---|---|---|
| css | string | Optional additional CSS to inject into the page. |
| dpi | integer | Scale factor / device pixel ratio (1-4) for higher-resolution output. |
| html * | string | 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 | Viewport width in pixels (1-5000). Defaults to 1920. |
| format | string | 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 … |
| height | integer | Viewport height in pixels (1-5000). Defaults to 1080. |
| fullpage | boolean | Capture the full scrollable page instead of just the viewport. |
| ms_delay | integer | Milliseconds to wait before capturing (1-5000), e.g. to let fonts or animations settle. |
| wait_for_selector | string | Wait until this CSS selector is present before capturing. |
{
"name": "generate-image-from-html",
"description": "Render HTML and CSS into a PNG image, or into an A4 vector PDF with format \"pdf\". Provide complete, self-contained HTML and put styles in an inline <style> block. Remote image URLs load if they are real and publicly accessible; embed generated or local images as base64 data URIs rather than inventing URLs. Returns the rendered image plus a shareable CDN URL; PDF renders return the URL only. Consumes one credit per call.",
"inputSchema": {
"type": "object",
"required": [
"html"
],
"properties": {
"css": {
"type": "string",
"description": "Optional additional CSS to inject into the page."
},
"dpi": {
"type": "integer",
"description": "Scale factor / device pixel ratio (1-4) for higher-resolution output."
},
"html": {
"type": "string",
"description": "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": {
"type": "integer",
"description": "Viewport width in pixels (1-5000). Defaults to 1920."
},
"format": {
"enum": [
"png",
"pdf"
],
"type": "string",
"description": "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."
},
"height": {
"type": "integer",
"description": "Viewport height in pixels (1-5000). Defaults to 1080."
},
"fullpage": {
"type": "boolean",
"description": "Capture the full scrollable page instead of just the viewport."
},
"ms_delay": {
"type": "integer",
"description": "Milliseconds to wait before capturing (1-5000), e.g. to let fonts or animations settle."
},
"wait_for_selector": {
"type": "string",
"description": "Wait until this CSS selector is present before capturing."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"url",
"format",
"credits_remaining"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Shareable CDN URL of the rendered file, at full resolution."
},
"format": {
"enum": [
"png",
"pdf"
],
"type": "string",
"description": "The output format that was rendered."
},
"credits_remaining": {
"type": "integer",
"description": "Credits left on the plan after this render."
}
}
},
"annotations": {
"title": "Generate Image from HTML"
}
}Capture a live web page by URL as a PNG screenshot, or as an A4 vector PDF with format "pdf". Returns the rendered image plus a shareable CDN URL; PDF renders return the URL only. Consumes one credit per call.
| Parameter | Type | Description |
|---|---|---|
| css | string | Optional CSS to inject into the page before capture. |
| dpi | integer | Scale factor / device pixel ratio (1-4) for higher-resolution output. |
| url * | string | The fully-qualified URL of the page to capture (https://...). |
| width | integer | Viewport width in pixels (1-5000). Defaults to 1920. |
| format | string | Output format. "png" (default) returns an image sized by width and height. "pdf" returns the page as an A4 portrait vector PDF with selectable, searchable text and automatic pagination; width, height, dpi, fullpage and selector are ignored. Use "pdf" to archive a page or produce a printable record. … |
| height | integer | Viewport height in pixels (1-5000). Defaults to 1080. |
| fullpage | boolean | Capture the full scrollable page instead of just the viewport. |
| ms_delay | integer | Milliseconds to wait before capturing (1-5000). |
| selector | string | Capture only the element matching this CSS selector. |
HTML to Image turns HTML and CSS into PNG images or A4 vector PDFs. Guidelines for writing HTML that renders correctly: - Send complete, self-contained HTML. Put styles in an inline <style> block (or the optional css argument). - The renderer does NOT load remote images. Embed every image as a base64 data URI (data:image/png;base64,...). Remote <img src="https://..."> tags are skipped. - Use the width/height arguments to control the canvas; use fullpage to capture tall content. - Set format to "pdf" for documents such as invoices, reports, certificates and tickets. PDF output is A4 portrait, paginates long content automatically and keeps text selectable; width, height, dpi, fullpage and selector are ignored. Each successful generation consumes one credit from the user's plan. After generating a PNG, you receive a shareable CDN URL (full resolution) plus a downscaled preview of the image so you can review the result and refine the markup. PDF renders return the URL only, with no inline preview.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| wait_for_selector |
| string |
| Wait until this CSS selector is present before capturing. |
{
"name": "screenshot-url",
"description": "Capture a live web page by URL as a PNG screenshot, or as an A4 vector PDF with format \"pdf\". Returns the rendered image plus a shareable CDN URL; PDF renders return the URL only. Consumes one credit per call.",
"inputSchema": {
"type": "object",
"required": [
"url"
],
"properties": {
"css": {
"type": "string",
"description": "Optional CSS to inject into the page before capture."
},
"dpi": {
"type": "integer",
"description": "Scale factor / device pixel ratio (1-4) for higher-resolution output."
},
"url": {
"type": "string",
"description": "The fully-qualified URL of the page to capture (https://...)."
},
"width": {
"type": "integer",
"description": "Viewport width in pixels (1-5000). Defaults to 1920."
},
"format": {
"enum": [
"png",
"pdf"
],
"type": "string",
"description": "Output format. \"png\" (default) returns an image sized by width and height. \"pdf\" returns the page as an A4 portrait vector PDF with selectable, searchable text and automatic pagination; width, height, dpi, fullpage and selector are ignored. Use \"pdf\" to archive a page or produce a printable record. Use \"png\" for anything displayed at fixed pixel dimensions."
},
"height": {
"type": "integer",
"description": "Viewport height in pixels (1-5000). Defaults to 1080."
},
"fullpage": {
"type": "boolean",
"description": "Capture the full scrollable page instead of just the viewport."
},
"ms_delay": {
"type": "integer",
"description": "Milliseconds to wait before capturing (1-5000)."
},
"selector": {
"type": "string",
"description": "Capture only the element matching this CSS selector."
},
"wait_for_selector": {
"type": "string",
"description": "Wait until this CSS selector is present before capturing."
}
}
},
"outputSchema": {
"type": "object",
"required": [
"url",
"format",
"credits_remaining"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Shareable CDN URL of the rendered file, at full resolution."
},
"format": {
"enum": [
"png",
"pdf"
],
"type": "string",
"description": "The output format that was rendered."
},
"credits_remaining": {
"type": "integer",
"description": "Credits left on the plan after this render."
}
}
},
"annotations": {
"title": "Screenshot a URL"
}
}