New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@docmake/mcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docmake/mcp

Model Context Protocol server for DocMake - lets AI assistants generate DOCX and PDF documents from your templates.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
21
-38.24%
Maintainers
1
Weekly downloads
 
Created
Source

@docmake/mcp

Official Model Context Protocol server for DocMake, the AI-native document generation platform. It lets AI assistants like Claude generate DOCX and PDF documents from your DocMake templates: no glue code, just a conversation.

"Generate the invoice for Acme Corp: 10 hours of consulting at 100 EUR, due in 14 days."

The assistant picks your invoice template, fills in the data, renders a PDF through the DocMake API, and hands you the file path.

Setup

You need a DocMake API key. Create one at app.docmake.io under Settings > API Keys (free plan works).

Claude Desktop

Add to claude_desktop_config.json (Settings > Developer > Edit Config):

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

Claude Code

claude mcp add docmake --env DOCMAKE_API_KEY=dm_your_key_here -- npx -y @docmake/mcp@latest

Cursor / other MCP clients

Any client that supports stdio MCP servers works with the same command: npx -y @docmake/mcp@latest with DOCMAKE_API_KEY in the environment.

Configuration

VariableRequiredDefaultPurpose
DOCMAKE_API_KEYyesAPI key from app.docmake.io, Settings > API Keys
DOCMAKE_OUTPUT_DIRno~/Downloads/DocMakeWhere rendered documents are saved
DOCMAKE_API_BASEnohttps://app.docmake.io/api/v1API base URL, override for self-hosted setups

Tools

ToolWhat it does
list_templatesList the templates in your workspace, with search and pagination
get_templateA template's field tree: every variable it expects, ready to map to render data
render_documentRender a template to PDF or DOCX and save the file locally
create_templateCreate a new template from a document schema JSON
import_docxImport a local .docx file as a new template
get_usagePlan, render quota, and rate limits for the current billing period

The server also exposes your templates as MCP resources and ships a generate-document prompt for a guided render flow.

How rendering works

render_document is strict by default: if any template variable has no value in data, the render fails and returns the list of missing keys, so the assistant can ask you for the values instead of producing an incomplete document. Pass strict: false to render with each variable's fallback text instead.

Rendered files are saved to DOCMAKE_OUTPUT_DIR and never overwrite an existing file.

License

MIT

Keywords

mcp

FAQs

Package last updated on 09 Aug 2026

Related posts