Docgen MCP Server logo

Docgen MCP Server

Create PDFs, Excel workbooks, and filled AcroForm PDFs through MCP tools with retrievable document resources.

Install Docgen MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "docgen-mcp-server": {
      "command": "bunx",
      "args": [
        "@cyanheads/docgen-mcp-server@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

docgen-mcp-server connects MCP clients to local document-generation workflows for PDF rendering, spreadsheet export, and AcroForm handling. It accepts HTML, Markdown, or template data for PDFs, converts row objects into XLSX worksheets, and inspects or fills PDF form fields. Results use document IDs, resource URIs, metadata, and optionally inline base64, allowing large files to be retrieved separately. Reach for it when an agent needs to produce business documents or populate existing forms rather than only return text.

Use cases

  • Generate branded reports from HTML or Markdown
  • Export query results into named Excel worksheets
  • Inspect unfamiliar AcroForm PDFs before filling them
  • Populate and flatten applications or business forms
  • Retrieve large generated files after inline delivery is omitted

Key features

  • PDF rendering with page and header/footer options
  • XLSX export with worksheet and column specifications
  • AcroForm field discovery and value filling
  • Retrievable document resources with expiring storage
  • STDIO and Streamable HTTP transports
  • Typed errors and degraded-render reporting

Tools5

What Docgen MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~2.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 78d

What it can do

From the 5 tools this server returned when we ran it; 5 declare their own safety hints.

Makes network requests · 3Read-only tools · 5
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age122 days
Maintainers1

Observed 2026-10-28 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @cyanheads/docgen-mcp-server@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads1.1kPackage downloads in the last 30 days.
Last commit8d agoMost recent push to the default branch.
Tools exposed5Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Docgen MCP Server works

What docgen-mcp-server does

docgen-mcp-server provides five MCP tools for creating and retrieving generated documents. docgen_render_pdf turns one of three inputs into a PDF: raw HTML, Markdown, or a {{key}} template paired with a data object. Page size, orientation, margins, headers, footers, and page numbering can be controlled through page options.

docgen_export_spreadsheet builds an .xlsx workbook from one or more named sheets. Each sheet contains row objects, while an optional column definition controls labels, scalar types, widths, and number or date formats. Empty row arrays are supported for header-only sheets.

The form workflow is split into discovery and mutation. docgen_list_form_fields reports exact field names, types, required status, choices, and selected metadata. docgen_fill_form then applies values to an AcroForm PDF supplied as base64 or a public HTTPS URL. It can flatten the result so the filled values are no longer editable.

How it works

Generated files are returned in a shared delivery envelope. It includes a document ID, resource URI, size information, and document-specific counts such as PDF pages or workbook sheets. Small files may also include inline base64; larger files can be read through the docgen://document/{documentId} resource or fetched again with docgen_get_document while the stored document remains within its TTL.

PDF rendering uses a bundled lightweight stack based on pdf-lib and marked. It handles structured content such as headings, paragraphs, lists, and tables, but does not aim to support arbitrary CSS. A degraded result identifies dropped styling or character replacement. Form fetching checks HTTPS destinations and redirect hops against private, loopback, and link-local addresses.

Form field names are case-sensitive in their canonical form, including nested paths. The fill tool reports unmatched names, resolved aliases, invalid values, and dropdowns made editable by custom text. Signatures and buttons can be discovered but are not signed or invoked.

Setup and configuration

The server supports both STDIO and Streamable HTTP transports. It can be installed from the npm package or run from the published Docker image. The underlying MCP framework supports configurable authentication modes including none, JWT, and OAuth, plus storage backends such as in-memory storage, the filesystem, Supabase, and Cloudflare KV/R2/D1.

Document storage is tenant-scoped and expiring, so an ID is usable only by the tenant that created it and only until its retention period ends. Render size and execution time are bounded, producing typed errors instead of allowing an oversized or stalled operation to continue indefinitely.

Tools and capabilities

  • Render HTML, Markdown, or interpolated template data as PDF.
  • Export scalar row objects to named XLSX worksheets.
  • Inspect AcroForm fields before assigning values.
  • Fill forms from base64 data or public PDF URLs and optionally flatten them.
  • Re-fetch stored output through a document ID or MCP resource URI.
  • Return structured metadata and human-readable delivery details on both output surfaces.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Docgen MCP Server

docgen-mcp-server is an MCP server that connects AI clients to local document generation and AcroForm workflows. Its main tools render HTML, Markdown, or templates to PDF, export rows to XLSX, inspect and fill PDF form fields, and retrieve previously generated documents through document IDs or resource URIs.

Install it from the npm package or use the published Docker image. The project also provides installation links for Claude Desktop, Cursor, and VS Code, and supports STDIO and Streamable HTTP transports.

Yes, it fills AcroForm fields from a base64 PDF or a public HTTPS PDF URL. Use `docgen_list_form_fields` first to obtain exact field names and valid options, then call `docgen_fill_form`; set `flatten` to true to make values non-editable.

No, PDF rendering uses a lightweight layout engine for headings, paragraphs, lists, and tables rather than arbitrary CSS. The result reports degraded output when styling, images, scripts, or characters are dropped or replaced.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDocgen MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/docgen-mcp-server?style=directory)](https://allmcps.com/mcp/docgen-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/docgen-mcp-server"><img src="https://allmcps.com/api/badge/docgen-mcp-server?style=directory" alt="Docgen MCP Server on AllMCPs" /></a>