mcp-z avatar

Mcp Pdf

mcp-z/mcp-pdf

Wraps PDFKit to generate PDFs through MCP tools. You get pdf-document for basic text and image layouts, pdf-layout for absolute positioning with Yoga flexbox containers, and pdf-resume for turning JSON Resume schemas into formatted CVs with customizable sections and two-column layouts. Field templates use LiquidJS for date formats and localization. Runs via stdio or HTTP with npx, no authentication needed. Useful when you need programmatic PDF generation without hitting external APIs, whether that's rendering reports from structured data or letting an LLM assemble resumes on the fly. The flexbox engine handles responsive layouts if you're building more complex document structures.

GitHub stars
1
tools
5
transport
STDIO
last updated
Oct 4, 2025

Tools

5 tools

Public tool metadata for what this MCP can expose to an agent.

pdf-documentFlowing documents with automatic pagination

Flowing documents with automatic pagination

No parameter schema in public metadata yet.

pdf-layoutPrecisely positioned layouts such as slides and flyers

Precisely positioned layouts such as slides and flyers

No parameter schema in public metadata yet.

pdf-resumeJSON Resume documents

JSON Resume documents

No parameter schema in public metadata yet.

pdf-imageRender PDF pages to PNG

Render PDF pages to PNG

No parameter schema in public metadata yet.

text-measureMeasure text before layout

Measure text before layout

No parameter schema in public metadata yet.

Sponsors

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

View the full README on GitHub

Details

Repository
github.com/mcp-z/mcp-pdf
Category
Documents & Knowledge
Package
@mcp-z/mcp-pdf
Transport
STDIO
Registry
MCP registry, active

More from mcp-z

Related Documents & Knowledge MCP servers

View all
1r09722akabennett avatarNanoPDFr09722akabennett/nano-pdf-mcpAI-powered PDF editing and generation MCP server using Gemini Pro.1stars
2filegraph avatarDocument Processingfilegraph/docconvertExtract text from documents, manipulate PDFs, and perform OCR on images.0stars
3matthewdavisaiarchitect avatarOntoRamp Knowledge Cartographermatthewdavisaiarchitect/ontoramp-knowledge-cartographerKnowledge coverage map and health score. Ingest docs into a governed knowledge graph via MCP.0stars
4csoai-org avatarMarkdown Ai Mcpcsoai-org/markdown-ai-mcpMarkdown Ai MCP Server by MEOK AI Labs0stars
5dalecb avatarObsidian Semantic Searchdalecb/obsidian-semantic-mcpRead-only semantic search MCP server for Obsidian vaults using local Ollama embeddings.0stars
6dewtech-technologies avatarObsidian Mcp Securedewtech-technologies/obsidian-mcp-secureSecure MCP server for Obsidian with OWASP Top 10 controls and full audit logging.0stars