
Product
Socket Now Protects the Firefox Extension Ecosystem
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.
mermaid-to-pdf-cli
Advanced tools
Transform your ideas into professional PDF documents with beautiful diagrams - just by asking for them.
The magic way: Just ask your AI to create PDF documents with diagrams. The AI will automatically write beautiful documentation and convert it to PDF for you.
Install the MCP server:
npm install -g mermaid-to-pdf-mcp-server
Add to Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"mermaid-to-pdf": {
"command": "mermaid-to-pdf-mcp",
"args": []
}
}
}
Restart Claude Desktop
If you use Claude Code, you can configure the MCP server using Claude Code's built-in MCP management:
Install the MCP server:
npm install -g mermaid-to-pdf-mcp-server
Add the MCP server to Claude Code:
Option A: User scope (available across all projects):
claude mcp add --scope user mermaid-to-pdf mermaid-to-pdf-mcp
Option B: Project scope (for a specific project, creates .mcp.json):
# Navigate to your project directory first
claude mcp add --scope project mermaid-to-pdf mermaid-to-pdf-mcp
Option C: Local scope (private to you in current project):
# Navigate to your project directory first
claude mcp add --scope local mermaid-to-pdf mermaid-to-pdf-mcp
Verify the server is configured:
claude mcp list
Alternative: Manual Configuration
You can also create a .mcp.json file in your project root:
{
"mcpServers": {
"mermaid-to-pdf": {
"command": "mermaid-to-pdf-mcp",
"args": []
}
}
}
Simply ask Claude to create PDF documents with visuals. Here are some examples:
"Create a PDF document that explains how Twitter works with diagrams."
"Make a PDF guide for our new employee onboarding process with flowcharts."
"Generate a PDF that documents our API architecture with sequence diagrams."
"Create a project timeline PDF with Gantt charts for the Q1 roadmap."
The AI will automatically:
The direct way: Convert your existing Markdown files with Mermaid diagrams to PDF.
npm install -g mermaid-to-pdf-cli
# Convert any markdown file to PDF
mermaid-to-pdf your-document.md
# With custom options
mermaid-to-pdf document.md -o output.pdf -t dark -q high
Usage: mermaid-to-pdf <input.md> [options]
Options:
-o, --output <file> Output PDF file path (default: input.pdf)
-t, --theme <theme> Mermaid theme (default: light)
-q, --quality <level> PDF quality: draft, standard, high (default: high)
-p, --page <size> Page size: A4, Letter, Legal (default: A4)
-h, --help Show this help message
Just ask Claude:
"Create a PDF that explains our microservices architecture. Include a system overview diagram, database relationships, and API interaction flows."
Claude will create something like this automatically, then convert it to PDF:
# Microservices Architecture Guide
## System Overview
Our platform uses a distributed microservices architecture...
```mermaid
flowchart TB
subgraph "Frontend"
Web[Web App]
Mobile[Mobile App]
end
subgraph "Services"
Gateway[API Gateway]
Auth[Auth Service]
Users[User Service]
Orders[Order Service]
end
Web --> Gateway
Mobile --> Gateway
Gateway --> Auth
Gateway --> Users
Gateway --> Orders
The system uses separate databases for each service...
erDiagram
User ||--o{ Order : places
User {
int id
string email
string name
}
Order {
int id
int user_id
decimal amount
string status
}
### With CLI
Create `architecture.md` with your content, then:
```bash
mermaid-to-pdf architecture.md -q high -t light
MIT License - see LICENSE file for details.
FAQs
CLI tool to convert Markdown files with Mermaid diagrams to PDF
The npm package mermaid-to-pdf-cli receives a total of 0 weekly downloads. As such, mermaid-to-pdf-cli popularity was classified as not popular.
We found that mermaid-to-pdf-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.

Research
/Security News
Socket uncovered 77 linked Firefox extensions, including 40 that steal wallet secrets or credentials and 37 deceptive sports-score shells.