Render HTML and CSS to a PNG image or PDF, or screenshot a live web page by URL.
MCPpedia last refreshed this data
io.github.CloudCorpRecords/imgpage is an MCP server that render HTML and CSS to a PNG image or PDF, or screenshot a live web page by URL. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 57/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"imgpage": {
"args": [
"-y",
"@reneturcios/imgpage",
"mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Render HTML and CSS to a PNG image or PDF, or screenshot a live web page by URL.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y '@reneturcios/imgpage' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @reneturcios/imgpage against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in browser
Search, scrape, and crawl the web, plus Firecrawl Alexandria, our library of everything else.
Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡
Search-first MCP server for JavaScript reverse engineering: 736 tools across 36 domains.
Multi-engine web and platform search, news, Google Maps places, page reading, sitemaps, and trends.
MCP Security Weekly
Get CVE alerts and security updates for io.github.CloudCorpRecords/imgpage and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
imgpage is a small local bridge to the hosted html2img MCP server, which turns markup and web pages into rendered output. Give it a complete, self-contained HTML document — styles in an inline style block — and it comes back as a PNG image sized to a viewport you choose, or as an A4 vector PDF with selectable text when you ask for the pdf format. Or give it the address of a live page and it screenshots that page instead, whole page or just one element, again as PNG or PDF. Every render also returns a shareable CDN URL; PDF renders return the URL only.
This package renders nothing itself. It answers the tool list locally, exactly as captured from the live endpoint, and forwards each tool call upstream, returning whatever comes back untouched. There are two tools, and per the captured descriptions each call consumes one credit on your own html2img plan. Nothing in this package can buy credits, start a checkout, top up an account, or mint a key: it only spends against a plan you already have, through the two rendering calls below.
generate-image-from-html — render HTML and CSS
into a PNG image, or into an A4 vector PDF with
format pdf. Required: html (the full markup;
include CSS in an inline style block; publicly
accessible remote image URLs work, and images that
are not hosted anywhere should be embedded as base64
data URIs). Optional: css, width (1-5000,
default 1920), height (1-5000, default 1080),
fullpage, dpi (1-4), ms_delay (1-5000),
wait_for_selector, and format (png or pdf;
with pdf, width, height, dpi and fullpage are
ignored). Returns the rendered image plus a
shareable CDN URL; PDF renders return the URL only.
Consumes one credit per call.screenshot-url — capture a live web page by URL
as a PNG screenshot, or as an A4 vector PDF with
format pdf. Required: url (the fully-qualified
URL of the page). Optional: css, width (1-5000,
default 1920), height (1-5000, default 1080),
fullpage, selector (capture only the matching
element), dpi (1-4), ms_delay (1-5000),
wait_for_selector, and format (png or pdf;
with pdf, width, height, dpi, fullpage and
selector are ignored). Returns the rendered image
plus a shareable CDN URL; PDF renders return the
URL only. Consumes one credit per call.HTML2IMG_MCP_URL (optional) — override the
upstream endpoint. Defaults to
https://app.html2img.com/mcp. (The override hook
is this rebuild's own labelled reconstruction.)HTML2IMG_API_KEY (optional) — when set, every
upstream request carries an
Authorization: Bearer <key> header, for the
caller's own html2img API key. When it is not set,
no key header is sent. (The header name and Bearer
form are pinned by the original's registry record,
which declares a required secret Authorization
header; the record pins no package env name, so
forwarding the key from this env var is a labelled
reconstruction — the original surface was captured
keyless.)On the first tool call the client opens a streamable
HTTP session upstream: a JSON-RPC initialize
request (protocolVersion 2025-03-26, clientInfo
name imgpage), then a
notifications/initialized notification, then the
tools/call request carrying the caller's arguments
unchanged. When the upstream answers initialize
with an Mcp-Session-Id header, that value rides on
every later request of the session, which is reused
for the life of the process. Replies may arrive as
plain JSON or as server-sent events; both are read.
Successful upstream results pass through verbatim,
including any isError flag the upstream sets.
Failures — a JSON-RPC error, a non-2xx status, an
unreadable response, or a request that cannot be
completed — come back as an isError result whose
text starts with imgpage error: (this rendering is
this rebuild's own labelled reconstruction).
Each tool is