
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 分