mcp-pandoc logo

mcp-pandoc

by vivekVells

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.

View on GitHub

Last updated: N/A

What is mcp-pandoc?

mcp-pandoc is a server that leverages pandoc to convert documents between various formats. It is designed to be used within the Model Context Protocol ecosystem.

How to use mcp-pandoc?

Configuration involves adding the server to your claude_desktop_config.json file, either by manually specifying the command and arguments or using Smithery for automatic installation. You can then use the convert-contents tool with appropriate inputs like contents or input_file, input_format, output_format, and output_file.

Key features of mcp-pandoc

  • Supports multiple document formats (markdown, html, pdf, docx, rst, latex, epub, txt)

  • Uses Pandoc for reliable conversion

  • Integrates with Model Context Protocol

  • Provides a convert-contents tool for easy format transformation

Use cases of mcp-pandoc

  • Converting markdown to PDF for archival

  • Transforming HTML content into a DOCX document

  • Generating EPUB files from LaTeX sources

  • Converting plain text to HTML for web display

FAQ from mcp-pandoc

What is mcp-pandoc?

It's a document conversion server using pandoc within the Model Context Protocol.

What formats are supported?

It supports markdown, html, pdf, docx, rst, latex, epub, and txt.

How do I install it?

You can install it manually via claude_desktop_config.json or automatically using Smithery.

Why is PDF conversion failing?

You need to install TeX Live. See the README for installation commands.

What are the file path requirements?

You MUST provide complete file paths including filename and extension when saving or converting files.