# api2pdf MCP server

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

## Links
- Registry page: https://www.getdrio.com/mcp/io-usefulapi-api2pdf
- Repository: https://github.com/m190/usefulapi-mcp

## Install
- Endpoint: https://api2pdf.usefulapi.io/mcp
- Auth: Not captured

## Setup notes
- Remote endpoint: https://api2pdf.usefulapi.io/mcp

## Tools
- 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. Endpoint: https://api2pdf.usefulapi.io/mcp
- 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. Endpoint: https://api2pdf.usefulapi.io/mcp
- 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. Endpoint: https://api2pdf.usefulapi.io/mcp
- 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. Endpoint: https://api2pdf.usefulapi.io/mcp
- 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. Endpoint: https://api2pdf.usefulapi.io/mcp
- 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. Endpoint: https://api2pdf.usefulapi.io/mcp
- 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. Endpoint: https://api2pdf.usefulapi.io/mcp
- 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. Endpoint: https://api2pdf.usefulapi.io/mcp
- 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. Endpoint: https://api2pdf.usefulapi.io/mcp
- 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. Endpoint: https://api2pdf.usefulapi.io/mcp
- 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. Endpoint: https://api2pdf.usefulapi.io/mcp
- 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. Endpoint: https://api2pdf.usefulapi.io/mcp
- 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. Endpoint: https://api2pdf.usefulapi.io/mcp
- api2pdf_get_balance (Get account balance) - Return the remaining balance / usage for the configured Api2Pdf account. Api2Pdf API: GET /balance. Endpoint: https://api2pdf.usefulapi.io/mcp
- api2pdf_get_status (Get service status) - Return the current Api2Pdf service / health status. Api2Pdf API: GET /status. Endpoint: https://api2pdf.usefulapi.io/mcp
- 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}. Endpoint: https://api2pdf.usefulapi.io/mcp

## Resources
Not captured

## Prompts
Not captured

## Metadata
- Owner: io.usefulapi
- Version: 1.0.1
- Runtime: Streamable Http
- Transports: HTTP
- License: Not captured
- Language: Not captured
- Stars: Not captured
- Updated: Jul 17, 2026
- Source: https://registry.modelcontextprotocol.io
