export-pdf
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@export-pdfExport this conversation as a styled PDF."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
📄 MCP Export to PDF
A custom Model Context Protocol (MCP) server for LM Studio that allows AI models to export conversations, summaries, or structured Markdown documentation directly into a styled, professional PDF file.
It uses marked to parse Markdown into HTML and puppeteer to render HTML into a high-fidelity PDF, supporting tables, code blocks, emojis, and modern CSS formatting.
🚀 Prerequisites
Related MCP server: Gen-PDF MCP Server
📦 Local Installation
Clone this repository to your preferred location:
git clone git@github.com:YOUR_USERNAME/mcp-export-pdf.git cd mcp-export-pdfInstall the required dependencies:
pnpm installGet the absolute path to the
index.jsfile:macOS / Linux:
echo "$(pwd)/index.js"Windows (PowerShell):
echo "$((Get-Location).Path)\index.js"
(Copy the exact output path from your terminal for the next step).
⚙️ LM Studio Setup
To register this server in LM Studio, add the absolute path to your global MCP configuration file.
Open your configuration file in an editor:
macOS / Linux:
open -e ~/.lmstudio/mcp.json(ornano ~/.lmstudio/mcp.json)Windows:
%USERPROFILE%\.lmstudio\mcp.json
Add the
export-pdfentry inside themcpServersobject. Replace/ABSOLUTE/PATH/TO/mcp-export-pdf/index.jswith the real path obtained in the previous step:{ "mcpServers": { "export-pdf": { "command": "node", "args": [ "/ABSOLUTE/PATH/TO/mcp-export-pdf/index.js" ] } } }Save the changes, open LM Studio, navigate to the Integrations (MCP) tab, and restart the server to load the
export_to_pdftool.
💡 Chat Usage
Once active, any model capable of Tool Calling (such as Qwen 2.5 Coder) can invoke this tool automatically.
Example Prompt:
"Generate a quick guide on Hexagonal Architecture in Go and export it to PDF using the
export_to_pdftool under the nameHexagonal_Guide.pdf."
The model will output the content in Markdown, trigger export_to_pdf, and the server will render the PDF directly into your configured workspace directory.
🛠️ Tech Stack
@modelcontextprotocol/sdk: Core MCP server SDK handling Standard I/O (STDIO) communication.
Marked: Fast Markdown-to-HTML parser.
Puppeteer: Headless Chromium engine for PDF generation.
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate PDFs from templates via AI chat. Works with Claude, ChatGPT, Cursor, and any MCP client.
- blinkpdfOAuthio.blinkpdf
Render Markdown and LLM output into accessible PDF/UA-1 PDFs. No headless Chromium.
I create PDF documents from markdown, preview, then generate a downloadable file
Turn a description into a shareable, editable PDF — invoices, certificates, reports, resumes.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables PDF generation from HTML, text, and Markdown content with customizable formatting options. Provides secure cross-platform PDF creation tools that automatically save to user directories like Downloads, Documents, or Desktop.425 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to generate professional PDF documents from markdown content with advanced typography, syntax highlighting, math equations, dark mode, and customizable styling options.MIT
- FlicenseNot gradedqualityDmaintenanceProvides tools for converting Markdown content and files into professional PDF documents with full support for Mermaid diagrams and LaTeX rendering. It allows for high-quality output customization, including paper size, table of contents, and syntax highlighting styles.-
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that gives your AI assistant the power to convert Markdown into 14 professional document formats — PDF, DOCX, HTML, LaTeX, CSV, JSON, XML, XLSX, RTF, PNG, and more. Stop copy-pasting. Let the AI do the exporting.332MIT