conv2pdf
com.conv2pdfv1.0.1更新于 Oct 5, 2026
Convert Office files, images and e-books to PDF; merge, compress or protect local PDFs.
概览
通过 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 个月;付费套餐提高文件大小上限。
安装
在 SourceWeft 中
- 打开 控制台中的 conv2pdf,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
- Create an account on conv2pdf.com. The Dev plan includes 300 free conversions, valid for 12 months; see pricing for the paid plans.
- Create an API key, which starts with
cpdf_live_, in the Developer tab of your dashboard. conv2pdf shows it only once, at creation. - Add the server to your MCP client, with the key in the
CONV2PDF_API_KEYenvironment variable. It needs Node.js 22 or later.
In Claude Code:
On Windows, put cmd /c before npx.
In Claude Desktop, Cursor and the other clients configured with a JSON file:
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
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.docxgivesreport.pdf, and a PDF tool adds a suffix, such asreport-compressed.pdf. When that name is taken, the server writesreport (2).pdf. The assistant can choose the place withoutput_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_quotais 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 aspassword. The result has no password. For a merge, unlock the protected PDFs first. - Pages and Numbers. A Pages document keeps its
.pagesextension: 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.
runs the tests against a fake conv2pdf API on a local port: no key and no network are needed.
compares the extensions convert_to_pdf routes on with what the live API accepts (GET /v1/tools).
Releasing
- Set the version in
package.jsonandserver.json, and date its section inCHANGELOG.md. - Run
npm testandnpm run check-tools. - Commit, then push a tag named after the version: the Publish workflow publishes the package to npm through Trusted Publishing, with a provenance statement.
- Publish the entry of the MCP Registry:
mcp-publisher login http --domain conv2pdf.com, thenmcp-publisher publish. The namecom.conv2pdf/conv2pdfis proved by the public key served athttps://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- v1.0.1最新Oct 5, 2026

