MCP 服务器

FileToPDF

dev.filetopdf/filetopdf-mcp
媒体与内容 生产力 公开且可连接 MCP 2025-11-25

此 MCP 可以做什么

Converts files, HTML, and Markdown into PDF documents and reports conversion account status.

convert_file
Convert a file (by URL) to PDF
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.
可访问外部资源
输入模式
{'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}
convert_html
Convert HTML to PDF
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.
可访问外部资源
输入模式
{'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â\x80\x932.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}
convert_markdown
Convert Markdown to PDF
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.
可访问外部资源
输入模式
{'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â\x80\x932.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}
get_account
Get FileToPDF account status
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.
只读 可访问外部资源
输入模式
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
已添加
convert_markdown
2026年9月17日 12:39
已添加
convert_html
2026年9月17日 12:39
已添加
convert_file
2026年9月17日 12:39
已添加
get_account
2026年9月17日 12:39