Server facts
mcp-pandoc
GitHub stars
586
Last commit
Aug 15, 2026
Runtime
python
License
MIT
Project
- Author
- vivekVells
- Repository
- github.com/vivekVells/mcp-pandoc
- Website
- pypi.org/project/mcp-pandoc
- License
- MIT
- Category
- Files & Documents
Tech
- Runtime
- python
- Transports
- stdio
- Remote access
- No
- Authentication
- None (local Pandoc and filesystem access)
Activity
- GitHub stars
- 586
- Last commit
- Data as of
Tags
- pandoc
- pandoc markdown
- pandoc template
Overview
Writers, researchers, and engineers searching for `pandoc mcp` can add multi-format document conversion to Claude Desktop and stdio-compatible clients using `vivekVells/mcp-pandoc`, an MIT-licensed Python server listed in the official open-source Model Context Protocol servers repository. Setup requires installing both the `pandoc` CLI and `uv` locally (plus TeX Live / `texlive-xetex` or MiKTeX only when exporting PDFs), then adding `uvx mcp-pandoc` to `claude_desktop_config.json` with no external API keys required. Contributors running from source can invoke `uv --directory` and debug over `stdio` via MCP Inspector (`npx @modelcontextprotocol/inspector`).
All conversions flow through the `convert-contents` tool, accepting either inline `contents` or an absolute `input_file` path. Bidirectional reading and writing cover Markdown, HTML, TXT, DOCX, ODT, RST, LaTeX, EPUB, and IPYNB, while PDF and PPTX are write-only (Pandoc has no PDF reader, and PPTX input is withheld because Ubuntu 24.04 ships pandoc 3.1.3 whereas PPTX reading arrived in 3.8.3). Basic formats (MD, HTML, TXT, IPYNB) return inline, whereas advanced outputs (DOCX, ODT, PDF, PPTX, RST, LaTeX, EPUB) require a complete `output_file` path with filename and extension. Advanced workflows also accept `defaults_file` YAML templates, custom `filters`, and format-matched `reference_doc` styling templates for DOCX, ODT, and PPTX.
Install & configure
Requirements
- Local `pandoc` binary (`brew install pandoc`, `sudo apt-get install pandoc`, or Windows installer)
- Python `uv` package manager (`brew install uv` or `pip install uv`) to run `uvx mcp-pandoc`
- TeX Live (`brew install texlive` / `sudo apt-get install texlive-xetex`) or MiKTeX on Windows when exporting PDF files
uvx mcp-pandocVerify `pandoc --version` and `uvx --version`, then add `"command": "uvx", "args": ["mcp-pandoc"]` under `mcpServers` in `claude_desktop_config.json`. Always supply complete file paths with filename and extension when converting to DOCX, ODT, PDF, PPTX, RST, LaTeX, or EPUB.
Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"mcp-pandoc": {
"command": "uvx",
"args": [
"mcp-pandoc"
]
}
}
}Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"mcp-pandoc": {
"command": "uvx",
"args": [
"mcp-pandoc"
]
}
}
}Config file · Workspace: .vscode/mcp.json
For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.
{
"servers": {
"mcp-pandoc": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-pandoc"
]
}
}
}Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"mcp-pandoc": {
"command": "uvx",
"args": [
"mcp-pandoc"
]
}
}
}Config file · Project scope: .mcp.json at the repository root
The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"mcp-pandoc": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-pandoc"
]
}
}
}Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Tools
Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.
| Tool | What it does |
|---|---|
| convert-contents | Convert inline text or local files between supported Pandoc formats with optional `output_file`, `reference_doc` styling template, YAML `defaults_file`, and `filters`. |
Use cases
- Transform drafted Markdown notes or Jupyter notebooks (`.ipynb`) into formatted DOCX, ODT, or branded PPTX slide decks using a `reference_doc` template.
- Compile academic Markdown manuscripts into numbered, table-of-contents PDFs via reusable YAML `defaults_file` configurations and TeX Live.
- Apply custom Pandoc filter scripts (such as a Mermaid diagram filter) while exporting technical documentation from Markdown to HTML.
- Convert existing DOCX, RST, LaTeX, or EPUB files back into clean Markdown inside Claude Desktop for editing and summarization.
Strengths
- Runs completely offline over `stdio` via `uvx mcp-pandoc` with no cloud API keys or file uploads.
- Supports bidirectional conversion across Markdown, HTML, TXT, DOCX, ODT, RST, LaTeX, EPUB, and IPYNB plus write-only PDF and PPTX export.
- Exposes power-user Pandoc features including `reference_doc` styling templates, reusable YAML `defaults_file` configs, and custom `filters`.
- Included in the Model Context Protocol servers repository with a pytest suite (`tests/test_conversions.py`) and copy-paste `CHEATSHEET.md`.
Limitations
- PDF and PPTX are write-only; `mcp-pandoc` cannot read PDF or PPTX source files.
- PDF export requires installing TeX Live or MiKTeX locally (`xelatex`), and the README notes the project is still in early development.
- Omitting a full filename and extension on advanced output formats fails, and `reference_doc` must strictly match the target output format (`.docx`, `.odt`, or `.pptx`).
mcp-pandoc setup notes
- mcp-pandoc's stdio example needs a client that launches local processes.