Api2Pdf MCP by usefulapi

io.usefulapi由 usefulapi.io 发布官方发布者v1.36.5更新于 Nov 8, 2026

MCP server for Api2Pdf — generate PDFs & images from HTML, URLs or office files; merge, barcodes.

发布方自己的服务:Ably MCP by usefulapi

已验证Streamable HTTP可网页运行浏览器自动化文件与存储媒体与设计

概览

AI 生成的概览

托管的 Api2Pdf 服务器,让助手把 HTML、网址、Markdown 或 Office 文件转成 PDF 和图片,并可合并、压缩或加密 PDF。

可以做什么
  • 把 HTML、网址、Markdown 或 Office 文档转换为 PDF,把 HTML 或在线网页渲染为图片和截图
  • 合并、压缩、提取页面以及为现有 PDF 添加密码保护
  • 把文档转换回 Markdown 文本,并生成条形码或二维码
  • 查询账户余额、服务状态和当月用量,删除此前生成的文件
  • 提交功能请求、升级到付费方案或取消订阅
适用场景
适合让助手把发票、报告或信函生成为 PDF,把网页保存为 PDF 或截图,合并或压缩已有 PDF,或把文档内容转成 Markdown 交给助手阅读,而无需在本地运行转换工具。
运行要求
远程 MCP 端点,无需本地安装。首次连接时通过 OAuth 登录,需粘贴 Api2Pdf API 密钥,密钥按用户校验并保存;不要在客户端配置中添加 Authorization 头或密钥。免费方案每月 50 次工具调用,另有付费方案。
安装前请注意
多数转换工具按文档计费并消耗每月调用额度,免费额度仅 50 次。升级工具会返回 Stripe 结账付款链接,取消订阅当期不退款。生成文件以约 24 小时有效的链接返回,删除工具会移除已生成的文件。提交的文档和网址会发送给第三方 Api2Pdf 服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Api2Pdf MCP by usefulapi,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.usefulapi%2Fapi2pdf/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "api2pdf-by-usefulapi": {
      "type": "http",
      "url": "https://api2pdf.usefulapi.io/mcp"
    }
  }
}

README

Api2Pdf MCP by usefulapi

Generate PDFs and images from HTML, URLs, Markdown or office files, from Claude, Cursor, or any MCP client. Hosted, no local install — connect with your Api2Pdf API key.

Live endpoint: https://api2pdf.usefulapi.io/mcp · Homepage: https://usefulapi.io/api2pdf

Connect

  • Claude (claude.ai, Desktop): open Customize → Connectors, click + Add → Add custom connector, and paste https://api2pdf.usefulapi.io/mcp.
  • Claude Code: claude mcp add --transport http api2pdf https://api2pdf.usefulapi.io/mcp, then run /mcp to log in.
  • VS Code: Add to VS Code.
  • Cursor and other clients: add the URL as a remote MCP server:
json
{  "mcpServers": {    "api2pdf": {      "url": "https://api2pdf.usefulapi.io/mcp"    }  }}

Add only the URL. Do not add an Authorization header or an API key to the client config: the server signs you in with OAuth, and the login page asks for your Api2Pdf credentials.

Step-by-step setup, where to find your credentials, and FAQ: https://usefulapi.io/api2pdf/

On first connect you'll paste your Api2Pdf API key. It's validated, stored per-user, and scoped to you.

Tools

