MCP PDF
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PDF_OUTPUT_DIR | No | Custom directory for PDF output files. Defaults to ~/.mcp-pdf/ if not specified. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| pdf-documentA | Create a flowing PDF document with automatic pagination. Best for: Reports, articles, letters, contracts, and documents with sequential content. Content flows naturally from top to bottom. Pages break automatically when content exceeds page height. Use "pageBreak" to force page breaks, "divider" for horizontal rules, and "spacer" for vertical spacing. Supported content types:
Default margins: Varies by page size (e.g., 72pt/1" for Letter, ~56pt for A4). |
| pdf-imageA | Generate PNG image(s) from PDF pages. Use this to visually verify PDF output without opening external applications. Pages Options:
Viewport Scale Recommendations:
Lower scales produce smaller files, reducing context usage when sharing images. |
| pdf-layoutA | Create a PDF with precise positioning using Yoga flexbox layout. Best for: Dashboards, slides, certificates, flyers, and designs requiring exact placement. All items are positioned absolutely on specific pages. Use the "page" property to target different pages (e.g., page: 2 for multi-slide presentations). Pages are created as needed. Use groups for flexbox containers - they support direction, gap, justify, alignItems, and alignment properties for sophisticated layouts. Default margins: 0 (full canvas access for precise positioning). |
| pdf-resumeB | Generate a professional resume PDF from JSON Resume format. Supports layout customization, date/locale formatting, styling, fonts, and automatic page breaks. |
| text-measureA | Measure text width and height before rendering. Returns exact dimensions based on font, font size, and text content. Use this to:
Width is measured as single-line natural width. Height accounts for text wrapping when width is specified. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| resource-fetching | How to fetch generated PDF binary data via MCP resources |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: pdf-document creates flowing documents, pdf-image generates PNGs from PDFs, pdf-layout handles precise positioning, pdf-resume builds resumes from JSON, and text-measure calculates text dimensions. There is no overlap or ambiguity between these functions.
All tool names follow a consistent hyphenated prefix pattern (pdf- or text-) with descriptive nouns, making them predictable and readable. The naming is uniform across the set without any deviations in style.
With 5 tools, the server is well-scoped for PDF generation and manipulation, covering core needs like document creation, layout, image export, resume generation, and text measurement. Each tool earns its place without being excessive or insufficient.
The tool set covers key PDF operations: creation (pdf-document, pdf-layout, pdf-resume), conversion (pdf-image), and utility (text-measure). Minor gaps exist, such as no explicit tools for editing existing PDFs or merging files, but agents can work around this with the provided tools.