mcp-pandoc: A Document Conversion MCP Server
Officially included in the Model Context Protocol servers open-source project. 🎉
Overview
A Model Context Protocol server for document format conversion using pandoc. This server provides tools to transform content between different document formats while preserving formatting and structure.
Please note that mcp-pandoc is currently in early development. PDF support is under development, and the functionality and available tools are subject to change and expansion as we continue to improve the server.
Credit: This project uses the Pandoc Python package for document conversion, forming the foundation for this project.
📋 Quick Reference
New to mcp-pandoc? Check out 📖 CHEATSHEET.md for
- ⚡ Copy-paste examples for all formats
- 🔄 Bidirectional conversion matrix
- 🎯 Common workflows and pro tips
- 🌟 Reference document styling guide
Perfect for quick lookups and getting started fast!
Demo
Screenshots
More to come...
Tools
convert-contents- Transforms content between supported formats
- Inputs:
contents(string): Source content to convert (required if input_file not provided)input_file(string): Complete path to input file (required if contents not provided)input_format(string): Source format of the content (defaults to markdown)output_format(string): Target format (defaults to markdown)output_file(string): Complete path for output file (required for pdf, docx, rst, latex, epub formats)reference_doc(string): Path to a reference document to use for styling (supported for docx output format)defaults_file(string): Path to a Pandoc defaults file (YAML) containing conversion optionsfilters(array): List of Pandoc filter paths to apply during conversion
- Supported input/output formats:
- markdown
- html
- docx
- rst
- latex
- epub
- txt
- ipynb
- odt
- Note: For advanced formats (pdf, docx, rst, latex, epub), an output_file path is required








