PDF.co

io.github.pdfdotco由 GitHub 帳號 pdfdotco 發布v0.0.11更新於 Oct 29, 2026

Official PDF.co MCP server: convert, merge, split, OCR, search and fill PDFs through the PDF.co API

已驗證STDIO僅桌面檔案與儲存資料與分析

概覽

AI 產生的概覽

PDF.co 官方 MCP 伺服器,讓助理透過 PDF.co API 轉換、合併、分割、OCR、搜尋、填寫與加密 PDF。

可以做什麼
  • 將 PDF 與掃描影像轉為 JSON、CSV、文字、XLS/XLSX、XML、HTML 或影像
  • 將文件、試算表、影像、HTML、網頁與電子郵件轉為 PDF
  • 合併、分割 PDF,並加入文字、影像、連結或表單欄位
  • 讀取、填寫與建立 PDF 表單欄位;依座標尋找文字與表格
  • 執行 OCR 讓掃描檔可搜尋,新增或移除密碼,讀取 PDF 資訊並擷取附件
  • 上傳檔案,並查詢或等待非同步工作狀態
適用情境
適合助理需要處理 PDF 與辦公文件的場合:擷取文字或表格、格式互轉、合併或分割檔案、填寫表單,或讓掃描檔可被檢索。適用於文件密集、原本需手動呼叫 PDF.co API 的工作流程。
執行需求
透過 uvx 以 stdio 在本機執行,需安裝 Python 與 uv 工具。需要 PDF.co 帳號,並在 X_API_KEY 環境變數提供 API 金鑰。需要連線至 PDF.co API 的網路,檔案會上傳到 PDF.co 伺服器處理。
安裝前請注意
處理的文件與影像會上傳至 PDF.co 伺服器,機密資料請先確認其條款。X_API_KEY 中的 API 金鑰為可計費憑證,使用可能產生 PDF.co 費用。多項工具會修改文件(合併、分割、填表、增刪密碼、移除文字層),請核對輸出結果。五個 Excel 轉換工具預計於 2027 年 1 月 5 日停用。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

PDF.co MCP

PDF.co MCP Server provides PDF.co API functionality through the Model Context Protocol (MCP), enabling AI assistants to easily perform various PDF processing tasks.

🚀 Key Features

📄 PDF Conversion Tools

  • PDF → Various Formats: Convert PDFs to JSON, CSV, Text, Excel (XLS/XLSX), XML, HTML, Images (JPG/PNG/WebP/TIFF)
  • Various Formats → PDF: Convert documents (DOC/DOCX/RTF/TXT), spreadsheets (CSV/XLS/XLSX), images, web pages, HTML, emails (MSG/EML) to PDF
  • Excel Conversions: Convert Excel files to PDF

🛠️ PDF Editing & Modification

  • PDF Merging: Combine multiple PDF files into one
  • PDF Splitting: Split PDFs by specific pages or page ranges
  • Add Annotations & Images: Add text, links, images, shapes to PDFs
  • Form Operations: Read PDF form field information, fill forms, create new form elements

🔍 PDF Search & Analysis

  • Text Search: Search text in PDFs (supports regular expressions)
  • Table Detection: Find table locations and coordinates in PDFs
  • AI Invoice Parser: Extract invoice data using AI
  • PDF Information: Get detailed information including metadata, page count, security info

🔒 Security & Accessibility

  • Password Protection: Add/remove password protection to PDFs
  • Searchability: Make PDFs searchable via OCR or remove text layers
  • Attachment Extraction: Extract attachments from PDFs

💼 File Management

  • File Upload: Upload local files to PDF.co servers
  • Job Status Tracking: Monitor progress and results of asynchronous operations

⚙️ Configuration

🔑 Get API Key

  1. Sign up at PDF.co website
  2. Get your API key from the dashboard

📦 Install UV

You need to install UV (a fast Python packaging tool) to use this MCP server:

