Convert files, HTML, and Markdown to PDF via the FileToPDF API. Bring your own API key.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Your FileToPDF API key (sk_live_...). Get one free in one click at https://filetopdf.dev.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Convert a file fetched from a public URL into a PDF. Auto-detects the engine from the extension: Office docs (DOCX, XLSX, PPTX, ODT, RTF, TXT, CSV…), images (PNG, JPG, WebP…), HTML, Markdown, or an existing PDF (passthrough). Costs 1 credit on success. Returns the PDF as an embedded resource.
Public http(s) URL of the file to download and convert.
PDF/A conformance level, e.g. "PDF/A-2b". (Pro/Scale/trial only.)
Produce an accessible PDF/UA document.
Password to open a protected source document.
Render in landscape orientation. (Pro/Scale/trial only.)
Optional absolute path to also write the PDF to on disk.
Password required to open the resulting PDF.
Owner password controlling permissions on the resulting PDF.
Page ranges to include, e.g. "1-3".
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Convert a file fetched from a public URL into a PDF. Auto-detects the engine from the extension: Office docs (DOCX, XLSX, PPTX, ODT, RTF, TXT, CSV…), images (PNG, JPG, WebP…), HTML, Markdown, or an existing PDF (passthrough). Costs 1 credit on success. Returns the PDF as an embedded resource.
| Argument | Type | Description |
|---|---|---|
| url* | string | Public http(s) URL of the file to download and convert. |
| pdfa | string | PDF/A conformance level, e.g. "PDF/A-2b". (Pro/Scale/trial only.) |
| pdfua | boolean | Produce an accessible PDF/UA document. |
| password | string | Password to open a protected source document. |
| landscape | boolean | Render in landscape orientation. (Pro/Scale/trial only.) |
| save_path | string | Optional absolute path to also write the PDF to on disk. |
| userPassword | string | Password required to open the resulting PDF. |
| ownerPassword | string | Owner password controlling permissions on the resulting PDF. |
| nativePageRanges | string | Page ranges to include, e.g. "1-3". |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Public http(s) URL of the file to download and convert."
},
"pdfa": {
"type": "string",
"description": "PDF/A conformance level, e.g. \"PDF/A-2b\". (Pro/Scale/trial only.)"
},
"pdfua": {
"type": "boolean",
"description": "Produce an accessible PDF/UA document."
},
"password": {
"type": "string",
"description": "Password to open a protected source document."
},
"landscape": {
"type": "boolean",
"description": "Render in landscape orientation. (Pro/Scale/trial only.)"
},
"save_path": {
"type": "string",
"description": "Optional absolute path to also write the PDF to on disk."
},
"userPassword": {
"type": "string",
"description": "Password required to open the resulting PDF."
},
"ownerPassword": {
"type": "string",
"description": "Owner password controlling permissions on the resulting PDF."
},
"nativePageRanges": {
"type": "string",
"description": "Page ranges to include, e.g. \"1-3\"."
}
},
"additionalProperties": false
}Render a raw HTML string to a PDF using Chromium, with optional CSS and layout options. Costs 1 credit on success. Returns the PDF as an embedded resource.
| Argument | Type | Description |
|---|---|---|
| css | string | Optional CSS, injected into the document <head>. |
| html* | string | The HTML markup to render. |
| pdfa | string | PDF/A conformance level, e.g. "PDF/A-2b". (Pro/Scale/trial only.) |
| pdfua | boolean | Produce an accessible PDF/UA document. |
| scale | string | Render scale, 0.1–2.0. |
| landscape | boolean | Render in landscape orientation. (Pro/Scale/trial only.) |
| marginTop | string | Top margin in inches. |
| save_path | string | Optional absolute path to also write the PDF to on disk. |
| marginLeft | string | Left margin in inches. |
| paperWidth | string | Paper width in inches, or with a unit e.g. "210mm". |
Render a raw Markdown string to a PDF, with optional CSS and layout options. A sensible default stylesheet is applied when no CSS is given. Costs 1 credit on success. Returns the PDF as an embedded resource.
| Argument | Type | Description |
|---|---|---|
| css | string | Optional CSS to style the rendered Markdown (overrides the default stylesheet). |
| pdfa | string | PDF/A conformance level, e.g. "PDF/A-2b". (Pro/Scale/trial only.) |
| pdfua | boolean | Produce an accessible PDF/UA document. |
| scale | string | Render scale, 0.1–2.0. |
| markdown* | string | The Markdown content to render. |
| landscape | boolean | Render in landscape orientation. (Pro/Scale/trial only.) |
| marginTop | string | Top margin in inches. |
| save_path | string | Optional absolute path to also write the PDF to on disk. |
| marginLeft | string | Left margin in inches. |
| paperWidth |
Check the FileToPDF API key and return the plan, remaining conversion credits, and subscription status. Free — costs no credits. Use this to verify the connection works.
No arguments.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}| marginRight | string | Right margin in inches. |
| paperHeight | string | Paper height in inches. |
| marginBottom | string | Bottom margin in inches. |
| userPassword | string | Password required to open the resulting PDF. |
| ownerPassword | string | Owner password controlling permissions on the resulting PDF. |
| printBackground | boolean | Print background graphics/colors. |
| nativePageRanges | string | Page ranges to include, e.g. "1-3,5". |
| preferCssPageSize | boolean | Use the page size declared in CSS @page rules. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"html"
],
"properties": {
"css": {
"type": "string",
"description": "Optional CSS, injected into the document <head>."
},
"html": {
"type": "string",
"description": "The HTML markup to render."
},
"pdfa": {
"type": "string",
"description": "PDF/A conformance level, e.g. \"PDF/A-2b\". (Pro/Scale/trial only.)"
},
"pdfua": {
"type": "boolean",
"description": "Produce an accessible PDF/UA document."
},
"scale": {
"type": "string",
"description": "Render scale, 0.1–2.0."
},
"landscape": {
"type": "boolean",
"description": "Render in landscape orientation. (Pro/Scale/trial only.)"
},
"marginTop": {
"type": "string",
"description": "Top margin in inches."
},
"save_path": {
"type": "string",
"description": "Optional absolute path to also write the PDF to on disk."
},
"marginLeft": {
"type": "string",
"description": "Left margin in inches."
},
"paperWidth": {
"type": "string",
"description": "Paper width in inches, or with a unit e.g. \"210mm\"."
},
"marginRight": {
"type": "string",
"description": "Right margin in inches."
},
"paperHeight": {
"type": "string",
"description": "Paper height in inches."
},
"marginBottom": {
"type": "string",
"description": "Bottom margin in inches."
},
"userPassword": {
"type": "string",
"description": "Password required to open the resulting PDF."
},
"ownerPassword": {
"type": "string",
"description": "Owner password controlling permissions on the resulting PDF."
},
"printBackground": {
"type": "boolean",
"description": "Print background graphics/colors."
},
"nativePageRanges": {
"type": "string",
"description": "Page ranges to include, e.g. \"1-3,5\"."
},
"preferCssPageSize": {
"type": "boolean",
"description": "Use the page size declared in CSS @page rules."
}
},
"additionalProperties": false
}| string |
| Paper width in inches, or with a unit e.g. "210mm". |
| marginRight | string | Right margin in inches. |
| paperHeight | string | Paper height in inches. |
| marginBottom | string | Bottom margin in inches. |
| userPassword | string | Password required to open the resulting PDF. |
| ownerPassword | string | Owner password controlling permissions on the resulting PDF. |
| printBackground | boolean | Print background graphics/colors. |
| nativePageRanges | string | Page ranges to include, e.g. "1-3,5". |
| preferCssPageSize | boolean | Use the page size declared in CSS @page rules. |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"markdown"
],
"properties": {
"css": {
"type": "string",
"description": "Optional CSS to style the rendered Markdown (overrides the default stylesheet)."
},
"pdfa": {
"type": "string",
"description": "PDF/A conformance level, e.g. \"PDF/A-2b\". (Pro/Scale/trial only.)"
},
"pdfua": {
"type": "boolean",
"description": "Produce an accessible PDF/UA document."
},
"scale": {
"type": "string",
"description": "Render scale, 0.1–2.0."
},
"markdown": {
"type": "string",
"description": "The Markdown content to render."
},
"landscape": {
"type": "boolean",
"description": "Render in landscape orientation. (Pro/Scale/trial only.)"
},
"marginTop": {
"type": "string",
"description": "Top margin in inches."
},
"save_path": {
"type": "string",
"description": "Optional absolute path to also write the PDF to on disk."
},
"marginLeft": {
"type": "string",
"description": "Left margin in inches."
},
"paperWidth": {
"type": "string",
"description": "Paper width in inches, or with a unit e.g. \"210mm\"."
},
"marginRight": {
"type": "string",
"description": "Right margin in inches."
},
"paperHeight": {
"type": "string",
"description": "Paper height in inches."
},
"marginBottom": {
"type": "string",
"description": "Bottom margin in inches."
},
"userPassword": {
"type": "string",
"description": "Password required to open the resulting PDF."
},
"ownerPassword": {
"type": "string",
"description": "Owner password controlling permissions on the resulting PDF."
},
"printBackground": {
"type": "boolean",
"description": "Print background graphics/colors."
},
"nativePageRanges": {
"type": "string",
"description": "Page ranges to include, e.g. \"1-3,5\"."
},
"preferCssPageSize": {
"type": "boolean",
"description": "Use the page size declared in CSS @page rules."
}
},
"additionalProperties": false
}