io.github.kmalakoff/mcp-pdf

Official registry Productivity

MCP server for PDF generation using PDFKit

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package @mcp-z/mcp-pdf
Claude Code
claude mcp add mcp-pdf -- npx -y @mcp-z/mcp-pdf@1.0.3
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "mcp-pdf": {
            "command": "npx",
            "args": [
                "-y",
                "@mcp-z/mcp-pdf@1.0.3"
            ]
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. @mcp-z/mcp-pdf
  2. Transports
  3. First use
  4. Tool summary
  5. External resources
  6. Prompts
  7. Resources
  8. Documentation

@mcp-z/mcp-pdf

Create PDF documents and layouts, render pages to PNG, and measure text through MCP. The server runs locally and requires no API key.

Requires Node.js >=22.13. The examples use npx, included with npm, to run this server and @mcp-z/cli.

Transports

MCP supports stdio and HTTP.

Both transports support the 2025 and 2026-07-28 protocol revisions. The 2026 revision is stateless, so clients using it send no initialize handshake or session ID.

Save one of these configurations as .mcp.json in the directory where you will run the commands.

Stdio

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

HTTP

{
  "mcpServers": {
    "pdf": {
      "type": "http",
      "url": "http://localhost:9010/mcp",
      "start": {
        "command": "npx",
        "args": ["-y", "@mcp-z/mcp-pdf", "--port=9010"]
      }
    }
  }
}

start is an extension used by npx @mcp-z/cli up to launch HTTP servers for you. The MCP endpoint is /mcp.

First use

# List tools
npx -y @mcp-z/cli inspect --servers pdf --tools

# Create a simple PDF
npx -y @mcp-z/cli call-tool pdf pdf-document '{"content":[{"type":"text","text":"Hello from MCP"}]}'

The tool returns a file URI and metadata for the generated PDF. See the complete tool reference for parameters and examples.

Tool summary

ToolUse
pdf-documentFlowing documents with automatic pagination
pdf-layoutPrecisely positioned layouts such as slides and flyers
pdf-resumeJSON Resume documents
pdf-imageRender PDF pages to PNG
text-measureMeasure text before layout

External resources

None.

Prompts

  1. resource-fetching

Resources

  • PDFKit Documentation
  • JSON Resume Schema
  • JSON Resume Editor

Documentation

API Docs

Frequently asked questions

What is io.github.kmalakoff/mcp-pdf?

MCP server for PDF generation using PDFKit

How do I install io.github.kmalakoff/mcp-pdf?

It runs on your machine. In Claude Code: claude mcp add mcp-pdf -- npx -y @mcp-z/mcp-pdf@1.0.3. For other clients, paste the JSON configuration from this page into their MCP settings.

Does io.github.kmalakoff/mcp-pdf need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is io.github.kmalakoff/mcp-pdf open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains io.github.kmalakoff/mcp-pdf?

It is published by mcp-z. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.