conv2pdf

com.conv2pdfv1.0.1更新于 Oct 5, 2026

Convert Office files, images and e-books to PDF; merge, compress or protect local PDFs.

概览

AI 生成的概览

通过 conv2pdf API 将 Office 文件、图片和电子书转换为 PDF,并合并、压缩、加密或编辑本地 PDF。

功能
这是 conv2pdf API 的官方 stdio MCP 服务器。工具可将 Word、Excel、PowerPoint、OpenDocument、Pages、RTF、TXT、CSV、图片和 EPUB 转换为 PDF,将 HEIC 转为 JPG,将 PDF 转为 Word 或逐页图片,并可合并、提取页面、旋转、编号、加水印、压缩、加密或解锁 PDF。get_quota 工具可查询套餐用量。工具接收本地文件路径,上传文件处理后将结果写到输入文件旁,不覆盖原文件。
适用场景
适合需要在本机生成或整理 PDF 的场景,例如转换报告、合并多个 PDF、压缩扫描件或添加密码。若更看重转换质量和欧盟境内处理,而非完全离线完成,则较为适用。
运行要求
需要 Node.js 22 或更高版本及 npx,以本地 stdio 进程运行。需要 conv2pdf 账号,并在 CONV2PDF_API_KEY 环境变量中提供在控制台 Developer 标签页创建的 API 密钥。需要访问 conv2pdf API 的网络连接。Dev 套餐含 300 次免费转换,有效期 12 个月;付费套餐提高文件大小上限。
安装前请注意
文件会上传到 conv2pdf 服务器进行转换,文档内容会离开本机;其说明称处理在法国的 OVHcloud 服务器上进行。CONV2PDF_API_KEY 是仅在创建时显示一次的密钥。每次转换都会消耗套餐配额,包括部分被拒绝的任务,且每个密钥每分钟最多 20 次转换。工具会向磁盘写入新文件,并可设置或移除 PDF 密码。

安装

在 SourceWeft 中

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

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

conv2pdf-mcp

Official Model Context Protocol server of the conv2pdf API. Your AI assistant converts Word, Excel, PowerPoint, Pages, images and e-books to PDF, converts PDFs to Word or to images, and merges, compresses, protects, rotates or numbers the PDFs that are on your computer. Processing runs on OVHcloud servers in France: no transfer outside the EU, no US service in the chain.

Installation · Tools · How it behaves · Development

Installation

  1. Create an account on conv2pdf.com. The Dev plan includes 300 free conversions, valid for 12 months; see pricing for the paid plans.
  2. Create an API key, which starts with cpdf_live_, in the Developer tab of your dashboard. conv2pdf shows it only once, at creation.
  3. Add the server to your MCP client, with the key in the CONV2PDF_API_KEY environment variable. It needs Node.js 22 or later.

In Claude Code:

bash
claude mcp add --env CONV2PDF_API_KEY=cpdf_live_... --transport stdio conv2pdf -- npx -y conv2pdf-mcp

On Windows, put cmd /c before npx.

In Claude Desktop, Cursor and the other clients configured with a JSON file:

json
{  "mcpServers": {    "conv2pdf": {      "command": "npx",      "args": ["-y", "conv2pdf-mcp"],      "env": { "CONV2PDF_API_KEY": "cpdf_live_..." }    }  }}

Then ask for what you need: "convert report.docx to PDF", "merge these three PDFs", "compress scan.pdf and protect it with a password".

Tools

