# @agmonetti/plan-export-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/agmonetti/plan-export-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 315  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agmonetti-plan-export-mcp

## Description
MCP server to export AI agent plans and architectural audits to beautiful PDFs, high-res PNGs, and self-contained HTML files.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "plan-export-mcp": {
    "command": "npx",
    "args": ["-y","@agmonetti/plan-export-mcp"]
  }
}
```

## Documentation

## What @agmonetti/plan-export-mcp does

@agmonetti/plan-export-mcp turns Markdown documents into presentation-ready exports for sharing implementation plans, code audits, and architecture notes. It supports PNG, PDF, and HTML output, with light and dark themes.

Markdown features are preserved for technical documents: Shiki-based syntax highlighting includes language badges and diff line markers, GitHub-style alerts render as callouts, and Mermaid diagrams become embedded SVG graphics. The renderer also formats visible prose with technical Unicode symbols while leaving code, HTML, autolinks, and Mermaid content unchanged.

PNG output is rendered at 2x device-pixel ratio for long screenshots suitable for chat applications. PDFs use an A4 print layout while retaining background colors and screen-oriented contrast. HTML exports include their styles directly in the document. HTTPS images can remain external in HTML, but fully offline HTML viewing requires avoiding external images and Mermaid diagrams.

## How it works

The server uses the MCP SDK with stdio transport and runs on Node.js 20 or newer. PDF and PNG generation uses Puppeteer and a headless browser, with a fallback to an installed Chrome or Chromium executable. HTML generation runs directly in Node.js without browser dependencies.

The `export_plan` tool accepts these inputs:

- `input`: a Markdown file path or raw Markdown string
- `theme`: `light` or `dark`, defaulting to `light`
- `formats`: any combination of `png`, `pdf`, and `html`
- `outputDir`: destination directory, defaulting to `./exports`
- `outputName`: output base name, otherwise derived from the input file

Remote images behave differently by format. Browser-rendered PNG and PDF exports block external images, while standalone HTML can load HTTPS images from the viewer’s network. Embedded `data:` images are the portable option; local file URLs are not loaded.

## Setup and configuration

Install Node.js 20+ and use npm, pnpm, or yarn. The recommended setup runs the package on demand with `npx`. It can also be installed globally from npm or built from a cloned repository with `npm install` and `npm run build`.

MCP clients launch the server with the `plan-export-mcp` command or with `npx -y @agmonetti/plan-export-mcp`. Claude Code uses its `claude mcp add` command, while Claude Desktop and Cursor can configure the server in their MCP JSON files. For Linux or Docker environments where Puppeteer cannot find a browser, set `PUPPETEER_EXECUTABLE_PATH` to the system Chrome or Chromium binary.

The package also works as a standalone CLI. Pass a Markdown path, then select a theme, formats, and output directory with command-line options.

## Tools and capabilities

- Export Markdown from a file or raw string.
- Produce PNG, PDF, HTML, or multiple formats in one invocation.
- Render Mermaid architecture diagrams as SVG.
- Apply light or dark document themes.
- Highlight code with Shiki and display diff lines.
- Render GitHub alert types including NOTE, WARNING, TIP, IMPORTANT, and CAUTION.
- Hide local paths behind labels for `file://`, `vscode://`, `cursor://`, and `windsurf://` links.

## Limitations and notes

PNG and PDF rendering requires Puppeteer to manage a headless browser. Mermaid can use a pinned CDN script as a fallback when the bundled script is unavailable, so completely offline HTML requires no Mermaid diagrams. File-path validation assumes a trusted local filesystem; avoid accepting input paths in directories that an untrusted local user can modify.

_Full upstream README: https://allmcps.com/mcp/agmonetti-plan-export-mcp/readme_

