# Docmill

> Docmill is a freemium MCP server for files and documents. Generate PDF, DOCX and XLSX documents from JSON data for automations and AI agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** Web, API, CLI, Self-hosted
- **Website:** https://docmill.io
- **MCP Registry name:** io.docmill/mcp-server
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-21

## About

Docmill turns structured JSON into finished PDF, DOCX and XLSX files. Instead of building layouts by hand, you describe the document you need in plain language and the service drafts a template with sample data showing which fields to send. Each template is stored as plain HTML, so it can be inspected and edited directly.

The service is reached through a REST endpoint, connectors for n8n, Make and Zapier, and an MCP server that lets AI agents create documents and manage templates. Files can be returned synchronously, as base64, or as asynchronous jobs for bulk runs. A set of starter templates such as invoices, quotes, monthly reports and certificates can be referenced directly without building anything first.

The MCP server runs over stdio from an npm package and requires a Docmill API key. It suits teams automating billing, reporting or certificate issuance who want documents produced as part of an existing workflow.

## Features

- **Plain language template drafting:** Describe a document in everyday words and receive a generated template with sample data.
- **PDF, DOCX and XLSX output:** Produce all three file formats from the same template pipeline.
- **Editable HTML templates:** Every template is plain HTML that can be inspected and adjusted.
- **Starter template library:** Ready-made invoice, quote, monthly report and certificate templates are included with each account.
- **Flexible response modes:** Receive files synchronously, as base64, or through async jobs for bulk generation.
- **Automation connectors:** Connectors are available for n8n, Make and Zapier, alongside a REST API.

## Good for

- Generating invoices and quotes from data produced in an automation
- Creating monthly KPI reports as spreadsheets or PDFs on a schedule
- Issuing completion certificates after a course or event
- Letting an AI agent produce documents as part of a multi-step task
- Batch-generating many documents through asynchronous bulk jobs

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server --env DOCMILL_API_KEY='<DOCMILL_API_KEY>' -- npx -y @docmill/mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server --env DOCMILL_API_KEY='<DOCMILL_API_KEY>' -- npx -y @docmill/mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@docmill/mcp-server"]
env = { DOCMILL_API_KEY = "<DOCMILL_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e DOCMILL_API_KEY='<DOCMILL_API_KEY>' mcp-server npx -- -y @docmill/mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
```

## FAQ

### How is usage counted?

A document is one generated file in any format, so billing is per document rather than per credit or per page.

### Is there a free plan?

Yes, the free tier includes 50 documents per month with all formats and starter templates, and adds a small watermark.

### What does the MCP server need to run?

It runs over stdio as an npm package and requires a DOCMILL_API_KEY; the base URL can optionally be overridden.

### Can I use my own templates?

You can paste an existing document or describe one, and Docmill generates a template you can edit as HTML.

### How do I add Docmill to Claude Code?

Run this command in your terminal: claude mcp add mcp-server --env DOCMILL_API_KEY='<DOCMILL_API_KEY>' -- npx -y @docmill/mcp-server

### What are the best alternatives to Docmill?

The closest alternatives to Docmill are Documentero, DocMake, PodPDF, Document to JSON – PDF Invoice/Statement/Contract Parser and DocsAutomator.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Documentero](https://ai-powered.com/mcp/documentero): Documentero is a freemium MCP server for files and documents.
- [DocMake](https://ai-powered.com/mcp/docmake): DocMake is a freemium MCP server for files and documents.
- [PodPDF](https://ai-powered.com/mcp/podpdf): PodPDF is a freemium MCP server for files and documents.
- [Document to JSON – PDF Invoice/Statement/Contract Parser](https://ai-powered.com/mcp/document-to-json-pdf-invoice-statement-contract-parser): Document to JSON – PDF Invoice/Statement/Contract Parser is a paid MCP server for files and documents.
- [DocsAutomator](https://ai-powered.com/mcp/docsautomator): DocsAutomator is a paid MCP server for files and documents.
- [Docx Forge](https://ai-powered.com/mcp/docx-forge): Docx Forge is an open-source MCP server for files and documents.
- [DocuQueue MCP](https://ai-powered.com/mcp/docuqueue-mcp): DocuQueue MCP is a freemium MCP server for files and documents.
- [Document to Markdown for AI Agents](https://ai-powered.com/mcp/document-to-markdown-for-ai-agents): Document to Markdown for AI Agents is an MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/docmill
