Dokmatiq DocGen

v0.1.3
io.github.dokmatiq/docgen Checked 1 day ago Published 2 months ago

Generate PDF, DOCX and Excel documents, e-invoices and signed PDFs, and recognize receipts.

Values you need

VariableWhat it is
DOCGEN_API_KEYrequired secret Dokmatiq API key (get one at https://developer.dokmatiq.com)
DOCGEN_BASE_URLoptional Override the API base URL (default: https://api.dokmatiq.com)

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add docgen -e 'DOCGEN_API_KEY=<DOCGEN_API_KEY>' -- uvx --from dokmatiq-docgen-mcp==0.1.3 docgen-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "docgen": {
      "args": [
        "--from",
        "dokmatiq-docgen-mcp==0.1.3",
        "docgen-mcp"
      ],
      "command": "uvx",
      "env": {
        "DOCGEN_API_KEY": "<DOCGEN_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "docgen": {
      "args": [
        "--from",
        "dokmatiq-docgen-mcp==0.1.3",
        "docgen-mcp"
      ],
      "command": "uvx",
      "env": {
        "DOCGEN_API_KEY": "<DOCGEN_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "DOCGEN_API_KEY",
      "id": "docgen-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "docgen": {
      "args": [
        "--from",
        "dokmatiq-docgen-mcp==0.1.3",
        "docgen-mcp"
      ],
      "command": "uvx",
      "env": {
        "DOCGEN_API_KEY": "${input:docgen-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.docgen]
command = "uvx"
args = ["--from", "dokmatiq-docgen-mcp==0.1.3", "docgen-mcp"]
env = { "DOCGEN_API_KEY" = "<DOCGEN_API_KEY>" }

For AI agents

  1. Ask the user for: DOCGEN_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: generate_pdf_from_html, generate_pdf_from_markdown, generate_document, compose_document, create_invoice, merge_pdfs, extract_text_from_pdf, get_pdf_metadata, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json