render-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@render-mcp take a screenshot of https://example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
render-mcp
A Model Context Protocol server that renders PDFs, HTML, URLs, and images as screenshots. Purpose-built for giving AI coding assistants visual feedback on rendered artifacts.
Features
Warm browser singleton -- Playwright Chromium stays running between requests, eliminating cold-start latency
Native PDF rendering -- Uses
pdftoppm(poppler) for fast, accurate PDF rasterization (~100ms per page, no browser)Image passthrough -- Direct file read for PNG, JPEG, GIF, WebP
JPEG screenshots -- Browser screenshots use JPEG quality 80 for 5-10x smaller output vs PNG (same token cost)
API-safe output -- 3.5 MB output guard ensures base64 stays under the Anthropic API's 5 MB image limit
Per-request isolation -- Each browser render gets a fresh
BrowserContext, closed infinallySingle round-trip -- One tool call returns the image directly in context
Related MCP server: Luma MCP
Tools
Tool | Description | Browser? | Format |
| Render a PDF page as PNG | No | PNG |
| Render HTML string or file as JPEG | Yes | JPEG |
| Navigate to URL and screenshot | Yes | JPEG |
| Read image file as base64 | No | Native |
Installation
Prerequisites
Node.js >= 20
pdftoppm(poppler-utils) for PDF rendering
# macOS
brew install poppler
# Ubuntu/Debian
sudo apt-get install poppler-utilsFrom source
git clone https://github.com/LarsenClose/render-mcp.git
cd render-mcp
pnpm install
pnpm exec playwright install chromium
pnpm buildClaude Code
Add to your Claude Code MCP configuration:
claude mcp add --scope user --transport stdio render node /path/to/render-mcp/dist/index.jsOr manually add to ~/.claude.json:
{
"mcpServers": {
"render": {
"type": "stdio",
"command": "node",
"args": ["/path/to/render-mcp/dist/index.js"]
}
}
}After restarting Claude Code, the tools are available as mcp__render__render_pdf, mcp__render__render_html, mcp__render__render_url, and mcp__render__render_image.
Tool Reference
render_pdf
Render a PDF page as a PNG image using pdftoppm.
Parameter | Type | Default | Description |
|
| required | Absolute path to the PDF file |
|
|
| Page number (1-indexed) |
|
|
| Resolution (72-600) |
render_html
Render HTML content or an HTML file as a PNG screenshot.
Parameter | Type | Default | Description |
|
| -- | HTML string to render |
|
| -- | Absolute path to HTML file |
|
|
| Viewport width in pixels |
|
|
| Viewport height in pixels |
|
|
| Capture full scrollable page |
Exactly one of html or path must be provided.
render_url
Navigate to a URL and return a PNG screenshot.
Parameter | Type | Default | Description |
|
| required | URL to navigate to |
|
|
| Viewport width in pixels |
|
|
| Viewport height in pixels |
|
|
| Capture full scrollable page |
|
|
| Navigation event: |
render_image
Read an image file and return it as base64.
Parameter | Type | Default | Description |
|
| required | Absolute path to image file |
Supports: PNG, JPEG, GIF, WebP. SVG is not supported by the Anthropic API as an image block -- use render_html to rasterize SVGs.
Architecture
render-mcp (stdio transport)
|-- Warm Playwright Chromium (lazy singleton, auto-reconnect)
|-- PDF rendering via pdftoppm (no browser, ~100ms/page)
|-- Image passthrough (direct fs.readFile + base64)
'-- 3.5 MB output guard (keeps base64 under Anthropic's 5 MB API limit)Key design decisions:
chromium.launch()singleton (notlaunchPersistentContext) supports multiple isolated contextsNew
BrowserContextper request, closed infinallyfor full isolationDependency injection for handlers enables unit testing with mocks
pdftoppmfor PDF over browser-based rendering for speed and accuracy
Development
pnpm install
pnpm exec playwright install chromium
pnpm test # Run all tests
pnpm test:unit # Unit tests only
pnpm test:integration # Integration tests (InMemoryTransport)
pnpm test:e2e # E2E tests (stdio subprocess)
pnpm test:coverage # Tests with coverage report
pnpm typecheck # TypeScript type checking
pnpm lint # ESLint
pnpm format:check # Prettier
pnpm build # Compile to dist/License
Available Tools
6 toolsrender_htmlBRead-only
Render HTML content or an HTML file as a PNG screenshot using a headless browser.
Inputs: html, path, width, height, +1 more.
render_imageBRead-only
Read an image file and return it as base64. Supports PNG, JPEG, GIF, WebP, SVG.
Inputs: path (required).
render_pdfBRead-only
Render a PDF page as a PNG image using pdftoppm. No browser needed.
Inputs: path (required), dpi, page.
render_pdf_smartARead-only
Smart PDF rendering: extracts text from prose pages and renders only pages with figures/diagrams as images. Far more token-efficient than rendering every page. Returns interleaved text and image content blocks.
Inputs: path (required), dpi, mode, pages.
render_svgARead-only
Render an SVG string or file as a PNG image using resvg. No browser needed.
Inputs: svg, path, width, height.
render_urlBRead-only
Navigate to a URL and return a PNG screenshot.
Inputs: url (required), width, height, fullPage, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct input type (image, PDF, HTML, URL, SVG) with clear boundaries; the only overlap is render_pdf vs render_pdf_smart, which is explicitly differentiated as a token-efficient variant. render_image vs render_svg could be confused when the input is an SVG file, but descriptions clarify the output difference (base64 vs PNG).
All tools follow a strict render_<noun> pattern in snake_case, with render_pdf_smart being the only qualifier suffix but still within the same convention. Predictable and readable throughout.
Six tools is well-scoped for a rendering server, with each tool covering a distinct input format and no filler. Nothing feels thin or bloated.
The surface covers the common render inputs (URL, HTML, PDF, SVG, image file) plus a smart PDF mode, forming a coherent lifecycle. Minor gaps exist around output format/size options or writing rendered output to disk, but agents can work around these.
Maintenance
Related MCP Connectors
Generate images, GIFs, videos, and PDFs from HTML, URLs, or templates — from your AI agent.
Give your agent eyes: screenshots of any web page it can see, pages as markdown, and PDFs.
- snaplabDeprecatedapp.hsingh.snaplab
Screenshot, PDF and HTML-to-image rendering API so Claude and Cursor can see any web page.
Screenshot, PDF and HTML-to-image rendering API so Claude and Cursor can see any web page.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables AI coding tools to capture fast, fresh visual renders of webpages, including full-page tiled images, specific DOM elements, and timed animated sequences optimized for vision models.-
- AlicenseNot gradedqualityAmaintenanceEnables AI coding assistants without native vision to analyze screenshots, error messages, UI layouts, and documents through a single image-understanding tool that routes requests to multiple vision LLM providers. It accepts local files, remote URLs, and Data URIs with automatic cropping, compression, and retry handling, and can run over stdio or as a shared HTTP instance.544 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI coding models without native vision to analyze screenshots, errors, UI, documents, and OCR images through a single image_understand tool using multiple major vision LLM providers.544 npmMIT
- AlicenseNot gradedqualityAmaintenanceAdds image understanding to AI coding assistants that lack native vision, letting them analyze screenshots of code, errors, UIs, and documents through a single image_understand tool. Supports multiple mainstream vision LLM providers, with automatic preprocessing such as multi-cropping, compression, and retries.544 npmMIT