Skip to main content

MCP to interface with pandoc to convert files to different formats with enhanced features like Mermaid diagram conversion and defaults file support.

Project description

mcp-pandoc-md2pptx: Markdown to PowerPoint Converter

A Model Context Protocol server for converting Markdown content to PowerPoint (PPTX) presentations using pandoc.

demo

Overview

This MCP server provides a simple tool to transform Markdown content into PowerPoint presentations while preserving formatting and structure. Perfect for creating presentations from documentation, notes, or any Markdown content.

Tools

  1. convert-contents
    • Converts Markdown content to PowerPoint (PPTX) format
    • Inputs:
      • contents (string): Markdown content to convert (required if input_file not provided)
      • input_file (string): Path to Markdown input file (required if contents not provided)
      • output_file (string): Complete path for PPTX output file (required)
      • template (string): Path to a template PPTX document to use for styling (optional)

Usage & Configuration

{
  "mcpServers": {
    "mcp-pandoc-md2pptx": {
      "command": "uvx",
      "args": ["mcp-pandoc-md2pptx"]
    }
  }
}

Prerequisites

  1. Pandoc Installation

    # macOS
    brew install pandoc
    
    # Ubuntu/Debian
    sudo apt-get install pandoc
    
    # Windows
    # Download from: https://pandoc.org/installing.html
    
  2. UV Package Installation

    # macOS
    brew install uv
    
    # Windows/Linux
    pip install uv
    

Examples

Basic Conversion

"Convert this markdown to PowerPoint and save as /presentations/demo.pptx:
# My Presentation
## Slide 1
Content here"

File Conversion

"Convert /path/to/input.md to PPTX and save as /path/to/output.pptx"

With Custom Template

"Convert markdown to PPTX using /templates/theme.pptx as template and save as /presentations/styled.pptx"

Template Support

Create custom PowerPoint templates for consistent branding:

  1. Generate default template:

    pandoc -o template.pptx --print-default-data-file reference.pptx
    
  2. Customize in PowerPoint with your fonts, colors, and slide layouts

  3. Use in conversion:

    "Convert content using /path/to/template.pptx as template"
    

Installation

Option 1: Manual Configuration

Add to your Claude Desktop config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mcp-pandoc-md2pptx": {
      "command": "uvx",
      "args": ["mcp-pandoc-md2pptx"]
    }
  }
}

Option 2: Smithery (Automatic)

npx -y @smithery/cli install mcp-pandoc-md2pptx --client claude

Development

Testing

uv run pytest

Building

uv sync
uv build

Publishing

uv publish

Contributing

  1. Report Issues: GitHub Issues
  2. Submit Pull Requests: Improve the codebase or add features

Acknowledgement

Special thanks to MCP Pandoc and pandoc-ext/diagram


Simple, focused Markdown to PowerPoint conversion via MCP

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_pandoc_md2pptx-0.1.1.tar.gz (188.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_pandoc_md2pptx-0.1.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_pandoc_md2pptx-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_pandoc_md2pptx-0.1.1.tar.gz
  • Upload date:
  • Size: 188.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.25

File hashes

Hashes for mcp_pandoc_md2pptx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3c658b2ce06882477decd607c0844c4e20bd80761604ea07e482fa367804c95a
MD5 8046341fd5c4124841a8635533953f1b
BLAKE2b-256 79eb0cba0db6f7444e2a56da5ebdeb1f004615c01d07e34afc3a3b280ccc15fd

See more details on using hashes here.

File details

Details for the file mcp_pandoc_md2pptx-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_pandoc_md2pptx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7335d305779bb9ccea8bbc6febb0093e138e6b5f057e0d012d70dac6efeceef4
MD5 e19ca6eb2a87c7f1c13ddb964daa1320
BLAKE2b-256 1d93db3bd579742ff7086a87416fad18c6c747b92f3128b5022ae4fd38aad2b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page