# DocMake [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/docmake-io/mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 184  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/docmake

## Description
Generate DOCX and PDF documents from your DocMake templates

## Tools
Capabilities this server exposes over MCP:

- **list_templates** — List the DocMake templates in the connected workspace. Returns each template's id, name, variable count, and timestamps. Use this first when you need a template_id for `get_template` or `render_document`. Supports search by name and pagination.
- **get_template** — Get a template's metadata and its field tree: every variable the template expects, as dotted keys matching the shape of the `data` payload for `render_document` (list fields carry their per-item subfields). Call this before rendering so you know exactly which data to supply. Set include_schema:true only if you need the raw document schema JSON, for example as a starting point for `create_template`; it can be large.
- **render_document** — Render a DocMake template to PDF or DOCX with the given data and save the file locally. Returns the absolute path of the saved file. `data` keys must match the template's fields; call `get_template` first if you are not sure. Renders are strict by default: if any variable has no value the render fails and lists the missing keys so you can fill them in. Pass strict:false to render anyway using each variable's fallback text.
- **create_template** — Create a new DocMake template from a document schema JSON. The schema is DocMake's document format: a rich-text tree with typed variable nodes, conditionals, and loops. Learn the format by calling `get_template` with include_schema:true on an existing template and adapting it. After creating, render a test document to verify the layout.
- **import_docx** — Import a local .docx file as a new DocMake template. The document's structure (headings, paragraphs, tables, styling) is converted into an editable template; afterwards you can add variables in the visual editor, or inspect the result with `get_template`. Max 10 MB.
- **get_usage** — Get the workspace's plan, renders used vs. limit for the current billing period, template count, and API rate limits. Check this if renders start failing with quota errors.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "docmake": {
    "command": "npx",
    "args": ["-y","@docmake/mcp@latest"],
    "env": {
      "DOCMAKE_API_KEY": "",
      "DOCMAKE_OUTPUT_DIR": "",
      "DOCMAKE_API_BASE": ""
    }
  }
}
```

**Requires environment variables:** `DOCMAKE_API_KEY`, `DOCMAKE_OUTPUT_DIR`, `DOCMAKE_API_BASE` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What DocMake MCP server does

The DocMake MCP server exposes DocMake’s document-generation workflow through MCP. It lets an assistant find templates in a workspace, inspect the variables each template expects, provide values, and render a completed document as PDF or DOCX. It also supports creating templates from document schema JSON and importing an existing local `.docx` file as a new template.

The server includes six tools: `list_templates`, `get_template`, `render_document`, `create_template`, `import_docx`, and `get_usage`. Templates are also available as MCP resources, and a `generate-document` prompt provides a guided rendering flow.

## How it works

Each tool call is sent to the DocMake API over HTTPS using an API key. `get_template` returns the template’s field tree, including defaults and preview-only examples, so an assistant can prepare render data. `render_document` is strict by default: missing values cause the operation to fail and return the missing keys. A variable with a configured default does not count as missing. Passing `strict: false` allows fallback text to be rendered instead.

With the local MCP package, completed files are written to the configured output directory and are not overwritten if a file with the same name already exists. The hosted streamable-HTTP endpoint follows the same tool behavior, but returns a short-lived download link for rendered files and accepts imported DOCX content as base64 because it cannot access the client’s filesystem.

## Setup and configuration

The DocMake MCP server requires an API key created in the DocMake dashboard under Settings > API Keys. The package runs through `npx` and can be added to Claude Desktop, Claude Code, Cursor, or another client that supports stdio MCP servers. The hosted endpoint at `https://app.docmake.io/mcp/v1` can be used by clients that support remote MCP without installing the package.

Set `DOCMAKE_API_KEY` to authenticate requests. `DOCMAKE_OUTPUT_DIR` optionally changes the local destination for rendered documents; its default is `~/Downloads/DocMake`. `DOCMAKE_API_BASE` optionally overrides the API base URL, including for self-hosted setups.

## Tools and capabilities

- `list_templates`: searches and paginates through workspace templates.
- `get_template`: returns the variables and field structure required by a template.
- `render_document`: creates a PDF or DOCX from a template and render data.
- `create_template`: creates a template from document schema JSON.
- `import_docx`: turns a local DOCX file into a template.
- `get_usage`: reports the current plan, render quota, and rate limits.

## Limitations and notes

The DocMake MCP server sends tool-call data to the DocMake API, including template identifiers, render data, or a DOCX explicitly submitted for import. It does not read chat history, memory, or unrelated files, and the package reports no telemetry or analytics of its own. Templates and account data remain in the DocMake workspace until deleted or the account is closed.

Local rendered documents stay on the machine under `DOCMAKE_OUTPUT_DIR`. Remote rendering instead provides a temporary download link. The API key must be supplied through the MCP client configuration or environment, and rendering still depends on the account’s quota and rate limits.

_Full upstream README: https://allmcps.com/mcp/docmake/readme_

