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).
@mcp-z/mcp-pdfclaude mcp add mcp-pdf -- npx -y @mcp-z/mcp-pdf@1.0.3
{
"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
@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
| Tool | Use |
|---|---|
pdf-document | Flowing documents with automatic pagination |
pdf-layout | Precisely positioned layouts such as slides and flyers |
pdf-resume | JSON Resume documents |
pdf-image | Render PDF pages to PNG |
text-measure | Measure text before layout |
External resources
None.
Prompts
- resource-fetching
Resources
- PDFKit Documentation
- JSON Resume Schema
- JSON Resume Editor
Documentation
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.