macOS and Linux
bash
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows
powershell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Alternative Installation Methods
  • Homebrew: brew install uv
  • PyPI with pipx: pipx install uv
  • PyPI with pip: pip install uv

For more installation options and details, see the UV installation guide.

Connect your client

Step-by-step guides with screenshots for each client are on developer.pdf.co:

Any other client that runs local MCP servers over STDIO uses the same three values: the command uvx, the argument pdfco-mcp, and the environment variable X_API_KEY. In JSON form:

json
{  "mcpServers": {    "pdfco": {      "command": "uvx",      "args": ["pdfco-mcp"],      "env": {        "X_API_KEY": "YOUR_API_KEY_HERE"      }    }  }}

Desktop apps often do not see your terminal's PATH; if the server fails to start, use the full path to uvx as the command. uvx keeps the version it first resolved, so run uvx pdfco-mcp@latest once to pick up a new release.

🔧 Available Tools

PDF Conversion Tools

  • pdf_to_json: Convert PDF and scanned images into JSON representation with text, fonts, images, vectors, and formatting preserved
  • pdf_to_csv: Convert PDF and scanned images into CSV representation with layout, columns, rows, and tables
  • pdf_to_text: Convert PDF and scanned images to text with layout preserved
  • pdf_to_xls: Convert PDF and scanned images to XLS (Excel 97-2003) format
  • pdf_to_xlsx: Convert PDF and scanned images to XLSX (Excel 2007+) format
  • pdf_to_xml: Convert PDF and scanned images to XML format
  • pdf_to_html: Convert PDF and scanned images to HTML format
  • pdf_to_image: Convert PDF and scanned images to various image formats (JPG, PNG, WebP, TIFF)

Document to PDF Conversion Tools

  • document_to_pdf: Convert various document types (DOC, DOCX, RTF, TXT, XLS, XLSX, CSV, HTML, JPG, PNG, TIFF, WEBP) into PDF
  • csv_to_pdf: Convert CSV or spreadsheet files (XLS, XLSX) to PDF
  • image_to_pdf: Convert various image formats (JPG, PNG, TIFF) to PDF
  • webpage_to_pdf: Convert external webpage URL to PDF
  • html_to_pdf: Convert HTML to PDF
  • email_to_pdf: Convert email to PDF

Excel Conversion Tools

Retirement Notice — January 5, 2027

The following Excel conversion tools are scheduled for retirement on January 5, 2027, following the discontinuation of their underlying PDF.co API endpoints: excel_to_csv, excel_to_json, excel_to_html, excel_to_txt, excel_to_xml. These tools will remain available until the retirement date. After January 5, 2027, requests to their underlying API endpoints will no longer be supported. excel_to_pdf is not affected.

  • excel_to_csv: Convert Excel(XLS, XLSX) to CSV (retiring January 5, 2027)
  • excel_to_json: Convert Excel(XLS, XLSX) to JSON (retiring January 5, 2027)
  • excel_to_html: Convert Excel(XLS, XLSX) to HTML (retiring January 5, 2027)
  • excel_to_txt: Convert Excel(XLS, XLSX) to TXT (retiring January 5, 2027)
  • excel_to_xml: Convert Excel(XLS, XLSX) to XML (retiring January 5, 2027)
  • excel_to_pdf: Convert Excel(XLS, XLSX) to PDF

PDF Editing Tools

  • pdf_add_annotations_images_fields: Add text, images, forms, other PDFs, fill forms, links to external sites and external PDF files. You can update or modify PDF and scanned PDF files
  • pdf_merge: Merge PDF from two or more PDF, DOC, XLS, images, even ZIP with documents and images into a new PDF
  • pdf_split: Split a PDF into multiple PDF files using page indexes or page ranges

PDF Form Tools

  • read_pdf_forms_info: Extracts information about fillable PDF fields from an input PDF file
  • fill_pdf_forms: Fill existing form fields in a PDF document
  • create_fillable_forms: Create new fillable form elements in a PDF document

