What is mcp-pandoc?
mcp-pandoc is a Model Context Protocol server for document format conversion using pandoc. It provides tools to transform content between different document formats while preserving formatting and structure, and is officially included in the Model Context Protocol servers open-source project.
How to use mcp-pandoc?
Install pandoc and the uv package manager, then configure your MCP client (e.g., Claude Desktop) with the mcpServers entry using uvx mcp-pandoc. The server exposes one tool, convert-contents, which accepts source content or an input file, source/target formats, an optional output file, a reference document for DOCX styling, a defaults file, and Pandoc filters.
Key features of mcp-pandoc
- Single tool
convert-contents for all conversions
- Supports 10 formats: markdown, HTML, TXT, DOCX, PDF, RST, LaTeX, EPUB, IPYNB, ODT
- Bidirectional conversion between all supported formats (PDF output only)
- Advanced features: defaults files (YAML) and Pandoc filters
- DOCX output supports custom styling via reference documents
- Basic conversions display in chat; advanced formats require output file path
Use cases of mcp-pandoc
- Convert Markdown notes to PDF or DOCX documents
- Convert HTML content to EPUB for e‑readers
- Transform Jupyter notebooks (IPYNB) to Markdown or HTML
- Batch convert multiple files between formats using defaults templates
- Produce styled DOCX files with custom reference document templates
评论