File Format Converter (Pandoc) MCP

MCP文档知识

提供方 未标注

文档知识 未标注 未标注 社区 / 第三方
查看接入方式

全面解析File Format Converter (Pandoc)MCP Server的核心功能、安装配置和实用案例。作为顶级Model Context Protocol服务器,File Format Converter (Pandoc)能让AI助手访问实时数据、执行操作,为您提供更智能的工作体验和自动化解决方案。

一句话选型结论

按资料字段整理

File Format Converter (Pandoc) MCP 属于文档知识类 MCP 服务器,传输方式未标注,鉴权方式未标注,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类文档知识 传输方式未标注 鉴权未标注 部署方式未标注
GitHub 星标 未标注 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

文档知识
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

安装与配置

未标注 未标注
上游未给出传输方式
npx -y @smithery/cli install mcp-pandoc --client claude

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    按官方文档确认运行环境(常见为 Node.js 或 Python),装好后再执行安装命令。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
文档检索问答

在你的文档库里按问题找答案。

知识库读写

把新资料写进知识库,随用随取。

内容整理

把零散资料归纳成结构化笔记。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。

先想清楚的地方

  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在文档知识场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
File Format Converter (Pandoc) MCP当前 未标注 未标注 未标注 有 2026-05-17
dify 未标注 stdio · 本地进程 本地部署 有 2026-04-11
open-webui 未标注 stdio · 本地进程 本地部署 有 2026-04-11
JeecgBoot 未标注 stdio · 本地进程 本地部署 有 2026-04-11
Cherry Studio 未标注 未标注 未标注 无 2026-05-17
mempalace 未标注 stdio · 本地进程 本地部署 有 2026-04-11

服务器档案

文档知识
字段来自项目仓库与公开索引,中文说明由本站标注
提供方未标注上游标注的维护方 未标注
分类文档知识本站按上游分类展示
连接方式未标注上游未给出传输方式
鉴权方式未标注远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · Node.js本地安装时用到的包标识与运行时
部署类型未标注上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

12.2 KB
来自项目仓库与上游目录的原文,未做删改

mcp-pandoc: A Document Conversion MCP Server

> Officially included in the Model Context Protocol servers open-source project. 🎉

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.

📋 Quick Reference

New to mcp-pandoc? Check out 📖 CHEATSHEET.md for

  • ⚡ Copy-paste examples for all formats
  • 🔄 Bidirectional conversion matrix
  • 🎯 Common workflows and pro tips
  • 🌟 Reference document styling guide

Perfect for quick lookups and getting started fast!

Demo

> 🎥 Watch on YouTube

Screenshots

More to come...

Tools

  1. convert-contents
    - Transforms content between supported formats
    - Inputs:

    • contents (string): Source content to convert (required if input_file not provided)
    • input_file (string): Complete path to input file (required if contents not provided)
    • input_format (string): Source format of the content (defaults to markdown)
    • output_format (string): Target format (defaults to markdown)
    • output_file (string): Complete path for output file (required for pdf, docx, rst, latex, epub, odt, pptx formats)
    • reference_doc (string): Path to a reference document to use for styling (supported for docx, odt and pptx output; the file must match the output format)
    • defaults_file (string): Path to a Pandoc defaults file (YAML) containing conversion options
    • filters (array): List of Pandoc filter paths to apply during conversion
    • Supported formats, by direction:
    Format Read Write
    markdown ✅ ✅
    html ✅ ✅
    docx ✅ ✅
    odt ✅ ✅
    rst ✅ ✅
    latex ✅ ✅
    epub ✅ ✅
    ipynb ✅ ✅
    txt ✅ ✅
    pdf ❌ ✅
    pptx ❌ ✅
  • Note: For advanced formats (pdf, docx, rst, latex, epub, odt, pptx), an output_file path is required

🔧 Advanced Features

Defaults Files (YAML Configuration)