PDF Search Tools

  • find_text: Find text in PDF and get coordinates. Supports regular expressions
  • find_table: Find tables in PDF and get their coordinates

PDF Analysis Tools

  • ai_invoice_parser: AI Invoice Parser: Extracts data from invoices using AI
  • extract_attachments: Extracts attachments from a source PDF file
  • pdf_info_reader: Get detailed information about a PDF document - number of pages, metadata, security, form fields, and more

PDF Security Tools

  • pdf_add_password: Add password protection to a PDF file
  • pdf_remove_password: Remove password protection from a PDF file

PDF Searchability Tools

  • pdf_make_searchable: Convert scanned PDF documents or image files into a text-searchable PDF. Runs OCR and adds an invisible text layer that can be used for text search
  • pdf_make_unsearchable: Make existing PDF document non-searchable by removing the text layer from it

File Management Tools

  • upload_file: Upload a file to the PDF.co API
  • get_job_check: Check the status and results of a job. Status can be: working, success, failed, aborted, or unknown
  • wait_job_completion: Wait for a job to complete

📖 Usage Examples

Convert PDF to Text

Convert this PDF file to text: https://example.com/document.pdf

Merge Multiple Images into PDF

Create a PDF from these images: image1.jpg, image2.png, image3.jpg

Search for Specific Text in PDF

Find the word "contract" in this PDF document

Fill PDF Form Fields

Fill the name field in this PDF form with "John Doe"

Convert Web Page to PDF

Convert https://example.com webpage to PDF

Extract Invoice Data

Extract invoice information from this PDF using AI

Add Password Protection

Add password protection to this PDF file

📞 Support & Contact

📄 License

This project is distributed under the MIT License.


Note: A valid PDF.co API key is required to use this tool. Create a free account at PDF.co to get your API key.

來源:README.md,提交 b5de877

工具

38

pdf_to_json

Pdf To Json

Convert PDF and scanned images into JSON representation with text, fonts, images, vectors, and formatting preserved using the /pdf/convert/to/json2 endpoint. Ref: https://developer.pdf.co/api/pdf-to-json/basic.md

輸入參數url必填langnamerectpagesunwrapapi_keypasswordprofilesexpirationhttppasswordhttpusername另有 1 個

pdf_to_csv

Pdf To Csv

Convert PDF and scanned images into CSV representation with layout, columns, rows, and tables. Ref: https://developer.pdf.co/api/pdf-to-csv.md

輸入參數url必填langnamerectpagesunwrapapi_keypasswordprofilesexpirationhttppasswordhttpusername另有 1 個

pdf_to_text

Pdf To Text

Convert PDF and scanned images to text with layout preserved. Ref: https://developer.pdf.co/api/pdf-to-text/basic.md

輸入參數url必填langnamerectpagesunwrapapi_keypasswordprofilesexpirationhttppasswordhttpusername另有 1 個

pdf_to_xls

Pdf To Xls

Convert PDF and scanned images to XLS (Excel 97-2003) format. Ref: https://developer.pdf.co/api/pdf-to-excel/xls.md

輸入參數url必填langnamerectpagesunwrapapi_keypasswordprofilesexpirationhttppasswordhttpusername另有 1 個

pdf_to_xlsx

Pdf To Xlsx

Convert PDF and scanned images to XLSX (Excel 2007+) format. Ref: https://developer.pdf.co/api/pdf-to-excel/xlsx.md

輸入參數url必填langnamerectpagesunwrapapi_keypasswordprofilesexpirationhttppasswordhttpusername另有 1 個

pdf_to_xml

Pdf To Xml

Convert PDF and scanned images to XML format. Ref: https://developer.pdf.co/api/pdf-to-xml.md

輸入參數url必填langnamerectpagesunwrapapi_keypasswordprofilesexpirationhttppasswordhttpusername另有 1 個

pdf_to_html

Pdf To Html

Convert PDF and scanned images to HTML format. Ref: https://developer.pdf.co/api/pdf-to-html.md

