HTML to Image

com.html2imgPublished by html2img.comOfficial publisherv1.0.0Updated Oct 24, 2026

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

VerifiedStreamable HTTPWeb executableBrowser AutomationMedia & Design

Overview

AI-generated overview

Remote MCP server that renders HTML/CSS into PNG images or A4 PDFs and screenshots live web pages by URL.

What you can do
Render complete, self-contained HTML and CSS into a PNG image or an A4 vector PDF, with styles placed in an inline style block and images embedded as base64 data URIs or public URLs. Capture a live web page by URL as a PNG screenshot or A4 PDF, returning the image plus a shareable CDN URL; PDF renders return only the URL.
When to use it
Useful when an assistant needs to turn generated HTML, reports, cards or page layouts into shareable images or PDFs, or to grab a screenshot of a live page without running a local browser.
Requirements
Remote endpoint at app.html2img.com over streamable HTTP. Requires an html2img.com API key sent as a bearer token in the Authorization header, created in the html2img.com dashboard. Network access is needed.
Before you install
The API key is a secret passed in the Authorization header. Each screenshot-url call consumes one credit, so usage may cost money. HTML and URLs you submit are sent to a third-party rendering service, and returned images are hosted on a shareable CDN URL.

Installation

In SourceWeft

  1. Open HTML to Image in the dashboard and add it to a workspace.
  2. Connect Authorization token credentials. They are stored privately and never shown on public pages.
  3. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/com.html2img%2Fhtml-to-image/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "html-to-image": {
      "type": "http",
      "url": "https://app.html2img.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

Tools

2

generate-image-from-html

Generate Image from HTML

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.

Parameterscssdpihtmlrequiredwidthformatheightfullpagems_delaywait_for_selector

screenshot-url

Screenshot a URL

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.

Parameterscssdpiurlrequiredwidthformatheightfullpagems_delayselectorwait_for_selector

Version history

1
  1. v1.0.0LatestSep 16, 2026

Score

83% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts

    Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.

  • LicenseNot applicable

    A hosted service is used under its provider's terms, so no license is expected here. This check is left out of the percentage.