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.

已驗證Streamable HTTP可網頁執行Files & StorageWeb Search & Scraping

概覽

AI 產生的概覽

透過付費遠端渲染服務,把公開網頁轉換成 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 標頭傳送,金鑰須在服務商結帳頁面購買。需要能連線至該服務的網路。
安裝前請注意
此服務為付費服務:按月訂閱並透過第三方支付處理方扣款,每次呼叫都需要 x-api-key。請求的頁面網址會傳送到服務商的渲染基礎設施,產生的檔案約保留一小時後刪除。僅接受公開的 http(s) 網址。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 url-to-pdf,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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.

[url-to-pdf preview]


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 POST with your x-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

  1. Go to url-pdf.hammbox.com/buy and complete checkout (Paddle — major credit cards).
  2. Your key appears on screen the moment payment completes. Copy it and keep it safe.
  3. 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:

json
{  "mcpServers": {    "url-to-pdf": {      "type": "http",      "url": "https://url-pdf.hammbox.com/mcp",      "headers": { "x-api-key": "YOUR_API_KEY" }    }  }}

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.

bash
# Web page → PDFcurl -X POST https://url-pdf.hammbox.com/tools/url-to-pdf \  -H "Content-Type: application/json" \  -H "x-api-key: YOUR_API_KEY" \  -d '{"url":"https://example.com","format":"A4"}'
# Full-page screenshotcurl -X POST https://url-pdf.hammbox.com/tools/url-to-screenshot \  -H "Content-Type: application/json" \  -H "x-api-key: YOUR_API_KEY" \  -d '{"url":"https://example.com","fullPage":true,"format":"png"}'
# Extract Markdowncurl -X POST https://url-pdf.hammbox.com/tools/url-to-markdown \  -H "Content-Type: application/json" \  -H "x-api-key: YOUR_API_KEY" \  -d '{"url":"https://example.com"}'

The response includes a downloadUrl valid for 1 hour:

json
{  "downloadUrl": "https://url-pdf.hammbox.com/f/pdf/<id>.pdf",  "contentType": "application/pdf",  "sizeBytes": 456494,  "title": "Example Domain",  "ttlSeconds": 3600}
bash
curl -O "<downloadUrl>"

Tools & parameters

MCP toolHTTP endpointWhat it does
list_capabilities (free)GET /openapi.jsonLists capabilities, prices, and where to buy a key
url_to_pdfPOST /tools/url-to-pdfRender a page to PDF
url_to_screenshotPOST /tools/url-to-screenshotCapture a full-page screenshot
url_to_markdownPOST /tools/url-to-markdownExtract the page as clean Markdown

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

License

MIT

來源:README.md,提交 e55fa18

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.2.0最新Oct 8, 2026