md2pdf

mcp
Security Audit
Fail
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Fail
  • process.env — Environment variable access in cli/src/api.js
  • network request — Outbound network request in cli/src/api.js
  • process.env — Environment variable access in cli/src/store.js
  • exec() — Shell command execution in cli/src/update.js
  • process.env — Environment variable access in cli/src/update.js
  • spawnSync — Synchronous process spawning in cli/src/upgrade.js
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Free, open-source Markdown to PDF, HTML and image converter that runs in your browser: 11 styles, Mermaid, table of contents, templates. Share documents as end-to-end encrypted links. Also a CLI, MCP server and Claude Code plugin.

README.md

MD2PDF

md2pdf.studio — Convert Markdown to beautifully styled PDFs, HTML, and images. Converts in your browser. Free, no signup.

License: MIT
Cloudflare Workers
AI Skill
npm
llms.txt

MD2PDF — Markdown to PDF


Features

  • Live Preview — Split editor with real-time rendering
  • 11 Visual Styles — Notion, GitHub, Minimal, Academic, Corporate, LaTeX, Dracula, Newspaper, Handwritten, Terminal, Pastel
  • 5 Templates — CV/Resume, Report, Documentation, Changelog, Meeting Notes
  • Export — PDF (continuous, no page breaks), HTML (standalone with inline styles), PNG
  • Custom CSS — Inject your own styles
  • Share by URL — end-to-end encrypted (AES-256-GCM) short links; the key never reaches the server
  • Expiry and one-time links — choose a shorter lifetime, or make a link open once
  • CLI and MCP server — npx -y [email protected] share file.md encrypts locally and prints the link
  • Mermaid diagrams — Flowcharts, sequence, Gantt, pie
  • Auto table of contents, syntax highlighting (180+ languages)
  • Dark & Light Mode, Drag & Drop, Find & Replace, Scroll Sync, Fullscreen, Word Count, Auto-Save
  • AI Skill — Installable skill for Claude, Codex and other agents, built on the CLI, plus WebMCP tools in the editor (experimental)
  • AI Discoverable — llms.txt, robots.txt, JSON-LD, Open Graph, ai-plugin.json

Tech Stack

  • Pure HTML, CSS, JavaScript — no framework, no build step

  • Cloudflare Workers — edge compute for shared-document rendering and storing encrypted links

  • Cloudflare KV — AES-256-GCM encrypted document storage
    Libraries and fonts are vendored in public/vendor and public/fonts: the app makes no third-party requests.

  • marked.js — Markdown parsing

  • highlight.js — Syntax highlighting

  • mermaid — Diagrams

  • html2canvas — Image export

Quick Start

No install required. Visit md2pdf.studio.

Or run locally:

git clone https://github.com/JSiapoDEV/MD2PDF.git
cd MD2PDF
open public/index.html

For local Cloudflare Workers dev, and the other project commands:

npm run dev       # the site and API at http://localhost:8787
npm test          # CLI tests
npm run pages     # regenerate the SEO pages from their generators
npm run stats     # anonymous usage counts (needs a read-only token, see scripts/stats.mjs)

For AI Agents

Keyboard Shortcuts

Shortcut Action
Ctrl + S Export to PDF
Ctrl + F Find
Ctrl + H Find & Replace
Ctrl + Shift + L Toggle dark/light theme
F11 Toggle fullscreen
Tab Insert tab in editor

Available Styles

Style Description
Notion Clean, modern sans-serif (default)
GitHub Classic GitHub markdown rendering
Minimal Elegant serif, no decorations
Academic Formal justified text, scholarly feel
Corporate Professional with blue accents
LaTeX Simulates academic papers
Dracula Vibrant purple/pink/green palette
Newspaper Editorial typography
Handwritten Cursive font with notebook lines
Terminal Green-on-black monospace
Pastel Soft colors with rounded elements

Browse all: md2pdf.studio/styles

Contributing

Contributions are welcome. Please read CONTRIBUTING.md before getting started.

Support

md2pdf is free and open source. If it saves you time, you can support it on GitHub Sponsors; it pays for hosting and for time to fix bugs and build what people ask for.

License

MIT — Built by JSiapoDev

The md2pdf skill is unofficial and not affiliated with or endorsed by Anthropic. Claude is a trademark of Anthropic, PBC.


Recommended GitHub Topics (add via repo settings → About → Topics): markdown · pdf · markdown-to-pdf · claude-skill · llms-txt · ai-agent · mcp · webmcp · cloudflare-workers · mermaid · markdown-editor · pdf-generator

Reviews (0)

No results found