Use defaults files to create reusable conversion templates with consistent formatting:```yaml

academic-paper.yaml

from: markdown
to: pdf
number-sections: true
toc: true
metadata:
title: "Academic Paper"
author: "Research Team"


Example usage: `"Convert paper.md to PDF using defaults academic-paper.yaml and save as paper.pdf"`

#### Pandoc Filters

Apply custom filters for enhanced processing:

Example usage: `"Convert docs.md to HTML with filters ['/path/to/mermaid-filter.py'] and save as docs.html"`

> 💡 **For comprehensive examples and workflows**, see **CHEATSHEET.md**

## 📊 Supported Formats & Conversions

### Bidirectional Conversion Matrix

Rows are source formats, columns are targets. PDF and PPTX have no rows because pandoc cannot read them.

| From\To      | MD  | HTML | TXT | DOCX | ODT | RST | LaTeX | EPUB | IPYNB | PDF | PPTX |
| ------------ | --- | ---- | --- | ---- | --- | --- | ----- | ---- | ----- | --- | ---- |
| **Markdown** | ✅  | ✅   | ✅  | ✅   | ✅  | ✅  | ✅    | ✅   | ✅    | ✅  | ✅   |
| **HTML**     | ✅  | ✅   | ✅  | ✅   | ✅  | ✅  | ✅    | ✅   | ✅    | ✅  | ✅   |
| **TXT**      | ✅  | ✅   | ✅  | ✅   | ✅  | ✅  | ✅    | ✅   | ✅    | ✅  | ✅   |
| **DOCX**     | ✅  | ✅   | ✅  | ✅   | ✅  | ✅  | ✅    | ✅   | ✅    | ✅  | ✅   |
| **ODT**      | ✅  | ✅   | ✅  | ✅   | ✅  | ✅  | ✅    | ✅   | ✅    | ✅  | ✅   |
| **RST**      | ✅  | ✅   | ✅  | ✅   | ✅  | ✅  | ✅    | ✅   | ✅    | ✅  | ✅   |
| **LaTeX**    | ✅  | ✅   | ✅  | ✅   | ✅  | ✅  | ✅    | ✅   | ✅    | ✅  | ✅   |
| **EPUB**     | ✅  | ✅   | ✅  | ✅   | ✅  | ✅  | ✅    | ✅   | ✅    | ✅  | ✅   |
| **IPYNB**    | ✅  | ✅   | ✅  | ✅   | ✅  | ✅  | ✅    | ✅   | ✅    | ✅  | ✅   |

### A Note on Write-Only Formats

**PDF** and **PPTX** can be produced but not read.

Pandoc has never shipped a PDF reader. Pandoc gained a PowerPoint reader in 3.8.3 (released 2025-12-01), but this project declares no minimum pandoc version, and Ubuntu 24.04 still ships pandoc 3.1.3, so `pptx` input is not offered. Tracked in #54 and #49.

PPTX **output** needs no particular pandoc version. The PowerPoint writer has existed since pandoc 2.0.5.

### Format Categories

| Category     | Formats                            | Requirements                    |
| ------------ | ---------------------------------- | ------------------------------- |
| **Basic**    | MD, HTML, TXT, IPYNB               | None, returned inline           |
| **Advanced** | DOCX, ODT, PDF, PPTX, RST, LaTeX, EPUB | Must specify `output_file` path |
| **Styled**   | DOCX, ODT, PPTX with reference doc | Custom template support ⭐      |

### Requirements by Format

- **PDF (.pdf)** - requires TeX Live installation
- **DOCX (.docx), ODT (.odt), PPTX (.pptx)** - support custom styling via reference documents, and the reference must be the same format as the output
- **All others** - no additional requirements

Note: For advanced formats:

1. Complete file paths with filename and extension are required
2. **PDF conversion requires TeX Live installation** (see Critical Requirements section -> For macOS: `brew install texlive`)
3. When no output path is specified:
   - Basic formats: Displays converted content in the chat
   - Advanced formats: May save in system temp directory (/tmp/ on Unix systems)

## Usage & configuration

**NOTE: Ensure to complete installing required packages mentioned below under "Critical Requirements".**

To use the published one```bash
{
  "mcpServers": {
    "mcp-pandoc": {
      "command": "uvx",
      "args": ["mcp-pandoc"]
    }
  }
}

💡 Quick Start: See CHEATSHEET.md for copy-paste examples and common workflows.

⚠️ Important Notes

Critical Requirements

  1. Pandoc Installation
  • Required: Install pandoc - the core document conversion engine
  • Installation:```bash
    # macOS
    brew install pandoc

# Ubuntu/Debian
sudo apt-get install pandoc

# Windows
# Download installer from: https://pandoc.org/installing.html
```

  • Verify: pandoc --version
  1. UV package installation
  • Required: Install uv package (includes uvx command)
  • Installation:```bash
    # macOS
    brew install uv

# Windows/Linux
pip install uv
```

  • Verify: uvx --version
  1. PDF Conversion Prerequisites: Only needed if you need to convert & save pdf
  • TeX Live must be installed before attempting PDF conversion
  • Installation commands:```bash
    # Ubuntu/Debian
    sudo apt-get install texlive-xetex

# macOS
brew install texlive

# Windows
# Install MiKTeX or TeX Live from:
# https://miktex.org/ or https://tug.org/texlive/
```

  1. File Path Requirements
  • When saving or converting files, you MUST provide complete file paths including filename and extension
  • The tool does not automatically generate filenames or extensions

Examples