ToolTypeWhat it does
api2pdf_html_to_pdfwriteHTML to PDF (Chrome)
api2pdf_url_to_pdfwriteURL to PDF (Chrome)
api2pdf_markdown_to_pdfwriteMarkdown to PDF (Chrome)
api2pdf_html_to_imagewriteHTML to image (Chrome)
api2pdf_url_to_imagewriteURL to image / screenshot (Chrome)
api2pdf_wkhtml_to_pdfwriteHTML to PDF (wkhtmltopdf)
api2pdf_office_to_pdfwriteOffice document to PDF (LibreOffice)
api2pdf_merge_pdfswriteMerge PDFs (PDFSharp)
api2pdf_compress_pdfwriteCompress PDF (PDFSharp)
api2pdf_extract_pageswriteExtract PDF pages (PDFSharp)
api2pdf_add_passwordwritePassword-protect PDF (PDFSharp)
api2pdf_convert_to_markdownwriteConvert document to Markdown (MarkItDown)
api2pdf_generate_barcodewriteGenerate barcode / QR code (Zebra)
api2pdf_get_balancereadGet account balance
api2pdf_get_statusreadGet service status
api2pdf_delete_filewriteDelete a generated file
api2pdf_usage_statusmetaUsage status (free-tier meter)
api2pdf_request_featuremetaRequest a missing feature
api2pdf_upgrademetaUpgrade to Pro or Pro+
api2pdf_cancel_subscriptionmetaCancel the Pro subscription

read tools are read-only; write tools mutate data (clients should confirm them); meta tools report usage, manage your subscription or send a feature request.

Pricing

PlanPriceLimit
Free$050 tool calls / month
Pro$9/mo or $90/yr (2 months free)Unlimited*

*Pro has a fair use limit of 10,000 tool calls a month on this server. For more, write to [email protected].

Pro covers this server only. Subscribe with api2pdf_upgrade (it returns a Stripe Checkout link). Cancel any time with api2pdf_cancel_subscription: Pro continues to the end of the paid period, with no refund for the current period, and running api2pdf_upgrade before then undoes the cancel. Or write to [email protected].

License

MIT — see LICENSE. Documentation only; the server is hosted.

来源:servers/api2pdf/README.md,提交 4046075

工具

16

api2pdf_html_to_pdf

HTML to PDF (Chrome)

Render an HTML string to a PDF using the headless-Chrome engine. Returns a { FileUrl } link (valid ~24h) by default. Great for invoices, reports, and letters produced as HTML. BILLED per document. Api2Pdf API: POST /chrome/pdf/html.

输入参数html必填inlineoptionsstoragefileNameoutput_binaryextraHTTPHeadersuseCustomStorage

api2pdf_url_to_pdf

URL to PDF (Chrome)

Fetch a web page by URL and render it to a PDF using headless Chrome. Returns a { FileUrl } (valid ~24h). Use extraHTTPHeaders to pass auth for a protected page. BILLED. Api2Pdf API: POST /chrome/pdf/url.

输入参数url必填inlineoptionsstoragefileNameoutput_binaryextraHTTPHeadersuseCustomStorage

api2pdf_markdown_to_pdf

Markdown to PDF (Chrome)

Render a Markdown string to a PDF using headless Chrome. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /chrome/pdf/markdown.

输入参数inlineoptionsstoragefileNamemarkdown必填output_binaryextraHTTPHeadersuseCustomStorage

api2pdf_html_to_image

HTML to image (Chrome)

Render an HTML string to an image using headless Chrome. Returns a { FileUrl } (valid ~24h) by default, or base64 bytes with output_binary:true. BILLED. Api2Pdf API: POST /chrome/image/html.

输入参数html必填inlineoptionsstoragefileNameoutput_binaryextraHTTPHeadersuseCustomStorage

api2pdf_url_to_image

URL to image / screenshot (Chrome)

Take a screenshot of a live web page by URL using headless Chrome. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /chrome/image/url.

输入参数url必填inlineoptionsstoragefileNameoutput_binaryextraHTTPHeadersuseCustomStorage

api2pdf_wkhtml_to_pdf

HTML to PDF (wkhtmltopdf)

Render an HTML string to a PDF using the wkhtmltopdf engine — an alternate to Chrome that supports a table of contents (pass enableToc / tocOptions inside `options`). Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /wkhtml/pdf/html.

输入参数html必填inlineoptionsstoragefileNameoutput_binaryextraHTTPHeadersuseCustomStorage

api2pdf_office_to_pdf

Office document to PDF (LibreOffice)