輸入參數url必填langnamerectpagesunwrapapi_keypasswordprofilesexpirationhttppasswordhttpusername另有 1 個

pdf_to_image

Pdf To Image

Convert PDF and scanned images to various image formats (JPG, PNG, WebP, TIFF). Ref: - https://developer.pdf.co/api/pdf-to-image/jpg.md - https://developer.pdf.co/api/pdf-to-image/png.md - https://developer.pdf.co/api/pdf-to-image/webp.md - https://developer.pdf.co/api/pdf-to-image/tiff.md

輸入參數url必填langnamerecttypepagesunwrapapi_keypasswordprofilesexpirationhttppassword另有 2 個

document_to_pdf

Document To Pdf

Convert various document types (DOC, DOCX, RTF, TXT, XLS, XLSX, CSV, HTML, JPG, PNG, TIFF, WEBP) into PDF. Ref: https://developer.pdf.co/api/pdf-from-document/doc.md

輸入參數url必填namepagesapi_keyautosizeprofilesexpirationhttppasswordhttpusername

csv_to_pdf

Csv To Pdf

Convert CSV or spreadsheet files (XLS, XLSX) to PDF. Ref: https://developer.pdf.co/api/pdf-from-document/csv.md

輸入參數url必填namepagesapi_keyautosizeprofilesexpirationhttppasswordhttpusername

image_to_pdf

Image To Pdf

Convert various image formats (JPG, PNG, TIFF) to PDF. Ref: https://developer.pdf.co/api/pdf-from-image.md ```

輸入參數url必填namepagesapi_keyprofilesexpirationhttppasswordhttpusername

webpage_to_pdf

Webpage To Pdf

Convert external webpage URL to PDF. Ref: https://developer.pdf.co/api/pdf-from-url.md The header and footer parameters can contain valid HTML markup with the following classes used to inject printing values into them: - date: formatted print date - title: document title - url: document location - pageNumber: current page number - totalPages: total pages in the document - img: tag is supported in both the header and footer parameter, provided that the src attribute is specified as a base64-encoded string. For example, the following markup will generate Page N of NN page numbering: ```html <span style='font-size:10px'>Page <span class='pageNumber'></span> of <span class='totalPages'></span>.</span>

輸入參數url必填namefooterheaderapi_keymarginsprofilesmediaTypepaperSizeexpirationorientationhttppassword另有 3 個

html_to_pdf

Html To Pdf

Convert HTML to PDF. Ref: https://developer.pdf.co/api/pdf-from-html/convert.md The header and footer parameters can contain valid HTML markup with the following classes used to inject printing values into them: - date: formatted print date - title: document title - url: document location - pageNumber: current page number - totalPages: total pages in the document - img: tag is supported in both the header and footer parameter, provided that the src attribute is specified as a base64-encoded string. For example, the following markup will generate Page N of NN page numbering: ```html <span style='font-size:10px'>Page <span class='pageNumber'></span> of <span class='totalPages'></span>.</span>

輸入參數html必填namefooterheaderapi_keymarginsprofilesmediaTypepaperSizeexpirationorientationhttppassword另有 3 個

email_to_pdf

Email To Pdf

Convert email to PDF. Ref: https://developer.pdf.co/api/pdf-from-email.md

輸入參數url必填api_keymarginsprofilespaperSizeexpirationorientationembedAttachmentsconvertAttachments

excel_to_csv

Excel To Csv

Convert Excel(XLS, XLSX) to CSV. Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards. Ref: https://developer.pdf.co/api/convert-from-excel/csv.md

輸入參數url必填nameapi_keyprofilesexpirationhttppasswordhttpusernameworksheetIndex

excel_to_json

Excel To Json

Convert Excel(XLS, XLSX) to JSON. Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards. Ref: https://developer.pdf.co/api/convert-from-excel/json.md

輸入參數url必填nameapi_keyprofilesexpirationhttppasswordhttpusernameworksheetIndex

