About
A lightweight MCP server that transforms Markdown documents into PDFs using Chrome's rendering engine. It supports syntax highlighting, custom CSS, Mermaid diagrams, optional page numbers, and configurable watermarks.
Capabilities

The Markdown2PDF MCP server addresses a common bottleneck in AI‑assisted documentation workflows: turning richly formatted Markdown into high‑quality, printable PDFs without leaving the assistant’s environment. By exposing a single tool, developers can embed PDF generation directly into conversational agents or automated pipelines, enabling end‑to‑end document creation from natural language prompts. This eliminates the need for external converters or manual export steps, streamlining content production and ensuring consistent styling across teams.
At its core, the server leverages Chrome’s rendering engine to produce PDFs that faithfully preserve Markdown semantics. It supports all standard elements—headers, lists, tables, blockquotes, and images—as well as advanced features like syntax‑highlighted code blocks and Mermaid diagram rendering. Custom CSS styling lets users override default fonts, colors, or layout, while optional page numbers and watermarks can be applied globally or to the first page only. These capabilities make the tool suitable for generating professional reports, technical documentation, or lecture notes that require precise formatting and branding.
Key features include:
- Single‑command conversion with optional parameters for paper size, orientation, border, and watermark scope.
- Syntax highlighting powered by Prism or a similar library, ensuring code snippets are legible and visually distinct.
- Mermaid diagram support that automatically renders graph definitions, with error messages embedded in the PDF for quick debugging.
- Modern web‑feature support, allowing use of custom fonts, CSS grid/flex layouts, and responsive design within the PDF.
- Extensible styling via user‑supplied CSS, enabling brand consistency without manual tweaking.
Real‑world scenarios where this MCP shines include automated technical documentation generation from README files, converting meeting notes captured in Markdown into printable agendas, or producing certification certificates that embed dynamic watermarks and page numbers. Because the tool is exposed through MCP, it can be invoked from any AI assistant that understands the protocol, allowing conversational agents to respond with a ready‑to‑print PDF in response to a user’s request.
The server’s integration is straightforward: developers include the MCP client, send a tool invocation with the Markdown string and optional settings, and receive a PDF file path or binary data. Its lightweight footprint and reliance on the ubiquitous npm ecosystem mean it can be deployed locally, in containers, or as a serverless function with minimal overhead. Unique advantages such as Mermaid diagram rendering and optional watermarking scope set it apart from other Markdown‑to‑PDF solutions, making it a versatile addition to any AI‑driven content creation stack.
Related Servers
n8n
Self‑hosted, code‑first workflow automation platform
FastMCP
TypeScript framework for rapid MCP server development
Activepieces
Open-source AI automation platform for building and deploying extensible workflows
MaxKB
Enterprise‑grade AI agent platform with RAG and workflow orchestration.
Filestash
Web‑based file manager for any storage backend
MCP for Beginners
Learn Model Context Protocol with hands‑on examples
Weekly Views
Server Health
Information
Explore More Servers
Lark (Feishu) MCP Server
Integrate Lark sheets, docs, and messages with AI models
Mkusaka MCP Shell Server
Secure shell command execution via Model Context Protocol
Siri Shortcuts MCP Server
Control macOS Shortcuts directly from an LLM
Google Search MCP Server
AI-powered Google search and webpage analysis tool
Ensembl API MCP Server
Unified, biologist‑friendly access to Ensembl’s REST API
Bilibili Follower Count MCP Server
Instant Bilibili follower lookup via MCP