Server data from the Official MCP Registry
Render HTML and CSS to a PNG image or PDF, or screenshot a live web page by URL.
About
Render HTML and CSS to a PNG image or PDF, or screenshot a live web page by URL.
Security Report
imgpage is a transparent forwarding client for the hosted html2img MCP service: tools/list is served from captured literal definitions and tools/call is forwarded upstream with arguments and results passed through unchanged. The API key is read from an environment variable and sent only as a Bearer header to the configured endpoint, with no hardcoded secrets or local shell/eval execution found. Remaining concerns are minor: the endpoint can be overridden via HTML2IMG_MCP_URL (so a misconfigured override could send the bearer key to another host), user-supplied HTML/URLs are forwarded to a third party by design, and the test file was truncated so its contents could not be fully reviewed. Supply chain analysis found 3 known vulnerabilities in dependencies (0 critical, 2 high severity). Package verification found 1 issue.
8 files analyzed · 7 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"imgpage": {
"command": "npx",
"args": [
"-y",
"@reneturcios/imgpage@0.1.0"
]
}
}
}Some servers take additional arguments. See the repository for details.
Documentation
View on GitHubFrom the project's GitHub README.
imgpage
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.
Tools
generate-image-from-html— render HTML and CSS into a PNG image, or into an A4 vector PDF with formatpdf. 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, andformat(pngorpdf; withpdf, 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 formatpdf. 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, andformat(pngorpdf; withpdf, 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.
Configuration
HTML2IMG_MCP_URL(optional) — override the upstream endpoint. Defaults tohttps://app.html2img.com/mcp. (The override hook is this rebuild's own labelled reconstruction.)HTML2IMG_API_KEY(optional) — when set, every upstream request carries anAuthorization: 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 secretAuthorizationheader; 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.)
Forwarding mechanics
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).
CLI
Each tool is also a subcommand taking one JSON argument string:
npx @reneturcios/imgpage generate-image-from-html '{"html":"<h1>Hello</h1>"}'
npx @reneturcios/imgpage screenshot-url '{"url":"https://example.com"}'
npx @reneturcios/imgpage --version
Exit codes: 0 on success, 1 on an isError
result, 2 on a usage error.
MCP server
npx -y @reneturcios/imgpage mcp
MCP client config:
{
"mcpServers": {
"imgpage": {
"command": "npx",
"args": ["-y", "@reneturcios/imgpage", "mcp"]
}
}
}
Docker
docker run -i ghcr.io/cloudcorprecords/imgpage
docker run --rm ghcr.io/cloudcorprecords/imgpage --version
The container's default command is mcp, so the first
form is a stdio MCP server; any other arguments reach
the CLI normally.
Development
npm install
npm run build
npm test
npm run dev
The test suite runs entirely against a stubbed JSON-RPC upstream — no live network calls.
License
MIT — see LICENSE.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
mcp-creator-python
Freeby mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
