MCP Md2pdf MCP Server

Un sistema completo per convertire documenti Markdown in PDF con supporto per diagrammi Mermaid, utilizzabile sia come **script standalone** che come

Local serverstdioPython

What is the MCP Md2pdf MCP server?

MCP Md2pdf MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Un sistema completo per convertire documenti Markdown in PDF con supporto per diagrammi Mermaid, utilizzabile sia come script standalone che come server MCP (Model Context Protocol).

What the assistant can call

Once MCP Md2pdf is connected, these are the calls the assistant has available:

  • Vendite — {get_sales_data()}
  • mermaid — filter** e @mermaid-js/mermaid-cli
  • Aspetto — 🔧 Script
  • Setup — Immediato
  • Output — File PDF
  • Integrazione — Shell/Bash
  • Metadati — Limitati
  • Flowchart — The Flowchart tool exposed by this server
  • Debug — Per debug dettagliato, modifica convert.sh aggiungendo: bash set -x # Abilita debug verbose

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Configuration and credentials

You will need one environment variable: PUPPETEER_EXECUTABLE_PATH. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Choosing this one

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MCP Md2pdf's toolset — Vendite, mermaid, Aspetto and 6 more — is a fair guide to whether it matches your workflow. It is maintained by valyc0; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 9 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch MCP Md2pdf.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcp md2pdf mcp server does with a few real requests.

Available tools

ToolWhat it does
Vendite{get_sales_data()}
mermaidfilter** e **@mermaid-js/mermaid-cli**
Aspetto🔧 Script
SetupImmediato
OutputFile PDF
IntegrazioneShell/Bash
MetadatiLimitati
FlowchartThe Flowchart tool exposed by this server.
DebugPer debug dettagliato, modifica convert.sh aggiungendo: bash set -x # Abilita debug verbose

How to install the MCP Md2pdf MCP server

{
  "mcpServers": {
    "md2pdf": {
      "command": "python3",
      "args": ["/path/to/mcp_md2pdf_server.py"],
      "cwd": "/workspace/db-ready/md2pdf/"
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
PUPPETEER_EXECUTABLE_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use MCP Md2pdf to Vendite.
  • Use MCP Md2pdf to mermaid.
  • Use MCP Md2pdf to Aspetto.

Frequently asked questions

It connects MCP Md2pdf to MCP-compatible AI assistants such as Claude and Cursor, exposing 9 tools (Vendite, mermaid, Aspetto, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Md2pdf directly.