md-bookify logo

md-bookify

Free

MCP server and CLI tool to convert Markdown to PDF or EPUB ebooks — with syntax highlighting (Prism), math (KaTeX), and GitHub Flavored Markdown.

Visit Website
Related by shared tags and keywords@ad-preflight/cliagent-deviceopenvisio
npmmarkdownpdfepubebookaiai assistantautomation

Overview

md-bookify is a Node.js MCP server and CLI tool that converts Markdown into PDF or EPUB ebooks. It supports Prism syntax highlighting, KaTeX math rendering, and GitHub Flavored Markdown (GFM). The tool can also be used as a programmatic Node.js library. It is designed for AI agents and works with Claude Code, Claude Desktop, Cursor, Windsurf, and any Model Context Protocol (MCP) client, allowing LLMs or AI coding assistants to generate styled PDFs and EPUB ebooks from Markdown. Installation is via npm, either globally or as a project dependency, and requires Node.js >= 20. Puppeteer downloads a bundled Chromium automatically. The CLI provides options for output path, title, page format (A4, Letter, Legal), style (built-in or custom CSS), orientation, margins, and author metadata. An EPUB subcommand converts Markdown to EPUB with options for title, author, language, publisher, description, and cover image. Built-in styles include default, serif, elegant, eink, and eink-serif. The MCP server exposes 6 tools for document generation, including converting markdown strings or files to PDF or EPUB, and listing styles. The programmatic API allows each step of the conversion pipeline to be imported independently, such as parsing Markdown, wrapping HTML, generating PDF or EPUB buffers, and handling images.

Pricing

Free

Detailed plans have not been confirmed in our catalog. Check the official website for current limits and billing terms.

Visit Website

Prices and limits may change. Confirm the currency, billing period, seat minimum and usage caps on the official website.

Use Cases

  • Teams use md-bookify to convert Markdown files to PDF documents with custom styling and formatting.
  • Teams use md-bookify to generate EPUB ebooks from Markdown with metadata like author and cover.
  • AI agents use md-bookify as an MCP server to generate PDFs and EPUBs from Markdown as part of agentic workflows.
  • Developers use md-bookify as a programmatic Node.js library to convert Markdown strings to PDF buffers for HTTP responses or streaming.
  • Teams use md-bookify to convert Markdown files to EPUB ebooks with relative image paths resolved automatically.
  • Users use md-bookify to list available built-in PDF styles for selection.

Features

Convert Markdown into PDF ebooks

Export Markdown as EPUB ebooks

Highlight code with Prism

Render math using KaTeX

Support GitHub Flavored Markdown

Run as an MCP server

Convert files through a CLI

Use as a Node.js library

Reviews

No reviews yet. Be the first to share your experience!