
Docjet Mcp
io.github.docjet-dev由 GitHub 帳號 docjet-dev 發布v1.0.1更新於 Oct 24, 2026
Render branded PDFs and PNG images from templates or raw HTML via the DocJet API. Free tier.
概覽
DocJet MCP 讓助理透過 DocJet API 以範本或原始 HTML 產生品牌化 PDF 與 PNG 圖片,並回傳簽章下載連結。
- 可以做什麼
- 依範本 ID 或原始 HTML 加 JSON 資料產生品牌化 PDF 文件(如發票、報告、證書),回傳簽章下載連結。以相同方式產生 PNG 圖片(如社群或 OG 卡片)。列出可用範本及其 ID、名稱、描述與輸出類型。範本 ID 會在發出網路請求前於本機驗證,API 錯誤會以附帶 DocJet 錯誤碼的 MCP 錯誤內容回傳。
- 適用情境
- 適合希望助理依需求產生成品文件或分享圖片(發票、證書、報告、社群卡片),而不必自行建置產生流程的情境。適用於輸出為可下載檔案而非純文字的工作流程。
- 執行需求
- 透過 stdio 在本機執行,通常以 npx 啟動,因此需要 Node.js。需在 DOCJET_API_KEY 環境變數提供 DocJet API 金鑰,可向 DocJet 取得免費金鑰。選用的 DOCJET_BASE_URL 變數可覆寫預設 API 位址。產生文件需要連線至 DocJet API;列出範本不需金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Docjet Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
docjet-mcp
MCP server for DocJet — render branded PDF documents (invoices, reports, certificates) and PNG social images directly from any MCP client (Claude Desktop, Claude Code, Cursor, Windsurf, ...).
Send a template ID or raw HTML plus JSON data; get back a signed download URL. Runs locally over stdio via npx — nothing to host.
Quick start
Add to your MCP client configuration:
Get an API key at docjet.dev. To try it without signing up, use the public demo key (rate-limited to 3 req/min, 50 renders/month, shared by everyone):
Tools
Example prompt once connected:
"List the DocJet templates, then render the invoice-ro template with client 'Demo SRL' and total 1000 as a PDF."
Environment variables
How it works
- Stdio transport using the official
@modelcontextprotocol/sdk(v1). render_pdf→POST /v1/render?response=url,render_image→POST /v1/image?response=url,list_templates→GET /v1/templates.- Template IDs are validated locally against
^[a-z0-9][a-z0-9-]{0,63}$before any network call. - API errors surface as MCP error content with the DocJet error code (e.g.
QUOTA_EXCEEDED,RATE_LIMITED).
Links
- API docs: docjet.dev/docs
- JS/TS SDK:
docjeton npm - Support: [email protected]
License
MIT
來源:README.md,提交 03044f6
工具
0版本歷史
1- v1.0.1最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。