MCP PDF logo

MCP PDF

Generate PDFs, render pages to PNG, and measure text locally through MCP with PDFKit-based tools.

Install MCP PDF

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": {
    "mcp-pdf-2": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-z/cli"
      ]
    }
  }
}

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

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

npx -y @mcp-z/cli

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The mcp-pdf MCP server creates PDF documents, fixed-position layouts, and JSON Resume files through MCP tools. It can also render PDF pages to PNG and measure text before layout, which helps agents build documents with predictable positioning. The server runs locally without an API key and supports stdio and HTTP transports. Reach for it when an MCP client needs to generate or inspect PDF output rather than call a hosted document service.

Use cases

  • Generate paginated PDF documents from structured content
  • Create precisely positioned slides or flyers
  • Build resumes from JSON Resume data
  • Render PDF pages to PNG images
  • Measure text before placing it in a layout

Key features

  • Flowing PDF documents with automatic pagination
  • Precisely positioned PDF layouts
  • JSON Resume document generation
  • PDF page rendering to PNG
  • Text measurement for layout planning
  • Local stdio and HTTP transports

Tools5

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

Verified live~9.7k 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.

16/16 checks healthy over the last 82d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · @mcp-z/cli (npm)

Adoption & maintenance

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

GitHub stars3Stargazers on the source repository.
npm downloads919Package downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.
Tools exposed5Callable tools this server registers over MCP.
Directory activity9 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP PDF works

What mcp-pdf MCP server does

The mcp-pdf MCP server exposes PDF creation and layout operations through the Model Context Protocol. It uses PDFKit and runs on the local machine, so generated files do not require a remote API or an API key. The available operations cover both flowing content and exact positioning.

Use pdf-document for content that should flow across pages with automatic pagination. Use pdf-layout when elements need explicit positions, such as in slides, flyers, or other designed pages. pdf-resume creates documents from JSON Resume data. The server also includes pdf-image for rendering PDF pages as PNG files and text-measure for checking text dimensions before placing it in a layout.

How it works

MCP clients invoke the server's tools with structured arguments. A document-generation call returns a file URI together with metadata for the generated PDF. The tools can be inspected and called with the @mcp-z/cli package, or they can be connected to an MCP client through a saved server configuration.

Two transports are available. Stdio starts the package as a local child process, while HTTP exposes the MCP endpoint at /mcp. The HTTP example runs the server on port 9010. Both transport modes support the protocol revisions identified in the project documentation, including the stateless 2026 revision, where clients do not send an initialization handshake or session ID.

Setup and configuration

The mcp-pdf MCP server requires Node.js 22.13 or newer. The documented examples use npx, which is supplied with npm, so a separate global installation is not required. A stdio configuration points the client at npx -y @mcp-z/mcp-pdf. An HTTP configuration uses the local endpoint http://localhost:9010/mcp and starts the package with --port=9010.

Save the chosen configuration as .mcp.json in the directory where the commands will run. The project also documents an @mcp-z/cli up workflow that can launch HTTP servers using the configuration's start command. For a direct test, inspect the registered tools with npx -y @mcp-z/cli inspect --servers pdf --tools, then call a tool through the CLI.

Tools and capabilities

  • pdf-document: Produces flowing documents and handles page breaks automatically.
  • pdf-layout: Builds layouts with precise element positioning for formats such as slides and flyers.
  • pdf-resume: Generates a resume document from JSON Resume content.
  • pdf-image: Converts PDF pages into PNG images.
  • text-measure: Measures text before layout calculations are applied.

The repository also lists a resource-fetching prompt and external resources covering PDFKit documentation, the JSON Resume schema, and a JSON Resume editor. These entries provide protocol-accessible references; the server does not list additional external service integrations.

Limitations and notes

The material describes local execution and does not identify any hosted deployment, API-key flow, or external integrations. Node.js 22.13 or later is required. The available description does not specify the full argument schema, styling options, supported fonts, image inputs, or PDF output restrictions for each tool; consult the project's complete tool reference for those details.

The HTTP transport requires a locally running server and uses the /mcp endpoint. Protocol behavior differs between the supported revisions: the documented 2026 revision is stateless, while clients using the other supported revision follow its session and initialization requirements.

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 MCP PDF

Run it with Node.js 22.13 or newer using `npx -y @mcp-z/mcp-pdf`; the documented setup does not require a separate global installation.

No. The server runs locally and requires no API key.

Configure the server at `http://localhost:9010/mcp` and start it with `npx -y @mcp-z/mcp-pdf --port=9010`.

Yes. Its `pdf-image` tool renders PDF pages to PNG.

Yes. The `pdf-resume` tool creates JSON Resume documents.

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 PreviewMCP PDF AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-pdf-2?style=directory)](https://allmcps.com/mcp/mcp-pdf-2)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-pdf-2"><img src="https://allmcps.com/api/badge/mcp-pdf-2?style=directory" alt="MCP PDF on AllMCPs" /></a>