# io.github.kmalakoff/mcp-pdf (npm · @mcp-z/mcp-pdf)

MCP server for PDF generation using PDFKit

- Trust score: 61/100 (medium)
- Change this week: +20
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- npm · `@mcp-z/mcp-pdf`: 61/100 (this document), [markdown](https://verifymcp.io/servers/kmalakoff-mcp-pdf/mcp-z-mcp-pdf.md), [page](https://verifymcp.io/servers/kmalakoff-mcp-pdf/mcp-z-mcp-pdf)

## Channel facts

- Registry: `npm`
- Package: `@mcp-z/mcp-pdf`
- Version: `1.0.3`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Supply Chain Security**: 80/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (128 of 132), so this covers what we could see, not the whole tree.
  - Runs a script at install time (postinstall) that we could not recognise. It may be perfectly ordinary, but we do not read the published tarball, so we cannot say what it does.
  - Only part of the dependency tree could be resolved (128 of 132), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 198 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 50/100
  - AI-judged instruction clarity (good).
  - Context-footprint check failed: tool/resource definitions use about 1246 tokens (~415/item across 3 items; 3 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 23/100
  - Stability observed for 7 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add kmalakoff-mcp-pdf -- npx -y @mcp-z/mcp-pdf
```

### Codex

```bash
codex mcp add kmalakoff-mcp-pdf -- npx -y @mcp-z/mcp-pdf
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "kmalakoff-mcp-pdf": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@mcp-z/mcp-pdf"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add kmalakoff-mcp-pdf --command npx --arg -y --arg @mcp-z/mcp-pdf
```

### Hermes

```yaml
mcp_servers:
  kmalakoff-mcp-pdf:
    command: "npx"
    args: ["-y", "@mcp-z/mcp-pdf"]
```

### Other

```json
{
  "mcpServers": {
    "kmalakoff-mcp-pdf": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-z/mcp-pdf"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-03 (score 61, +3)

- [functional improvement] Stability: unverified → 0.23

### 2026-08-02 (score 58, +41)

- [security regression] Provenance: unverified → fail
- [security improvement] Install scripts: unverified → partial
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Malware scan: unverified → pass
- [security] Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window).
- [security] The scripts that run when this package is installed changed: postinstall
- [functional regression] Tool coverage: 100 → unverified
- [functional improvement] License: unverified → pass
- [functional improvement] Dependency health: unverified → partial
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] MCP protocol: unverified → pass
- [functional improvement] Schema quality: unverified → good
- [functional] First check of Schema quality: unverified
- [functional] Licence: MIT

### 2026-07-31 (score 17, −6)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-30 (score 23, −18)

- [security regression] Malware scan: pass → unverified

### 2026-07-27 (score 41)

First indexed and scored.

## MCP tools (3)

### `create-pdf` (~803 tokens)

Create PDF

Create a PDF document with text, images, shapes, and full layout control. Supports progressive enhancement from simple documents to complex designs.

\**Key Features:**
• Unicode support: Chinese, Japanese, Korean, Arabic, emoji - auto-detects system fonts
• Page setup (custom size, margins, background color)
• Text with colors, fonts, positioning, and styling (oblique, spacing, etc.)
• Shapes (rectangles, circles, lines) for visual design
• Emoji rendering with inline image support

\**Common Patterns:**

1\. **Simple Document** (no pageSetup needed):
   [{"type": "heading", "text": "Title"}, {"type": "text", "text": "Body"}]

2\. **Styled Document** (add colors/background):
   pageSetup: {"backgroundColor": "#F5F5F5"}
   content: [{"type": "heading", "text": "Title", "color": "#4A90E2"}]

3\. **Custom Layout** (letterhead, certificates):
   [{"type": "rect", "x": 0, "y": 0, "width": 612, "height": 80, "fillColor": "navy"},
    {"type": "heading", "text": "Company", "color": "white", "y": 25, "align": "center"}]

4\. **Algorithmic Design** (tapering fonts, progressive layouts):
   Calculate values in a loop, then pass to tool:
   for (let i = 0; i < lines.length; i++) {
     const progress = i / lines.length;
     const fontSize = 8 + (progress * 16); // 8pt → 24pt
     content.push({"type": "text", "text": lines[i], "fontSize": fontSize});
   }

\**Coordinate System:**
• Origin (0, 0) is top-left corner
• Letter size page: 612 x 792 points (8.5" x 11")
• 72 points = 1 inch

\**Tips:**
• Use "align": "center" for centered text (works with or without "width")
• Use "x" to manually position (calculate as: (pageWidth - textWidth) / 2 for centering)
• Colors: hex ("#FFD700") or named ("gold", "navy", "black")
• Oblique: true for default slant, or number for degrees (15 = italic look)
• All pageSetup and visual styling fields are optional - defaults match standard documents

Input parameters:

- `author` (string): Document author metadata
- `content` (array, required): Array of content items to add to the PDF
- `filename` (string): Optional filename for the PDF (defaults to "document.pdf"). SECURITY: Filenames are sanitized and written to a sandboxed directory: • Default: ~/.mcp-pdf/ • Override: Set PDF_OUTPUT_DIR environment…
- `font` (string): Font for the PDF (optional - defaults to "auto"). **Default**: "auto" auto-detects Unicode fonts on macOS/Linux/Windows. Works for Chinese, Japanese, Korean, Arabic, emoji, and all languages. Advan…
- `pageSetup` (object): Optional page setup configuration
- `title` (string): Document title metadata

### `create-simple-pdf` (~150 tokens)

Create Simple PDF

Create a simple PDF with just text content. A simplified version of create-pdf for basic use cases. Supports emoji rendering.

Input parameters:

- `filename` (string): Optional filename for the PDF (defaults to "document.pdf"). SECURITY: Filenames are sanitized and written to a sandboxed directory: • Default: ~/.mcp-pdf/ • Override: Set PDF_OUTPUT_DIR environment…
- `text` (string, required): Text content for the PDF
- `title` (string): Document title metadata

### `generate-resume-pdf` (~293 tokens)

Generate Resume PDF

Generate a professional resume PDF from JSON Resume format. Follows the standard JSON Resume schema (https://jsonresume.org/schema). Supports basics, work, education, projects, skills, awards, certificates, languages, and more. Includes customizable styling options.

Input parameters:

- `filename` (string): Optional filename for the PDF (defaults to "resume.pdf"). SECURITY: Filenames are sanitized and written to a sandboxed directory: • Default: ~/.mcp-pdf/ • Override: Set PDF_OUTPUT_DIR environment va…
- `font` (string): Font for the PDF. Defaults to "auto" (system font detection). Options: • Built-in: Helvetica, Times-Roman, Courier (+ Bold/Italic variants) • URL: https://cdn.../font.woff2 (for Unicode/emoji suppor…
- `resume` (object, required): Resume data in JSON Resume format
- `styling` (object): Optional styling customization for the resume layout

## Diagnostics

Captured diagnostic sections: Provenance, Install scripts, Dependencies. The full working is on the page: https://verifymcp.io/servers/kmalakoff-mcp-pdf/mcp-z-mcp-pdf#diagnostics

## Score history

- 2026-08-03: 61
- 2026-08-02: 58
- 2026-08-01: 17
- 2026-07-31: 17
- 2026-07-30: 23
- 2026-07-28: 41
- 2026-07-27: 41

## Links

- npm package: https://www.npmjs.com/package/@mcp-z/mcp-pdf
- Socket report: https://socket.dev/npm/package/@mcp-z/mcp-pdf
- Repository: https://github.com/mcp-z/mcp-pdf
- Changelog RSS feed: https://verifymcp.io/servers/kmalakoff-mcp-pdf/mcp-z-mcp-pdf/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/kmalakoff-mcp-pdf/mcp-z-mcp-pdf/changelog.json
- HTML version of this page: https://verifymcp.io/servers/kmalakoff-mcp-pdf/mcp-z-mcp-pdf
