
url-to-pdf
io.github.straylyv0.2.0更新于 Oct 8, 2026
Turn public web pages into PDF, PNG screenshots, or clean Markdown with one API key.
概览
通过付费远程渲染服务,把公开网页转换为 PDF 文件、整页截图或干净的 Markdown。
- 功能
- 提供三个工具:url_to_pdf 可将页面渲染为 PDF,支持格式、方向、边距和缩放等参数;url_to_screenshot 可截取整页 PNG 或 JPEG;url_to_markdown 可提取页面内容为 Markdown,并可按选择器移除元素。免费的 list_capabilities 工具用于查看能力与价格。每次渲染返回一个一小时后失效的下载链接。
- 适用场景
- 适合助手需要保存公开网页的 PDF、截图或可读 Markdown 版本,又不想在本地运行无头浏览器的场景。可用于偶尔的文档留存、归档,或把页面内容接入工作流。
- 运行要求
- 使用远程 Streamable HTTP 端点,无需本地安装。需要付费 API 密钥,通过 x-api-key 请求头发送,密钥需在服务商结账页面购买。需要能访问该服务的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 url-to-pdf,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"url-to-pdf": {
"type": "http",
"url": "https://url-pdf.hammbox.com/mcp"
}
}
}README
url-to-pdf
Turn any public web page into a PDF, a full-page screenshot, or clean Markdown — with one API key.
No browser farm to run, no headless Chrome to babysit. url-to-pdf renders pages on Cloudflare's infrastructure and hands you a download link. Use it from any MCP-compatible AI client (Claude Desktop, Cursor, and friends) by just talking, or call the HTTP API directly from your scripts.
Why you'll like it
- Three outputs, one key. PDF (A4 / Letter, portrait or landscape), full-page PNG/JPEG screenshots, and clean Markdown (navigation and ads stripped out).
- Just talk to it. Connect it as an MCP server and say "turn https://example.com into a PDF" — your client does the rest. No curl, no JSON to hand-write.
- Also a plain HTTP API. Every tool is a single
POSTwith yourx-api-key. Great for scripts, backends, and low-code platforms. - SSRF-protected. Only public
http(s)URLs are accepted; internal and reserved addresses are rejected at the edge. - Private by design. Outputs are kept for 1 hour then auto-deleted. We never see your card (Paddle handles payments) and your email is used only to recover your key.
Get your API key
- Go to url-pdf.hammbox.com/buy and complete checkout (Paddle — major credit cards).
- Your key appears on screen the moment payment completes. Copy it and keep it safe.
- Lost it? Recover it anytime at /portal/claim with the email you used at checkout. No password, no support ticket.
Use it as an MCP server (recommended for AI clients)
Add url-to-pdf to your client's MCP configuration. With Claude Desktop, Cursor, or any client that supports Streamable HTTP:
That's it — no local install. Then just ask your assistant in natural language:
"Convert https://news.ycombinator.com to a PDF and give me the download link."
The client calls the tool, passes your key, and shows you the result.
Use it as an HTTP API (for scripts & backends)
Every render is a POST to a /tools/* endpoint with your key in the header.
The response includes a downloadUrl valid for 1 hour:
Tools & parameters
url_to_pdf — url (required), format (A4 / Letter / Legal, default A4), landscape, printBackground, scale (0.1–2), margin, preferCssPageSize.
url_to_screenshot — url (required), fullPage (default true), format (png / jpeg), quality (0–1).
url_to_markdown — url (required), removeSelectors (e.g. ["nav",".ads","footer"]), keepImages.
Pricing
$5 / month — one subscription, one API key, all three tools included. Billed and managed by Paddle (our Merchant of Record); cancel anytime from your Paddle customer portal.
Fair-use note: rendering runs on Cloudflare Browser Rendering. Under the free tier, a short burst of heavy concurrent load may be briefly rate-limited (HTTP 429) — just retry in a few seconds.
Links
- Live demo: url-pdf.hammbox.com
- Privacy Policy · Refund Policy · Terms of Service (linked from the site footer)
- Contact: [email protected]
License
MIT
来源:README.md,提交 e55fa18
工具
0版本历史
1- v0.2.0最新Oct 8, 2026