✅ Correct Usage:```bash

Converting content to PDF

"Convert this text to PDF and save as /path/to/document.pdf"

Converting between file formats

"Convert /path/to/input.md to PDF and save as /path/to/output.pdf"

Converting to DOCX with a reference document template

"Convert input.md to DOCX using template.docx as reference and save as output.docx"

Converting to ODT with a reference document template

"Convert input.md to ODT using template.odt as reference and save as output.odt"

Converting to a branded PowerPoint deck

"Convert slides.md to PPTX using template.pptx as reference and save as deck.pptx"

Step-by-step reference document workflow

"First create a reference document: pandoc -o custom-reference.docx --print-default-data-file reference.docx" or if you already have one, use that
"Then convert with custom styling: Convert this text to DOCX using /path/to/custom-reference.docx as reference and save as /path/to/styled-output.docx"


❌ Incorrect Usage:```bash
# Missing filename and extension
"Save this as PDF in /documents/"

# Missing complete path
"Convert this to PDF"

# Missing extension
"Save as /documents/story"

Common Issues and Solutions

  1. PDF Conversion Fails
  • Error: "xelatex not found"
  • Solution: Install TeX Live first (see installation commands above)
  1. File Conversion Fails
  • Error: "Invalid file path"
  • Solution: Provide complete path including filename and extension
  • Example: /path/to/document.pdf instead of just /path/to/
  1. Format Conversion Fails
  • Error: "Unsupported format"
  • Solution: Use only supported formats:
    • Basic: txt, html, markdown
    • Advanced: pdf, docx, rst, latex, epub
  1. Reference Document Issues
    - Error: "Reference document not found"
    - Solution: Ensure the reference document path exists and is accessible
    - Error: "reference_doc must be a '.odt' file when output_format is 'odt'"
    - Solution: The reference document must be the same format as the output. Pandoc does not check this itself: a mismatched reference is silently ignored for DOCX output, and produces an ODT file that cannot be opened
    - Note: Reference documents work with DOCX, ODT and PPTX output formats
    - How to create: pandoc -o reference.docx --print-default-data-file reference.docx, and likewise with reference.odt or reference.pptx

Quickstart

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

a) Only for local development & contribution to this repo

Development/Unpublished Servers Configuration

ℹ️ Replace with your locally cloned project path```bash
"mcpServers": {
"mcp-pandoc": {
"command": "uv",
"args": [
"--directory",
"<DIRECTORY>/mcp-pandoc",
"run",
"mcp-pandoc"
]
}
}


b) Published Servers Configuration - Consumers should use this config```bash
&quot;mcpServers&quot;: {
  &quot;mcp-pandoc&quot;: {
    &quot;command&quot;: &quot;uvx&quot;,
    &quot;args&quot;: [
      &quot;mcp-pandoc&quot;
    ]
  }
}
  • If you face any issue, use the "Published Servers Configuration" above directly instead of this cli.

Note: To use locally configured mcp-pandoc, follow "Development/Unpublished Servers Configuration" step above.

Development

Testing

To run the comprehensive test suite and validate all supported bidirectional conversions, use the following command:```bash
uv run pytest tests/test_conversions.py


This ensures backward compatibility and verifies the tool&#x27;s core functionality.

### Building and Publishing

To prepare the package for distribution:

1. Sync dependencies and update lockfile:```bash
uv sync
  1. Build package distributions:```bash
    uv build

This will create source and wheel distributions in the `dist/` directory.

3. Publish to PyPI:```bash
uv publish

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:bash npx @modelcontextprotocol/inspector uv --directory /Users/vivekvells/Desktop/code/ai/mcp-pandoc run mcp-pandoc

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.
  2. Submit Pull Requests: Improve the codebase or add features by creating a pull request.

常见问题

6 问
答案由本站依据条目字段整理,不引用上游原文
File Format Converter (Pandoc) MCP 怎么安装?

在客户端按下面的安装命令接入:npx -y @smithery/cli install mcp-pandoc --client claude。装完在客户端配置里引用同一个包或端点。

File Format Converter (Pandoc) MCP 怎么在客户端里配置?

它的传输方式未标注,在客户端 MCP 配置里按官方文档填写启动命令和参数,保存后重启客户端生效。

File Format Converter (Pandoc) MCP 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

File Format Converter (Pandoc) MCP 需要 API Key 吗?

资料没有标注鉴权方式,是否需要密钥取决于服务本身,接入前按官方文档确认。

File Format Converter (Pandoc) MCP 能提供哪些能力?

资料显示能力标签包括 文档转换、JavaScript、文档处理。具体工具清单以官方文档为准。

File Format Converter (Pandoc) MCP 需要什么运行环境?

运行时为 Node.js。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。