Plan Export MCP logo

Plan Export MCP

by @agmonetti

Exports Markdown plans with Mermaid diagrams to styled PNG, PDF, and standalone HTML files through MCP or a CLI.

Install Plan Export MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "agmonetti-plan-export-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@agmonetti/plan-export-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y @agmonetti/plan-export-mcp

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

@agmonetti/plan-export-mcp converts Markdown plans and architectural audits into high-resolution PNGs, A4 PDFs, or self-contained HTML documents. Its `export_plan` MCP tool accepts a file path or raw Markdown, applies a light or dark theme, and writes selected formats to an output directory. Mermaid diagrams render as embedded SVG, while Shiki provides VS Code-style code highlighting and diff support. Use it when an AI-generated plan needs to be shared outside an IDE through chat, email, or review workflows.

Use cases

  • Export implementation plans for Slack or WhatsApp
  • Share codebase audits as styled PDFs
  • Render Mermaid architecture diagrams for reviews
  • Generate standalone HTML plan documents
  • Convert Markdown plans from an AI coding agent

Key features

  • PNG, PDF, and standalone HTML export
  • Mermaid diagrams rendered as embedded SVG
  • Shiki syntax highlighting with diff support
  • Light and dark themes
  • GitHub callout and alert rendering
  • MCP server and standalone CLI modes

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

6/6 checks healthy over the last 24d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · @agmonetti/plan-export-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads315Package downloads in the last 30 days.
Last commit24d agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Plan Export MCP works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Plan Export MCP

@agmonetti/plan-export-mcp is an MCP server that connects AI coding agents to a Markdown export engine. Its main `export_plan` tool accepts a file path or raw Markdown and creates themed PNG, PDF, or standalone HTML files with Mermaid diagrams, code highlighting, and GitHub-style callouts.

Install it with `npx`, npm globally, or from source. The recommended MCP configuration launches `npx -y @agmonetti/plan-export-mcp`; alternatively, run `npm install -g @agmonetti/plan-export-mcp` and use the `plan-export-mcp` command.

Yes, it works with Cursor through a `.cursor/mcp.json` configuration. Add a server entry that launches `npx` with `-y @agmonetti/plan-export-mcp`, then invoke the `export_plan` MCP tool from the client.

Call `export_plan` with the Markdown path or content and set `formats` to `png`, `pdf`, or both. You can also set `theme`, `outputDir`, and `outputName`; the standalone CLI accepts the same output choices through command-line options.

Set `PUPPETEER_EXECUTABLE_PATH` to the installed Chrome or Chromium executable. This is useful on Linux or in Docker when Puppeteer cannot locate a browser automatically; HTML-only exports do not require browser dependencies.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPlan Export MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agmonetti-plan-export-mcp?style=directory)](https://allmcps.com/mcp/agmonetti-plan-export-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/agmonetti-plan-export-mcp"><img src="https://allmcps.com/api/badge/agmonetti-plan-export-mcp?style=directory" alt="Plan Export MCP on AllMCPs" /></a>