Dokmatiq DocGen

Dokmatiq DocGen

PDF/DOCX/Excel generation from HTML/Markdown with stationery overlay, ZUGFeRD/XRechnung e-invoicing, digital signing, form filling, and AI receipt OCR with DATEV/SKR03 export.

Category
Visit Server

README

Dokmatiq DocGen SDKs

CI TypeScript CI Python CI Java CI .NET CI PHP

Official SDKs for the Dokmatiq DocGen API -- document generation, e-invoicing, Excel workbooks, receipt recognition, and PDF tools in a single API.

SDKs

Language Package Install
TypeScript @dokmatiq/docgen npm install @dokmatiq/docgen
Python dokmatiq-docgen pip install dokmatiq-docgen
Java com.dokmatiq:docgen-sdk Maven / Gradle
PHP dokmatiq/docgen-sdk composer require dokmatiq/docgen-sdk
C# / .NET Dokmatiq.DocGen dotnet add package Dokmatiq.DocGen

Also included: MCP Server for AI assistants (any MCP client — Claude Desktop, Cursor, Continue, Cline, …) and a Claude Code Plugin (one-step install of the MCP plus a triggering skill).


Features

All SDKs provide the same capabilities with idiomatic APIs:

Document Generation

HTML, Markdown, and ODT templates to PDF, DOCX, or ODT -- with field substitution, images, QR codes, tables, watermarks, and stationery overlays.

E-Invoicing (ZUGFeRD / XRechnung)

Embed and extract structured invoice data in PDF invoices (EN16931). Generate, parse, validate, and transform XRechnung XML (CII and UBL).

Excel Workbooks

Create styled XLSX from JSON with formulas, freeze panes, auto-filters, and cell styling. Convert between XLSX, CSV, and JSON. Fill Excel templates.

Receipt Recognition (AI-Powered)

Extract structured data from receipt and invoice images:

  • Vendor, date, totals (gross / net / VAT per rate)
  • Line items with quantity, unit price, and total
  • SKR03/04 account mapping for German bookkeeping
  • Multi-currency support with exchange rates
  • DATEV-compatible CSV export
  • Confidence score for extraction quality
  • Async processing for large batches
const result = await dg.receipts.extract("receipt.jpg");
// { vendor, date, total: { gross, net, vat }, skr03Account, lineItems, confidence, ... }

const csv = await dg.receipts.exportDatev([result]);

PDF Operations

Merge, split, rotate, extract text, read/write metadata, convert to PDF/A.

Digital Signatures

Sign PDFs with PKCS#12 certificates. Verify existing signatures.

PDF Forms

Inspect and fill PDF form fields programmatically.

Preview

Render PDF pages as PNG images for thumbnails and previews.

Async Processing

Submit long-running jobs with polling or webhook callbacks.


Quick Start

# 1. Get an API key at https://developer.dokmatiq.com
# 2. Install your SDK of choice

npm install @dokmatiq/docgen          # TypeScript
pip install dokmatiq-docgen           # Python
composer require dokmatiq/docgen-sdk  # PHP
dotnet add package Dokmatiq.DocGen    # .NET
# Maven: com.dokmatiq:docgen-sdk     # Java
import { DocGen } from "@dokmatiq/docgen";

const dg = new DocGen({ apiKey: "your-api-key" });

// Generate a PDF
const pdf = await dg.htmlToPdf("<h1>Hello World</h1>");

// Build a complex document
const doc = await dg.document()
  .html("<h1>Invoice {{nr}}</h1>")
  .field("nr", "RE-2026-001")
  .watermark("DRAFT")
  .asPdf()
  .generate();

// Extract receipt data
const receipt = await dg.receipts.extract("receipt.jpg");

// Create an Excel workbook
const xlsx = await dg.excel.generate({
  sheets: [{ name: "Report", columns: [...], rows: [...] }]
});

Documentation

Each SDK has its own detailed README with full examples: TypeScript | Python | Java | PHP | .NET


License

MIT -- Copyright 2026 Dokmatiq

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured