Dokmatiq DocGen
v0.1.3Generate PDF, DOCX and Excel documents, e-invoices and signed PDFs, and recognize receipts.
Values you need
| Variable | What it is | |
|---|---|---|
DOCGEN_API_KEY | required secret | Dokmatiq API key (get one at https://developer.dokmatiq.com) |
DOCGEN_BASE_URL | optional | 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-mcpAdd 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
- Ask the user for: DOCGEN_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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