ToolWhat it does
convert_to_pdfWord, Excel, PowerPoint, OpenDocument, Apple Pages, RTF, TXT, CSV, PNG, JPG, WebP, GIF, TIFF, HEIC or EPUB file to PDF, chosen from the extension
convert_heic_to_jpgiPhone HEIC or HEIF photo to JPG
convert_pdf_to_wordPDF with real text to an editable DOCX document
convert_pdf_to_imagesOne PNG or JPG per page, in a ZIP file
merge_pdfsCombine several PDFs into one, in the order given
extract_pdf_pagesKeep the pages you list, such as 1-5,7,10-12, in a new PDF
rotate_pdfTurn every page by 90, 180 or 270 degrees
add_page_numbersNumber the pages, as "3 / 12" or "3", bottom center, left or right
add_watermarkStamp a text of up to 50 characters on every page
compress_pdfReduce the size, keeping images at 72, 150 or 300 DPI
protect_pdfSet a password, and optionally forbid printing or copying
unlock_pdfRemove a password you know, or the printing and copying restrictions
get_quotaPlan, usage and limits of the API key

How it behaves

  • Files stay on your computer, except for the conversion. A tool takes the path of a file, sends the file to conv2pdf and writes the result on your disk. conv2pdf checks the content of the file, not only its name.
  • Nothing is overwritten. The result goes next to the input file: report.docx gives report.pdf, and a PDF tool adds a suffix, such as report-compressed.pdf. When that name is taken, the server writes report (2).pdf. The assistant can choose the place with output_path; if a file is already there, the tool refuses before converting anything.
  • Deleted from the server. Once the result is on your disk, the server deletes the job from conv2pdf. Should that fail, conv2pdf deletes the files after one hour.
  • Quota. Each conversion counts as one in the quota of your plan, including one that conv2pdf refuses after reading the file, such as an unreadable or scanned PDF, or one with too many pages. A file refused on arrival (wrong type, too large, password missing), a refused setting (a page range that does not exist, a password that is too short) and a failure on the side of conv2pdf count for nothing, and get_quota is free. Files can weigh up to 10 MB on the Dev plan and 200 MB on paid plans.
  • Rate limit. The API accepts 20 conversions per minute per API key. When it asks to slow down, or when its queue is full, the server waits for the delay the API gives and tries again, twice at most and only for delays of 30 seconds or less; otherwise the assistant gets the delay to wait.
  • Protected PDFs. The tools that read a PDF, except merge_pdfs, open one that asks for a password when the assistant passes it as password. The result has no password. For a merge, unlock the protected PDFs first.
  • Pages and Numbers. A Pages document keeps its .pages extension: only the name tells it from a Numbers spreadsheet, which conv2pdf does not convert, like Keynote presentations.
  • Errors. A refusal comes back to the assistant as a sentence it can act on: the wrong password, the page range that does not exist, the plan limit, the key to set. A cancelled call stops the transfer and leaves no file behind.
  • Without a key. The server starts and lists its tools; a call explains how to set CONV2PDF_API_KEY.

Every request carries User-Agent: conv2pdf-mcp/<version>. Mention it when you contact support: it tells your calls apart in the API's logs.

Development

The server has no dependency: Node.js runs the sources as they are. It talks to its client over stdio and serves both eras of the protocol from the same process: revision 2026-07-28, where each request carries its protocol version, and the earlier revisions (2025-11-25 down to 2024-11-05), which start with an initialize handshake.

bash
npm test

runs the tests against a fake conv2pdf API on a local port: no key and no network are needed.

bash
npm run check-tools

compares the extensions convert_to_pdf routes on with what the live API accepts (GET /v1/tools).

Releasing

  1. Set the version in package.json and server.json, and date its section in CHANGELOG.md.
  2. Run npm test and npm run check-tools.
  3. Commit, then push a tag named after the version: the Publish workflow publishes the package to npm through Trusted Publishing, with a provenance statement.
  4. Publish the entry of the MCP Registry: mcp-publisher login http --domain conv2pdf.com, then mcp-publisher publish. The name com.conv2pdf/conv2pdf is proved by the public key served at https://conv2pdf.com/.well-known/mcp-registry-auth.

Resources

Support

Open an issue or write to [email protected].

License

MIT, see LICENSE.

来源:README.md,提交 46c7db3

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v1.0.1最新Oct 5, 2026