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.
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
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
-
Pandoc Installation
# macOS brew install pandoc # Ubuntu/Debian sudo apt-get install pandoc # Windows # Download from: https://pandoc.org/installing.html
-
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:
-
Generate default template:
pandoc -o template.pptx --print-default-data-file reference.pptx
-
Customize in PowerPoint with your fonts, colors, and slide layouts
-
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
- Report Issues: GitHub Issues
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_pandoc_md2pptx-0.1.0.tar.gz.
File metadata
- Download URL: mcp_pandoc_md2pptx-0.1.0.tar.gz
- Upload date:
- Size: 188.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36ad2a705b9ff7b49eb042f08ea2eb89ad198914b909abbd1af60ac669ae780a
|
|
| MD5 |
78d7469b12e9e4994fc3b1a84e17f8f1
|
|
| BLAKE2b-256 |
d2be91d75d32480761a0fd83bef1ee472d46b908c02cda7a1f9c00b838410750
|
File details
Details for the file mcp_pandoc_md2pptx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_pandoc_md2pptx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58421c17827911d63d3d18bd350c8dec23a341184de0296fc37a5f477b0a3d19
|
|
| MD5 |
1c68c562e295f30fd440cf28732c399a
|
|
| BLAKE2b-256 |
fbe8072ce4935a74fe45afb621ae969707835aa1111707b1733feb9f2809afbe
|