Skip to content
MCP serverOfficial: Published to the official MCP Registry by the GitHub account or domain it is named after, which owns its code or website.

Docmill

Generate PDF, DOCX and XLSX documents from JSON data for automations and AI agents

Runs locally

Docmill is a freemium MCP server for files and documents. It runs locally on your machine and is started by your AI client.

Pricing
Freemium
Platforms
Web, API, CLI
Runs
Locally
Access
Needs a secret key or token
Version
0.1.2
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@docmill/mcp-server"
      ],
      "env": {
        "DOCMILL_API_KEY": "<DOCMILL_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • DOCMILL_API_KEYDocmill API key (create one at https://docmill.io)Required
  • DOCMILL_BASE_URLOverride the Docmill API base URL (defaults to https://api.docmill.io)

About Docmill

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.

What it does

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

Pricing

Freemium

Free plan with 50 documents/month; Starter 1,000 documents/month, Growth 5,000, Scale 15,000

Prices change. Check docmill.io before you buy.

Docmill 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.

How AIPoweredBot checks servers