← Back to Plugins
MCP Server MCP

io.github.cyanheads/docgen-mcp-server

github By github 👁 1 views ▲ 0 votes

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

Homepage Verified source GitHub

Install

npx -y @cyanheads/[email protected]

Configuration Example

{
  "remotes": [],
  "packages": [
    {
      "registryType": "npm",
      "registryBaseUrl": "https://registry.npmjs.org",
      "identifier": "@cyanheads/docgen-mcp-server",
      "version": "0.2.2",
      "runtimeHint": "bun",
      "transport": {
        "type": "stdio"
      },
      "packageArguments": [
        {
          "value": "run",
          "type": "positional"
        },
        {
          "value": "start:stdio",
          "type": "positional"
        }
      ],
      "environmentVariables": [
        {
          "description": "Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').",
          "format": "string",
          "default": "info",
          "name": "MCP_LOG_LEVEL"
        },
        {
          "description": "How long a rendered document is retrievable before it expires, in seconds.",
          "format": "string",
          "default": "900",
          "name": "DOCGEN_DOCUMENT_TTL_SECONDS"
        },
        {
          "description": "Hard ceiling on a single rendered artifact in bytes; exceeding it aborts the render.",
          "format": "string",
          "default": "26214400",
          "name": "DOCGEN_MAX_DOCUMENT_BYTES"
        },
        {
          "description": "Per-render wall-clock budget in milliseconds; exceeding it aborts the render.",
          "format": "string",
          "default": "30000",
          "name": "DOCGEN_RENDER_TIMEOUT_MS"
        },
        {
          "description": "Artifacts at or under this byte size are returned inline as base64; larger ones omit it.",
          "format": "string",
          "default": "5242880",
          "name": "DOCGEN_INLINE_MAX_BYTES"
        },
        {
          "description": "PDF rendering engine. Only 'lightweight' is implemented; 'chromium' is reserved and rejected at startup.",
          "format": "string",
          "default": "lightweight",
          "name": "DOCGEN_PDF_ENGINE"
        }
      ]
    },
    {
      "registryType": "npm",
      "registryBaseUrl": "https://registry.npmjs.org",
      "identifier": "@cyanheads/docgen-mcp-server",
      "version": "0.2.2",
      "runtimeHint": "bun",
      "transport": {
        "type": "streamable-http",
        "url": "http://localhost:3010/mcp"
      },
      "packageArguments": [
        {
          "value": "run",
          "type": "positional"
        },
        {
          "value": "start:http",
          "type": "positional"
        }
      ],
      "environmentVariables": [
        {
          "description": "The hostname for the HTTP server.",
          "format": "string",
          "default": "127.0.0.1",
          "name": "MCP_HTTP_HOST"
        },
        {
          "description": "The port to run the HTTP server on.",
          "format": "string",
          "default": "3010",
          "name": "MCP_HTTP_PORT"
        },
        {
          "description": "The endpoint path for the MCP server.",
          "format": "string",
          "default": "/mcp",
          "name": "MCP_HTTP_ENDPOINT_PATH"
        },
        {
          "description": "Authentication mode to use: 'none', 'jwt', or 'oauth'.",
          "format": "string",
          "default": "none",
          "name": "MCP_AUTH_MODE"
        },
        {
          "description": "Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').",
          "format": "string",
          "default": "info",
          "name": "MCP_LOG_LEVEL"
        },
        {
          "description": "How long a rendered document is retrievable before it expires, in seconds.",
          "format": "string",
          "default": "900",
          "name": "DOCGEN_DOCUMENT_TTL_SECONDS"
        },
        {
          "description": "Hard ceiling on a single rendered artifact in bytes; exceeding it aborts the render.",
          "format": "string",
          "default": "26214400",
          "name": "DOCGEN_MAX_DOCUMENT_BYTES"
        },
        {
          "description": "Per-render wall-clock budget in milliseconds; exceeding it aborts the render.",
          "format": "string",
          "default": "30000",
          "name": "DOCGEN_RENDER_TIMEOUT_MS"
        },
        {
          "description": "Artifacts at or under this byte size are returned inline as base64; larger ones omit it.",
          "format": "string",
          "default": "5242880",
          "name": "DOCGEN_INLINE_MAX_BYTES"
        },
        {
          "description": "PDF rendering engine. Only 'lightweight' is implemented; 'chromium' is reserved and rejected at startup.",
          "format": "string",
          "default": "lightweight",
          "name": "DOCGEN_PDF_ENGINE"
        }
      ]
    }
  ]
}
mcp model-context-protocol npm

Comments

Sign in to leave a comment

Loading comments...