io.github.cyanheads

docgen-mcp-server

Render HTML/markdown to PDF, export rows to xlsx, and fill AcroForm PDFs.

communityapplication

Package Details

Transportstdio
Runtimebun

Package Arguments

Positional
Position 0
run
Position 1
start:stdio

Environment Variables

MCP_LOG_LEVEL(str)
Default:info

Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

DOCGEN_DOCUMENT_TTL_SECONDS(str)
Default:900

How long a rendered document is retrievable before it expires, in seconds.

DOCGEN_MAX_DOCUMENT_BYTES(str)
Default:26214400

Hard ceiling on a single rendered artifact in bytes; exceeding it aborts the render.

DOCGEN_RENDER_TIMEOUT_MS(str)
Default:30000

Per-render wall-clock budget in milliseconds; exceeding it aborts the render.

DOCGEN_INLINE_MAX_BYTES(str)
Default:5242880

Artifacts at or under this byte size are returned inline as base64; larger ones omit it.

DOCGEN_PDF_ENGINE(str)
Default:lightweight

PDF rendering engine. Only 'lightweight' is implemented; 'chromium' is reserved and rejected at startup.

TransportStreamable HTTP
Runtimebun

Package Arguments

Positional
Position 0
run
Position 1
start:http

Environment Variables

MCP_HTTP_HOST(str)
Default:127.0.0.1

The hostname for the HTTP server.

MCP_HTTP_PORT(str)
Default:3010

The port to run the HTTP server on.

MCP_HTTP_ENDPOINT_PATH(str)
Default:/mcp

The endpoint path for the MCP server.

MCP_AUTH_MODE(str)
Default:none

Authentication mode to use: 'none', 'jwt', or 'oauth'.

MCP_LOG_LEVEL(str)
Default:info

Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

DOCGEN_DOCUMENT_TTL_SECONDS(str)
Default:900

How long a rendered document is retrievable before it expires, in seconds.

DOCGEN_MAX_DOCUMENT_BYTES(str)
Default:26214400

Hard ceiling on a single rendered artifact in bytes; exceeding it aborts the render.

DOCGEN_RENDER_TIMEOUT_MS(str)
Default:30000

Per-render wall-clock budget in milliseconds; exceeding it aborts the render.

DOCGEN_INLINE_MAX_BYTES(str)
Default:5242880

Artifacts at or under this byte size are returned inline as base64; larger ones omit it.

DOCGEN_PDF_ENGINE(str)
Default:lightweight

PDF rendering engine. Only 'lightweight' is implemented; 'chromium' is reserved and rejected at startup.