excel_to_html

Excel To Html

Convert Excel(XLS, XLSX) to HTML. Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards. Ref: https://developer.pdf.co/api/convert-from-excel/html.md

輸入參數url必填nameapi_keyprofilesexpirationhttppasswordhttpusernameworksheetIndex

excel_to_txt

Excel To Txt

Convert Excel(XLS, XLSX) to TXT. Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards. Ref: https://developer.pdf.co/api/convert-from-excel/text.md

輸入參數url必填nameapi_keyprofilesexpirationhttppasswordhttpusernameworksheetIndex

excel_to_xml

Excel To Xml

Convert Excel(XLS, XLSX) to XML. Retiring on January 5, 2027: the underlying PDF.co API endpoint is being discontinued. The tool keeps working until that date and will be removed afterwards. Ref: https://developer.pdf.co/api/convert-from-excel/xml.md

輸入參數url必填nameapi_keyprofilesexpirationhttppasswordhttpusernameworksheetIndex

excel_to_pdf

Excel To Pdf

Convert Excel(XLS, XLSX) to PDF. Ref: https://developer.pdf.co/api/convert-from-excel/pdf.md

輸入參數url必填nameapi_keyprofilesexpirationhttppasswordhttpusernameworksheetIndex

get_job_check

Get Job Check

Check the status and results of a job Status can be: - working: background job is currently in work or does not exist. - success: background job was successfully finished. - failed: background job failed for some reason (see message for more details). - aborted: background job was aborted. - unknown: unknown background job id. Available only when force is set to true for input request.

輸入參數job_id必填api_key

wait_job_completion

Wait Job Completion

Wait for a job to complete

輸入參數job_id必填api_keytimeoutinterval

upload_file

Upload File

Upload a file to the PDF.co API

輸入參數api_keyfile_path必填

pdf_merge

Pdf Merge

Merge PDF from two or more PDF, DOC, XLS, images, even ZIP with documents and images into a new PDF. Ref: https://developer.pdf.co/api/merge/various-files.md

輸入參數url必填nameapi_keyprofilesexpirationhttppasswordhttpusername

pdf_split

Pdf Split

Split a PDF into multiple PDF files using page indexes or page ranges. Ref: https://developer.pdf.co/api/pdf-split/by-pages.md

輸入參數url必填namepages必填api_keypasswordprofilesexpirationhttppasswordhttpusername

read_pdf_forms_info

Read Pdf Forms Info

Extracts information about fillable PDF fields from an input PDF file. Ref: https://developer.pdf.co/api/forms/info-reader.md

輸入參數url必填api_keypasswordprofilesexpirationhttppasswordhttpusername

fill_forms

Fill Forms

Fill existing form fields in a PDF document. Example fields format: [ { "fieldName": "field_name_from_form_info", "pages": "1", "text": "Value to fill" } ] Use 'read_pdf_forms_info' first to get the fieldName values of the form. Ref: https://developer.pdf.co/api/pdf-add.md

輸入參數url必填namefields必填api_keyprofilesexpirationhttppasswordhttpusername

create_fillable_forms

Create Fillable Forms

Create new fillable form elements in a PDF document. Example annotations format: [ { "text": "prefilled text", "x": 10, "y": 30, "size": 12, "pages": "0-", "type": "TextField", "id": "textfield1" }, { "x": 100, "y": 150, "size": 12, "pages": "0-", "type": "Checkbox", "id": "checkbox1" } ] Ref: https://developer.pdf.co/api/pdf-add.md

輸入參數url必填nameapi_keyprofilesexpirationannotations必填httppasswordhttpusername

find_text

Find Text

Find text in PDF and get coordinates. Supports regular expressions. Ref: https://developer.pdf.co/api/pdf-find/basic.md

輸入參數url必填pagesapi_keypasswordprofilesexpirationregexSearchhttppasswordhttpusernamesearchString必填wordMatchingMode

find_table

Find Table

