
Dokmatiq DocGen
io.github.dokmatiq由 GitHub 帳號 dokmatiq 發布v0.1.3更新於 Oct 24, 2026
Generate PDF, DOCX and Excel documents, e-invoices and signed PDFs, and recognize receipts.
概覽
讓助理產生 PDF、DOCX 與 Excel 文件、電子發票與簽章 PDF,並從收據擷取資料。
- 可以做什麼
- 把 Dokmatiq DocGen API 包裝成文件產生工具:從 HTML 或 Markdown 產生 PDF、依範本產生文件、組合多段文件、建立發票、產生 Excel 活頁簿與 CSV 轉換。也支援 PDF 合併、文字擷取、中繼資料讀取、PDF/A 轉換、旋轉、表單檢視與填寫,以及使用 PKCS#12 憑證進行數位簽章。電子發票工具可驗證與解析 ZUGFeRD 與 XRechnung,收據工具可從圖片擷取供應商、金額、營業稅與明細,並匯出 DATEV 或 Excel。
- 適用情境
- 適合需要助理產出成品商務文件的場合:發票、費用報告、含公司信頭的文件、填寫 PDF 表單、簽章或歸檔 PDF,以及結構化 Excel 輸出。也適用於德國電子發票法規作業,以及把收據照片轉成記帳資料。
- 執行需求
- 以 Python 套件(dokmatiq-docgen-mcp)透過 stdio 在使用者本機執行,需要 Python 3.11 以上版本。必須在 DOCGEN_API_KEY 環境變數提供 Dokmatiq API 金鑰;可用 DOCGEN_BASE_URL 覆寫預設 API 位址。需要連線至 Dokmatiq API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Dokmatiq DocGen,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Dokmatiq DocGen MCP Server
MCP (Model Context Protocol) server that exposes the Dokmatiq DocGen document generation API as tools for AI assistants like Codex, Claude Code, Claude Desktop, Cursor, Continue, Cline, and Hermes.
Use it to generate PDFs, DOCX/ODT documents, Excel workbooks, invoices, e-invoices (ZUGFeRD/XRechnung/Factur-X), receipt exports, signed PDFs, PDF forms, and documents on company letterhead (Briefpapier/Firmenpapier).
Setup
Prerequisites
- Python 3.11+
- DocGen API key
Installation
The package requires Python 3.11 or newer. On macOS, the system or Xcode-provided python3 can be too old; use Homebrew Python, pyenv, uv, or another Python 3.11+ runtime if pip cannot find a compatible package.
pip install --user commonly installs the docgen-mcp command into ~/.local/bin. If your MCP client cannot find docgen-mcp, add ~/.local/bin to PATH or use the absolute command path in your MCP config.
Or install from source:
Running tests
From the repository root, use the checked-in lockfile to install the MCP server and run its stdio/client smoke tests:
Configuration
Set your API key as an environment variable:
Optionally override the base URL:
Usage with Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
Or using uvx:
Usage with Claude Code
Set the API key in your environment or .env file.
Usage with Codex
Install the companion skill:
Then configure an MCP server named docgen using either docgen-mcp, an absolute path such as /Users/you/.local/bin/docgen-mcp, or uvx dokmatiq-docgen-mcp. Make sure DOCGEN_API_KEY is available to the server process.
Usage with Hermes
Add the MCP server to your Hermes config (~/.hermes/config.yaml):
Replace dk_live_xxx with your Dokmatiq API key.
Environment Variables in MCP Configs
Do not use shell placeholders such as ${DOCGEN_API_KEY} inside JSON MCP config files unless your specific client documents that it expands them. Many MCP clients pass that value literally to the server, which causes authentication to fail.
Available Tools
Document Generation
PDF Tools
PDF Forms
Digital Signatures
Templates & Fonts
Preview
Excel Workbooks
E-Invoicing
Receipt Recognition (AI-Powered)
Example Prompts
Once connected, you can ask Claude:
- "Generate a PDF from this HTML:
<h1>Hello World</h1>" - "Create an invoice for ACME GmbH to Kunde AG for 8 hours of consulting at 120€/hour"
- "Merge these two PDFs together"
- "Extract the text from this PDF"
- "Fill the form fields name=Max and date=12.04.2026 in this PDF"
- "Extract the data from this receipt image -- I need vendor, total, and VAT breakdown"
- "Analyze these receipts and export them as a DATEV CSV"
- "Turn this receipt photo into an expense report PDF"
License
MIT
來源:mcp/README.md,提交 5d90266
工具
0版本歷史
2- v0.1.3最新Sep 26, 2026
- v0.1.2Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分