file format converter (pandoc).com
file format converter (pandoc).com logo

File Format Converter (Pandoc)

Document format conversion using Pandoc, enabling transformation of content between PDF, HTML, Markdown, .docx, .rst, .e...

Created byApr 22, 2025

mcp-pandoc: A Document Conversion MCP Server

Officially included in the Model Context Protocol servers open-source project.
<a href="https://glama.ai/mcp/servers/xyzzgaj9bk"><img width="380" height="200" src="https://glama.ai/mcp/servers/xyzzgaj9bk/badge" /></a> <a href="https://smithery.ai/server/mcp-pandoc"><img alt="Smithery Badge" src="https://smithery.ai/badge/mcp-pandoc"></a>

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.

Demo

More to come...

Tools

  1. convert-contents

Supported Formats

Currently supported formats:
Basic formats (direct conversion):
  • Plain text (.txt)
  • Markdown (.md)
  • HTML (.html)
Advanced formats (requires complete file paths):
  • PDF (.pdf) - requires TeX Live installation
  • DOCX (.docx)
  • RST (.rst)
  • LaTeX (.tex)
  • EPUB (.epub)
Note: For advanced formats:
  1. Complete file paths with filename and extension are required
  1. PDF conversion requires TeX Live installation (see Critical Requirements section -> For macOS: brew install texlive)
  1. When no output path is specified:

Usage & configuration

To use the published one

Important Notes

Critical Requirements

  1. PDF Conversion Prerequisites
  1. File Path Requirements

Examples

Correct Usage:
Incorrect Usage:

Common Issues and Solutions

  1. PDF Conversion Fails
  1. File Conversion Fails
  1. Format Conversion Fails

Quickstart

Install

Option 1: Installing manually via claude_desktop_config.json config file

  • On MacOS: open ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • On Windows: %APPDATA%/Claude/claude_desktop_config.json

Option 2: To install Published Servers Configuration automatically via Smithery

Run the following bash command to install published mcp-pandoc pypi for Claude Desktop automatically via Smithery:
Note: To use locally configured mcp-pandoc, follow "Development/Unpublished Servers Configuration" step above.

Development

Building and Publishing

To prepare the package for distribution:
  1. Sync dependencies and update lockfile:
  1. Build package distributions:
This will create source and wheel distributions in the dist/ directory.
  1. Publish to PyPI:
Note: You'll need to set PyPI credentials via environment variables or command flags:
  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via `npm` with this command:
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

Contributing

We welcome contributions to enhance mcp-pandoc! Here's how you can get involved:
  1. Report Issues: Found a bug or have a feature request? Open an issue on our GitHub Issues page.
  1. Submit Pull Requests: Improve the codebase or add features by creating a pull request.

mcp-pandoc: A Document Conversion MCP Server

Officially included in the Model Context Protocol servers open-source project.
<a href="https://glama.ai/mcp/servers/xyzzgaj9bk"><img width="380" height="200" src="https://glama.ai/mcp/servers/xyzzgaj9bk/badge" /></a> <a href="https://smithery.ai/server/mcp-pandoc"><img alt="Smithery Badge" src="https://smithery.ai/badge/mcp-pandoc"></a>

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.

Demo

More to come...

Tools

  1. convert-contents

Supported Formats

Currently supported formats:
Basic formats (direct conversion):
  • Plain text (.txt)
  • Markdown (.md)
  • HTML (.html)
Advanced formats (requires complete file paths):
  • PDF (.pdf) - requires TeX Live installation
  • DOCX (.docx)
  • RST (.rst)
  • LaTeX (.tex)
  • EPUB (.epub)
Note: For advanced formats:
  1. Complete file paths with filename and extension are required
  1. PDF conversion requires TeX Live installation (see Critical Requirements section -> For macOS: brew install texlive)
  1. When no output path is specified:

Usage & configuration

To use the published one

Important Notes

Critical Requirements

  1. PDF Conversion Prerequisites
  1. File Path Requirements

Examples

Correct Usage:
Incorrect Usage:

Common Issues and Solutions

  1. PDF Conversion Fails
  1. File Conversion Fails
  1. Format Conversion Fails

Quickstart

Install

Option 1: Installing manually via claude_desktop_config.json config file

  • On MacOS: open ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • On Windows: %APPDATA%/Claude/claude_desktop_config.json

Option 2: To install Published Servers Configuration automatically via Smithery

Run the following bash command to install published mcp-pandoc pypi for Claude Desktop automatically via Smithery:
Note: To use locally configured mcp-pandoc, follow "Development/Unpublished Servers Configuration" step above.

Development

Building and Publishing

To prepare the package for distribution:
  1. Sync dependencies and update lockfile:
  1. Build package distributions:
This will create source and wheel distributions in the dist/ directory.
  1. Publish to PyPI:
Note: You'll need to set PyPI credentials via environment variables or command flags:
  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via `npm` with this command:
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

Contributing

We welcome contributions to enhance mcp-pandoc! Here's how you can get involved:
  1. Report Issues: Found a bug or have a feature request? Open an issue on our GitHub Issues page.
  1. Submit Pull Requests: Improve the codebase or add features by creating a pull request.