P

Pdfnative MCP

by Nizoka · io.github.Nizoka/pdfnative-mcp

Enterprise-grade PDF engine for AI agents. Pure TypeScript, zero-dependency, sandboxed, and local-first. Exposes 28 tools to generate ISO-compliant PDF/A documents, inspect layouts, extract text, handle digital signatures (PKCS#7), and render high-performance tables (10,000+ rows/s).

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-nizoka-pdfnative-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdfnative-mcp"
      ],
      "env": {
        "PDFNATIVE_MCP_OUTPUT_DIR": "<VALUE>",
        "PDFNATIVE_MCP_OUTPUT_BASE_URL": "<VALUE>",
        "PDFNATIVE_MCP_CACHE_DIR": "<VALUE>",
        "PDFNATIVE_MCP_FONT_DIR": "<VALUE>",
        "PDFNATIVE_MCP_PORT": "<VALUE>",
        "PDFNATIVE_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "PDFNATIVE_MCP_MAX_INFLATE_BYTES": "<VALUE>",
        "PDFNATIVE_MCP_CREATION_DATE": "<VALUE>",
        "SOURCE_DATE_EPOCH": "<VALUE>",
        "PDFNATIVE_MCP_TSA_URL": "<VALUE>",
        "PDFNATIVE_MCP_TSA_AUTH": "<YOUR_VALUE>",
        "PDFNATIVE_MCP_REVOCATION": "<VALUE>",
        "PDFNATIVE_MCP_NETWORK_ALLOWED_HOSTS": "<VALUE>",
        "PDFNATIVE_MCP_NETWORK_TIMEOUT_MS": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-nizoka-pdfnative-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdfnative-mcp"
      ],
      "env": {
        "PDFNATIVE_MCP_OUTPUT_DIR": "<VALUE>",
        "PDFNATIVE_MCP_OUTPUT_BASE_URL": "<VALUE>",
        "PDFNATIVE_MCP_CACHE_DIR": "<VALUE>",
        "PDFNATIVE_MCP_FONT_DIR": "<VALUE>",
        "PDFNATIVE_MCP_PORT": "<VALUE>",
        "PDFNATIVE_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "PDFNATIVE_MCP_MAX_INFLATE_BYTES": "<VALUE>",
        "PDFNATIVE_MCP_CREATION_DATE": "<VALUE>",
        "SOURCE_DATE_EPOCH": "<VALUE>",
        "PDFNATIVE_MCP_TSA_URL": "<VALUE>",
        "PDFNATIVE_MCP_TSA_AUTH": "<YOUR_VALUE>",
        "PDFNATIVE_MCP_REVOCATION": "<VALUE>",
        "PDFNATIVE_MCP_NETWORK_ALLOWED_HOSTS": "<VALUE>",
        "PDFNATIVE_MCP_NETWORK_TIMEOUT_MS": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-nizoka-pdfnative-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdfnative-mcp"
      ],
      "env": {
        "PDFNATIVE_MCP_OUTPUT_DIR": "<VALUE>",
        "PDFNATIVE_MCP_OUTPUT_BASE_URL": "<VALUE>",
        "PDFNATIVE_MCP_CACHE_DIR": "<VALUE>",
        "PDFNATIVE_MCP_FONT_DIR": "<VALUE>",
        "PDFNATIVE_MCP_PORT": "<VALUE>",
        "PDFNATIVE_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "PDFNATIVE_MCP_MAX_INFLATE_BYTES": "<VALUE>",
        "PDFNATIVE_MCP_CREATION_DATE": "<VALUE>",
        "SOURCE_DATE_EPOCH": "<VALUE>",
        "PDFNATIVE_MCP_TSA_URL": "<VALUE>",
        "PDFNATIVE_MCP_TSA_AUTH": "<YOUR_VALUE>",
        "PDFNATIVE_MCP_REVOCATION": "<VALUE>",
        "PDFNATIVE_MCP_NETWORK_ALLOWED_HOSTS": "<VALUE>",
        "PDFNATIVE_MCP_NETWORK_TIMEOUT_MS": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-nizoka-pdfnative-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdfnative-mcp"
      ],
      "env": {
        "PDFNATIVE_MCP_OUTPUT_DIR": "<VALUE>",
        "PDFNATIVE_MCP_OUTPUT_BASE_URL": "<VALUE>",
        "PDFNATIVE_MCP_CACHE_DIR": "<VALUE>",
        "PDFNATIVE_MCP_FONT_DIR": "<VALUE>",
        "PDFNATIVE_MCP_PORT": "<VALUE>",
        "PDFNATIVE_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "PDFNATIVE_MCP_MAX_INFLATE_BYTES": "<VALUE>",
        "PDFNATIVE_MCP_CREATION_DATE": "<VALUE>",
        "SOURCE_DATE_EPOCH": "<VALUE>",
        "PDFNATIVE_MCP_TSA_URL": "<VALUE>",
        "PDFNATIVE_MCP_TSA_AUTH": "<YOUR_VALUE>",
        "PDFNATIVE_MCP_REVOCATION": "<VALUE>",
        "PDFNATIVE_MCP_NETWORK_ALLOWED_HOSTS": "<VALUE>",
        "PDFNATIVE_MCP_NETWORK_TIMEOUT_MS": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-nizoka-pdfnative-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdfnative-mcp"
      ],
      "env": {
        "PDFNATIVE_MCP_OUTPUT_DIR": "<VALUE>",
        "PDFNATIVE_MCP_OUTPUT_BASE_URL": "<VALUE>",
        "PDFNATIVE_MCP_CACHE_DIR": "<VALUE>",
        "PDFNATIVE_MCP_FONT_DIR": "<VALUE>",
        "PDFNATIVE_MCP_PORT": "<VALUE>",
        "PDFNATIVE_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "PDFNATIVE_MCP_MAX_INFLATE_BYTES": "<VALUE>",
        "PDFNATIVE_MCP_CREATION_DATE": "<VALUE>",
        "SOURCE_DATE_EPOCH": "<VALUE>",
        "PDFNATIVE_MCP_TSA_URL": "<VALUE>",
        "PDFNATIVE_MCP_TSA_AUTH": "<YOUR_VALUE>",
        "PDFNATIVE_MCP_REVOCATION": "<VALUE>",
        "PDFNATIVE_MCP_NETWORK_ALLOWED_HOSTS": "<VALUE>",
        "PDFNATIVE_MCP_NETWORK_TIMEOUT_MS": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-nizoka-pdfnative-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdfnative-mcp"
      ],
      "env": {
        "PDFNATIVE_MCP_OUTPUT_DIR": "<VALUE>",
        "PDFNATIVE_MCP_OUTPUT_BASE_URL": "<VALUE>",
        "PDFNATIVE_MCP_CACHE_DIR": "<VALUE>",
        "PDFNATIVE_MCP_FONT_DIR": "<VALUE>",
        "PDFNATIVE_MCP_PORT": "<VALUE>",
        "PDFNATIVE_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "PDFNATIVE_MCP_MAX_INFLATE_BYTES": "<VALUE>",
        "PDFNATIVE_MCP_CREATION_DATE": "<VALUE>",
        "SOURCE_DATE_EPOCH": "<VALUE>",
        "PDFNATIVE_MCP_TSA_URL": "<VALUE>",
        "PDFNATIVE_MCP_TSA_AUTH": "<YOUR_VALUE>",
        "PDFNATIVE_MCP_REVOCATION": "<VALUE>",
        "PDFNATIVE_MCP_NETWORK_ALLOWED_HOSTS": "<VALUE>",
        "PDFNATIVE_MCP_NETWORK_TIMEOUT_MS": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
PDFNATIVE_MCP_OUTPUT_DIR No Absolute path to the sandbox directory. Required to enable outputMode: 'file'.
PDFNATIVE_MCP_OUTPUT_BASE_URL No Optional public base URL of PDFNATIVE_MCP_OUTPUT_DIR when the operator serves it over HTTP (e.g. https://files.example.com/pdf/). File-mode results then carry url (base + sandbox-relative path, percent-encoded) and name it instead of the host path. Absolute http(s) URL, no credentials, query or fragment; requires PDFNATIVE_MCP_OUTPUT_DIR; invalid value refuses to start. Never requested by the server.
PDFNATIVE_MCP_CACHE_DIR No Absolute path to enable the persistent SHA-256-keyed result cache (1 h TTL, 256 MiB LRU). When unset, the cache is disabled.
PDFNATIVE_MCP_FONT_DIR No Optional operator font sandbox: absolute path of a directory of .ttf / .otf files (at most 64, 16 MiB each), each parsed by the engine and registered at boot under the slug of its file name; tools name one with the font input (FONT_NOT_FOUND otherwise). An invalid directory or file refuses to start. Never a path from a tool argument.
PDFNATIVE_MCP_PORT No When set to a valid port (1–65535), starts an HTTP server on http://127.0.0.1:<port>/mcp instead of stdio.
PDFNATIVE_MCP_HTTP_TOKEN secret No Opt-in bearer token for the HTTP transport (>= 16 chars, no whitespace). When set, /mcp requires 'Authorization: Bearer <token>' or answers 401. Never logged.
PDFNATIVE_MCP_MAX_INFLATE_BYTES No Per-stream FlateDecode decompression cap in bytes (zip-bomb mitigation; default 104857600 = 100 MiB). Integer >= 1024; an invalid value refuses to start the server.
PDFNATIVE_MCP_CREATION_DATE No ISO 8601 instant with a time zone (e.g. 2026-01-01T00:00:00Z) pinned as the creation date of every generated document: reproducible bytes on any host. A call's own creationDate still wins. An invalid value refuses to start the server.
SOURCE_DATE_EPOCH No reproducible-builds.org convention: integer seconds since the Unix epoch, used as the pinned creation date when PDFNATIVE_MCP_CREATION_DATE is unset. An invalid value refuses to start the server.
PDFNATIVE_MCP_TSA_URL No http(s) URL of the RFC 3161 timestamp authority used by sign_pdf timestamp=true and timestamp_pdf (PAdES B-T / B-LTA). Unset: those calls fail with TSA_NOT_CONFIGURED and no network request is made. Tool arguments can never supply a URL.
PDFNATIVE_MCP_TSA_AUTH secret No Optional Authorization header value sent to the TSA (e.g. 'Basic ...' or 'Bearer ...'). Never logged or echoed.
PDFNATIVE_MCP_REVOCATION No 'ocsp', 'crl' or 'ocsp,crl': enables online revocation collection for add_ltv mode='online' (PAdES B-LT). Unset: that mode fails with REVOCATION_NOT_CONFIGURED; mode='offline' stays fully offline. Requires PDFNATIVE_MCP_NETWORK_ALLOWED_HOSTS.
PDFNATIVE_MCP_NETWORK_ALLOWED_HOSTS No Comma-separated allow-list of OCSP / CRL responder hosts ('host', 'host:port' or '*.suffix'). Mandatory when PDFNATIVE_MCP_REVOCATION is set: responder URLs found in certificates are fetched only if the host matches (http(s) only, no credentials, no redirects, internal addresses rejected unless listed verbatim).
PDFNATIVE_MCP_NETWORK_TIMEOUT_MS No Per-request timeout for TSA / OCSP / CRL calls in milliseconds, 1000-120000 (default 10000).

Similar servers