Pandoc MCP Server

@maitreyam Claim

Basic information

Runtime
python
License
Not specified
Transports
stdio
Author
maitreyam
Submitted by
Community
Quality
25
Stars
7

About Pandoc MCP Server

A Python-based MCP (Model Context Protocol) server powered by FastMCP that leverages Pandoc for flexible document conversion between various formats (Markdown, DOCX, PDF, HTML, etc.), designed for use with AI agents like Claude. Includes Docker configuration for easy deployment.

Pandoc MCP Server is a MCP server in the Cloud & Infrastructure category listed in the AddMCP.net directory, published by MaitreyaM. Supported transport: stdio. Runtime: python. The repository has 7 GitHub stars. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "FILE-CONVERTER-MCP": {
            "command": "npx",
            "args": [
                "-y",
                "@smithery/cli",
                "install",
                "@MaitreyaM/file-converter-mcp",
                "--client",
                "claude"
            ]
        }
    }
}

Pandoc MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "FILE-CONVERTER-MCP": {
            "command": "npx",
            "args": [
                "-y",
                "@smithery/cli",
                "install",
                "@MaitreyaM/file-converter-mcp",
                "--client",
                "claude"
            ]
        }
    }
}

Pandoc MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Pandoc MCP Server?

Pandoc MCP Server is a Python-based Model Context Protocol (MCP) server that enables AI agents to convert documents between formats such as Markdown, DOCX, HTML, PDF, and EPUB using Pandoc. It uses FastMCP and pypandoc, and is designed for integration with MCP clients like LangChain/LangGraph agents.

How to use Pandoc MCP Server?

Install automatically via Smithery (npx -y @smithery/cli install @MaitreyaM/file-converter-mcp --client claude), or run locally (requires Python ≥3.10, Pandoc, optional LaTeX for PDF) or with Docker (recommended). After starting the server, you invoke the convert_document tool, providing the input and output file paths, target format, and optional arguments.

Key features of Pandoc MCP Server

  • Exposes a single MCP tool: convert_document
  • Supports a wide range of input and output formats via Pandoc
  • Allows automatic format detection or manual specification
  • Supports extra Pandoc arguments (e.g., table of contents, margins)
  • Includes Docker configuration with LaTeX for PDF generation

Use cases of Pandoc MCP Server

  • An AI agent converting a Markdown report to PDF for distribution
  • Batch converting multiple DOCX files to EPUB for e‑book publishing
  • Transforming HTML documentation into LaTeX or RST
  • Integrating document conversion into a LangChain/LangGraph workflow

Frequently asked questions

1 What are the dependencies for running locally?

You need Python ≥3.10, the Pandoc command‑line tool, and optionally a LaTeX distribution (e.g., TeX Live or MiKTeX) for PDF generation. Python dependencies are listed in requirements.txt.

2 How do I use the server with Docker?

Build the Docker image (docker build -t pandoc-converter-server .) and run the container, mounting a host directory to /data inside the container. Files must be referenced with /data/ paths. The server listens on http://0.0.0.0:8000 using SSE transport.

3 How do I connect from an MCP client?

Configure your MCP client (e.g., MultiServerMCPClient) to connect to http://127.0.0.1:8000/sse with transport: "sse" when running locally or in Docker.

4 What file paths should I provide when using Docker?

Provide paths relative to /data/ inside the container, as this directory is mounted from the host. For example, /data/my_input.docx and /data/my_output.pdf. The output file will appear in the mounted host directory.

5 What formats are supported?

The server supports any format that Pandoc handles. Common formats include markdown, docx, html, pdf, latex, epub, rst, and many more. See the Pandoc documentation for the full list (--list-output-formats).

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