
Mcp Pdf
io.github.kmalakoff由 GitHub 账号 kmalakoff 发布v1.0.3更新于 Oct 24, 2026
MCP server for PDF generation using PDFKit
概览
让助手在本地生成 PDF 文档、版式和简历,将 PDF 页面渲染为 PNG,并测量文本。
- 可以做什么
- 这是一个基于 PDFKit 的本地 MCP 服务器,通过工具创建 PDF 文件。pdf-document 工具生成可自动分页的流式文档,pdf-layout 构建幻灯片、传单等精确定位的版式,pdf-resume 生成 JSON Resume 文档。pdf-image 将 PDF 页面渲染为 PNG,text-measure 在排版前测量文本。工具调用会返回生成 PDF 的文件 URI 和元数据。
- 适用场景
- 适合助手需要在用户机器上生成 PDF 输出的场景,例如报告、传单、幻灯片或简历,或将 PDF 页面转换为 PNG 图片。适用于不希望使用云服务或 API 密钥的本地文档生成。
- 运行要求
- 作为本地进程通过 stdio 或 HTTP 运行,需要 Node.js >=22.13;示例使用 npm 自带的 npx。未声明 API 密钥或身份验证。仅支持桌面端。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Pdf,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@mcp-z/mcp-pdf
Create PDF documents and layouts, render pages to PNG, and measure text through MCP. The server runs locally and requires no API key.
Requires Node.js >=22.13. The examples use npx, included with npm, to run this server and @mcp-z/cli.
Transports
MCP supports stdio and HTTP.
Both transports support the 2025 and 2026-07-28 protocol revisions. The 2026 revision is stateless, so clients using it send no initialize handshake or session ID.
Save one of these configurations as .mcp.json in the directory where you will run the commands.
Stdio
HTTP
start is an extension used by npx @mcp-z/cli up to launch HTTP servers for you. The MCP endpoint is /mcp.
First use
The tool returns a file URI and metadata for the generated PDF. See the complete tool reference for parameters and examples.
Tool summary
External resources
None.
Prompts
- resource-fetching
Resources
- PDFKit Documentation
- JSON Resume Schema
- JSON Resume Editor
Documentation
来源:README.md,提交 f2b6035
工具
0版本历史
1- v1.0.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分