Skip to content
MCP server

PDF Writer (PDF Agent Stack)

Create and edit PDFs from text, Markdown and tables, with Japanese font embedding

Runs locallyStatus and history
Pricing
Open source
Platforms
CLI, self-hosted
Runs
Locally
Version
0.28.1
Listing updated
3 days ago

About PDF Writer (PDF Agent Stack)

PDF Writer (PDF Agent Stack) is an open-source MCP server for files and documents. It runs locally on your machine and is started by your AI client.

Built on a clause-driven PDF library tied to ISO 32000, this server writes PDFs and edits existing ones. Creation tools cover plain text, Markdown with headings, lists, code blocks and tables, and ruled tables with automatic column widths and repeated headers. Options include page size from A3 to Letter, margins, fonts, metadata, a base64 return and a PDF version.

It can write PDF 2.0 files, and passing a tagged option produces accessible PDF/UA output that the README reports as passing all 106 veraPDF rules for PDF/UA-1. CJK fonts are embedded through harfbuzz subsetting.

All file paths must be absolute, and input PDFs over 100 MB are rejected. It is one of four servers in a PDF family: a reader for structure, a verifier for signatures and conformance, a specification server, and this writer. The site describes 20 editing tools such as merge, split, annotations and metadata.

Install

Run in a terminal

claude mcp add pdf-writer-mcp -- npx -y @shuji-bonji/pdf-writer-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "pdf-writer-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shuji-bonji/pdf-writer-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "pdf-writer-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shuji-bonji/pdf-writer-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "pdf-writer-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@shuji-bonji/pdf-writer-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "pdf-writer-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shuji-bonji/pdf-writer-mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "pdf-writer-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shuji-bonji/pdf-writer-mcp"
      ]
    }
  }
}

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

create_text_pdf
Create a PDF from plain text
create_markdown_pdf
Create a PDF from Markdown
create_table_pdf
Create a PDF with ruled tables

What it does

Text to PDF
create_text_pdf wraps lines and treats blank lines as paragraph breaks.
Markdown to PDF
create_markdown_pdf handles headings, lists, code blocks, quotes, rules and tables.
Ruled tables
create_table_pdf sets column widths and repeats headers across pages.
Tagged accessible output
Produces PDF/UA-tagged files for accessibility.
PDF 2.0 output
Optionally writes ISO 32000-2 files.
CJK font embedding
Embeds Japanese and other CJK fonts through subsetting.
Page and metadata edits
Merge, split, annotate and edit metadata of existing PDFs.

Good for

  • Turn an agent's Markdown report into a PDF
  • Generate a table-based document with repeating headers
  • Produce accessible PDFs for compliance
  • Merge or split existing PDFs
  • Create Japanese-language documents

Pricing

Open source

Prices change. Check shuji-bonji.github.io before you buy.

PDF Writer (PDF Agent Stack) FAQ

Can I use relative paths?

No. Since v0.7.0 relative paths and paths containing .. are rejected.

Is there a size limit?

Input PDFs larger than 100 MB are rejected.

Does it support accessibility tagging?

Yes, with tagged: true it produces PDF/UA output, and a title is required.

How is it installed?

As the npm package @shuji-bonji/pdf-writer-mcp, run over stdio.

Is PDF Writer (PDF Agent Stack) free?

Yes. PDF Writer (PDF Agent Stack) is open source, so you can use and self-host it for free.

How do I add PDF Writer (PDF Agent Stack) to Claude Code?

Run this command in your terminal: claude mcp add pdf-writer-mcp -- npx -y @shuji-bonji/pdf-writer-mcp

What are the best alternatives to PDF Writer (PDF Agent Stack)?

The closest alternatives to PDF Writer (PDF Agent Stack) are ASTra, CARTESIAN ECU, Invoices, SigPen and ConvertAudioToText.

Alternatives to PDF Writer (PDF Agent Stack)

  1. ASTra

    MCP server

    Let agents read, edit, validate and undo Word .docx files with exact operations

    Runs locally
    • 5 tools
    • Freemium
    • Files and documents
  2. CARTESIAN ECU

    MCP server

    Check and repair ECU and TCU flash-file checksums from Claude (Ultimate plan)

    Not checked yet
    • 5 tools
    • Remote
    • Paid
    • Files and documents
  3. Invoices

    MCP server

    MCP server that reads supplier invoices and returns data plus DATEV, CSV or Excel files

    • 4 tools
    • Remote
    • Paid
    • Files and documents
  4. SigPen

    MCP server

    MCP server that drafts e-signature documents while you approve every send

    Not checked yet
    • 13 tools
    • Remote
    • Freemium
    • Files and documents
  5. Transcribe audio and video links from Claude or ChatGPT and read the results

    Not checked yet
    • 5 tools
    • Remote
    • Freemium
    • Design and media
  6. WhoScribe

    MCP server

    Search and read your WhoScribe audio and video transcripts from ChatGPT, read-only

    Not checked yet
    • Remote
    • Freemium
    • Design and media