Un sistema completo per convertire documenti Markdown in PDF con supporto per diagrammi Mermaid, utilizzabile sia come **script standalone** che come
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).
Once MCP Md2pdf is connected, these are the calls the assistant has available:
Vendite — {get_sales_data()}mermaid — filter** e @mermaid-js/mermaid-cliAspetto — 🔧 ScriptSetup — ImmediatoOutput — File PDFIntegrazione — Shell/BashMetadati — LimitatiFlowchart — The Flowchart tool exposed by this serverDebug — Per debug dettagliato, modifica convert.sh aggiungendo: bash set -x # Abilita debug verboseSetup 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.
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.
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.
| Tool | What it does |
|---|---|
| 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 |
{
"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.
| Variable | Description | Required |
|---|---|---|
| PUPPETEER_EXECUTABLE_PATH | Filesystem location the server is allowed to use. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.