mcpField
M
mcp-pdf

mcp-pdf

Local
github.com/mcp-zProductivity3Updated 2w ago

About mcp-pdf

mcp-pdf is a local MCP server for creating PDF documents and layouts, rendering pages to PNG, and measuring text. It is for MCP clients that need PDF generation tools without an API key.

Key features

  1. 01Generate paginated PDF documents
  2. 02Create precisely positioned PDF layouts
  3. 03Generate JSON Resume PDFs
  4. 04Render PDF pages to PNG
  5. 05Measure text for layout

Use cases

  1. 01Create a flowing document as a PDF
  2. 02Build a slide or flyer layout
  3. 03Render PDF pages as PNG images
  4. 04Measure text before placing it

MCP support

Exposes PDF creation, rendering, and text-measurement tools to MCP clients. It supports stdio and HTTP transports.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"kmalakoff-mcp-pdf": {
"command": "npx",
"args": [
"-y",
"@mcp-z/mcp-pdf"
]
}
}
}
Run commandnpx -y @mcp-z/mcp-pdf

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@mcp-z/mcp-pdf1.0.3

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

@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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.