export-pdf
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π 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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
Related MCP Connectors
Render Markdown and LLM output into accessible PDF/UA-1 PDFs. No headless Chromium.
Turn Markdown and AI answers into Word (.docx) with native equations, or into PDF.
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.4MIT
- 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.334MIT