Convert an office document (Word, Excel, PowerPoint, ODT, and many more) at a URL to a PDF using LibreOffice. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /libreoffice/any-to-pdf.

输入参数url必填inlineoptionsstoragefileNameoutput_binaryextraHTTPHeadersuseCustomStorage

api2pdf_merge_pdfs

Merge PDFs (PDFSharp)

Merge several existing PDFs (given as URLs, in order) into a single PDF. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/merge.

输入参数urls必填inlineoptionsstoragefileNameoutput_binaryextraHTTPHeadersuseCustomStorage

api2pdf_compress_pdf

Compress PDF (PDFSharp)

Compress an existing PDF (given as a URL) to reduce its file size. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/compress.

输入参数url必填inlineoptionsstoragefileNameoutput_binaryextraHTTPHeadersuseCustomStorage

api2pdf_extract_pages

Extract PDF pages (PDFSharp)

Extract a range of pages from an existing PDF (given as a URL) into a new PDF. `start`/`end` are 0-based page indices; omit `end` to extract a single page. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/extract-pages.

输入参数endurl必填startinlineoptionsstoragefileNameoutput_binaryextraHTTPHeadersuseCustomStorage

api2pdf_add_password

Password-protect PDF (PDFSharp)

Encrypt an existing PDF (given as a URL) with a user password (required to open) and an optional owner password (controls permissions). Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /pdfsharp/password.

输入参数url必填inlineoptionsstoragefileNameuserpassword必填output_binaryownerpasswordextraHTTPHeadersuseCustomStorage

api2pdf_convert_to_markdown

Convert document to Markdown (MarkItDown)

Convert a document or file (given as a URL — PDF, Office docs, and more) to Markdown text via MarkItDown. Great for feeding a document's contents back to an agent. Returns a { FileUrl } (valid ~24h). BILLED. Api2Pdf API: POST /markitdown.

输入参数url必填inlineoptionsstoragefileNameoutput_binaryextraHTTPHeadersuseCustomStorage

api2pdf_generate_barcode

Generate barcode / QR code (Zebra)

Generate a barcode or QR code image. `format` is the symbology (e.g. 'QRCode', 'Code128', 'PDF417', 'DataMatrix') and `value` is the string to encode. Returns a { FileUrl } (valid ~24h) by default, or base64 with output_binary:true. BILLED. Api2Pdf API: GET /zebra.

输入参数value必填widthformat必填heightshowlabeloutput_binary

api2pdf_get_balance

Get account balance

Return the remaining balance / usage for the configured Api2Pdf account. Api2Pdf API: GET /balance.

无需输入参数。

api2pdf_get_status

Get service status

Return the current Api2Pdf service / health status. Api2Pdf API: GET /status.

无需输入参数。

api2pdf_delete_file

Delete a generated file

Delete a previously generated file by its ResponseId (the `ResponseId` returned in a generation response). Api2Pdf API: DELETE /file/{ResponseId}.

输入参数responseId必填

版本历史

22
  1. v1.36.5最新Nov 8, 2026
  2. v1.36.4Nov 7, 2026
  3. v1.35.3Nov 5, 2026
  4. v1.35.2Nov 5, 2026
  5. v1.35.1Nov 4, 2026
  6. v1.35.0Nov 3, 2026
  7. v1.34.1Nov 3, 2026
  8. v1.33.0Nov 1, 2026
  9. v1.31.0Oct 31, 2026
  10. v1.30.0Oct 31, 2026
  11. v1.29.2Oct 30, 2026
  12. v1.29.0Oct 30, 2026
  13. v1.24.0Oct 26, 2026
  14. v1.21.3Oct 25, 2026
  15. v1.21.0Oct 25, 2026
  16. v1.20.0Oct 24, 2026
  17. v1.17.0Oct 23, 2026
  18. v1.16.4Oct 22, 2026
  19. v1.16.3Oct 21, 2026
  20. v1.11.1Oct 9, 2026
  21. v1.10.0Oct 9, 2026
  22. v1.0.1Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Usefulapi 集成