
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 toolsPublic 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
Details
- Repository
- github.com/mcp-z/mcp-pdf
- Category
- Documents & Knowledge
- Package
@mcp-z/mcp-pdf- Transport
- STDIO
- Registry
- MCP registry, active