Find tables in PDF and get their coordinates. Ref: https://developer.pdf.co/api/pdf-find/table.md

輸入參數url必填pagesapi_keypasswordprofilesexpirationhttppasswordhttpusername

pdf_make_searchable

Pdf Make Searchable

Convert scanned PDF documents or image files into a text-searchable PDF. Runs OCR and adds an invisible text layer that can be used for text search. Ref: https://developer.pdf.co/api/pdf-change-text-searchable/searchable.md

輸入參數url必填langnamepagesapi_keypasswordprofilesexpirationhttppasswordhttpusername

pdf_make_unsearchable

Pdf Make Unsearchable

Make existing PDF document non-searchable by removing the text layer from it. Ref: https://developer.pdf.co/api/pdf-change-text-searchable/unsearchable.md

輸入參數url必填namepagesapi_keypasswordprofilesexpirationhttppasswordhttpusername

pdf_add_password

Pdf Add Password

Add password protection to a PDF file. Ref: https://developer.pdf.co/api/pdf-password/add.md

輸入參數url必填nameapi_keypasswordprofilesexpirationhttppasswordhttpusernameprint_qualityuser_passwordowner_password必填allow_fill_forms另有 7 個

pdf_remove_password

Pdf Remove Password

Remove password protection from a PDF file. Ref: https://developer.pdf.co/api/pdf-password/remove.md

輸入參數url必填nameapi_keypasswordprofilesexpirationhttppasswordhttpusername

pdf_info_reader

Pdf Info Reader

Get detailed information about a PDF document - number of pages, metadata, security, form fields, and more. Ref: https://developer.pdf.co/api/pdf-info-reader.md

輸入參數url必填api_keypasswordprofilesexpirationhttppasswordhttpusername

ai_invoice_parser

Ai Invoice Parser

AI Invoice Parser: Extracts data from invoices using AI. Ref: https://developer.pdf.co/api/ai-invoice-parser.md

輸入參數url必填api_key

extract_attachments

Extract Attachments

Extracts attachments from a source PDF file. Ref: https://developer.pdf.co/api/pdf-extract-attachments.md

輸入參數url必填api_keypasswordprofilesexpirationhttppasswordhttpusername

pdf_add_annotations_images_fields

Pdf Add Annotations Images Fields

Add text, images, forms, other PDFs, fill forms, links to external sites and external PDF files. You can update or modify PDF and scanned PDF files. This tool supports three main ways to add content: 1. **annotations**: Add text, links, shapes, etc. Properties: text, x, y, size, pages, color, link, fontName, fontItalic, fontBold, fontStrikeout, fontUnderline 2. **images**: Add images or other PDF content Properties: url, x, y, width, height, pages 3. **fields**: Fill existing form fields Properties: fieldName, pages, text, fontName, size, fontBold, fontItalic, fontStrikeout, fontUnderline Example annotations: [{"text": "Sample Text - Click here to test link", "x": 250, "y": 240, "size": 24, "pages": "0-", "color": "CCBBAA", "link": "https://pdf.co/", "fontName": "Comic Sans MS", "fontItalic": true, "fontBold": true, "fontStrikeout": false, "fontUnderline": true}] Example images: [{"url": "https://pdfco-test-files.s3.us-west-2.amazonaws.com/pdf-edit/logo.png", "x": 270, "y": 150, "width": 159, "height": 43, "pages": "0"}] Example fields: [{"fieldName": "topmostSubform[0].Page1[0].YourSocial_ReadOrderControl[0].f1_05[0]", "pages": "1", "text": "Joan B.", "fontName": "Arial", "size": 6, "fontBold": true, "fontItalic": true, "fontStrikeout": true, "fontUnderline": true}] Ref: https://developer.pdf.co/api/pdf-add.md

輸入參數url必填namefieldsimagesapi_keyencryptflattenpasswordprofilesexpirationannotationshttppassword另有 1 個

版本歷史

1
  1. v0.0.11最新Oct 22, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分