Back to MCP Catalog

Pandoc Document Converter MCP Server

Document ConversionPython
Convert documents between various formats using Pandoc
Available Tools

convert_document

Converts a document from one format to another using Pandoc

contentfrom_formatto_format

list_supported_formats

Lists all supported input and output formats for document conversion

Pandoc Document Converter is a Model Context Protocol server that enables seamless transformation between different document formats while preserving formatting and structure. Built on the powerful Pandoc document conversion library, this MCP server allows AI assistants to convert content between formats like Markdown, HTML, LaTeX, and more. This tool bridges the gap between different document ecosystems, making it easy to transform content for various publishing platforms, documentation systems, or academic requirements. Whether you need to convert a Markdown document to HTML for web publishing or transform content into LaTeX for academic papers, this MCP server handles the conversion process with precision.

Introduction

Pandoc Document Converter is a Model Context Protocol server that provides document format conversion capabilities using the powerful Pandoc library. This server allows AI assistants to convert content between various document formats while maintaining formatting and structure.

Installation

Prerequisites

Before installing the MCP server, ensure you have:

  1. Python 3.10 or higher installed
  2. Pandoc installed on your system (visit pandoc.org for installation instructions)

Installation Steps

  1. Install the MCP server using pip:
pip install mcp-pandoc
  1. Configure your AI assistant client to use the MCP server by adding the following configuration:
"mcpServers": {
  "pandoc-converter": {
    "command": "python",
    "args": [
      "-m",
      "mcp_pandoc"
    ]
  }
}

Usage

Once installed, you can use the Pandoc Document Converter through your AI assistant. The server provides tools for converting between various document formats.

Example Conversions

  • Convert Markdown to HTML:

    Please convert this Markdown to HTML:
    # Hello World
    This is a **bold** statement.
    
  • Convert HTML to Markdown:

    Please convert this HTML to Markdown:
    <h1>Hello World</h1>
    <p>This is a <strong>bold</strong> statement.</p>
    
  • Convert between other supported formats like LaTeX, RST, AsciiDoc, etc.

Supported Formats

The Pandoc Document Converter supports numerous input and output formats, including:

  • Markdown (various flavors)
  • HTML
  • LaTeX
  • RST (reStructuredText)
  • AsciiDoc
  • DocBook
  • EPUB
  • And many more

Note that PDF support is currently under development.

Limitations

  • PDF conversion is still under development
  • Some complex formatting may not convert perfectly between all formats
  • The server requires Pandoc to be installed on your system

Troubleshooting

If you encounter issues:

  1. Ensure Pandoc is properly installed and accessible in your PATH
  2. Check that you're using supported input and output formats
  3. For complex documents, verify the conversion results as some formatting elements might require manual adjustment

Additional Resources

Related MCPs

No related MCPs found

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.