mcp-pandoc: A Document Conversion MCP Server
@vivekVells
mcp-pandoc: A Document Conversion MCP Server について
MCP server for document format conversion using pandoc.
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-pandoc": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"mcp-pandoc",
"--client",
"claude"
]
}
}
}ツール
2`contents` (string): Source content to convert (required if input_file not provided)
For advanced formats (pdf, docx, rst, latex, epub), an output_file path is required
概要
What is mcp-pandoc?
mcp-pandoc is a Model Context Protocol server for document format conversion using pandoc. It provides tools to transform content between different document formats while preserving formatting and structure, and is officially included in the Model Context Protocol servers open-source project.
How to use mcp-pandoc?
Install pandoc and the uv package manager, then configure your MCP client (e.g., Claude Desktop) with the mcpServers entry using uvx mcp-pandoc. The server exposes one tool, convert-contents, which accepts source content or an input file, source/target formats, an optional output file, a reference document for DOCX styling, a defaults file, and Pandoc filters.
Key features of mcp-pandoc
- Single tool
convert-contentsfor all conversions - Supports 10 formats: markdown, HTML, TXT, DOCX, PDF, RST, LaTeX, EPUB, IPYNB, ODT
- Bidirectional conversion between all supported formats (PDF output only)
- Advanced features: defaults files (YAML) and Pandoc filters
- DOCX output supports custom styling via reference documents
- Basic conversions display in chat; advanced formats require output file path
Use cases of mcp-pandoc
- Convert Markdown notes to PDF or DOCX documents
- Convert HTML content to EPUB for e‑readers
- Transform Jupyter notebooks (IPYNB) to Markdown or HTML
- Batch convert multiple files between formats using defaults templates
- Produce styled DOCX files with custom reference document templates
FAQ from mcp-pandoc
How do I convert content using the convert-contents tool?
Provide either the contents string or an input_file path, plus the desired input_format and output_format. For advanced formats (PDF, DOCX, RST, LaTeX, EPUB) you must also supply an output_file path.
Does mcp-pandoc support PDF conversion?
PDF is supported as an output‑only format. Converting from PDF to other formats is not supported. PDF generation requires TeX Live to be installed.
What are the critical requirements before using mcp-pandoc?
You must install pandoc itself, the uv package manager (which provides the uvx command), and optionally TeX Live for PDF output. Complete file paths with filename and extension are mandatory when saving files.
Can I customize the styling of DOCX output?
Yes, you can provide a reference document (.docx or created via pandoc -o reference.docx --print-default-data-file reference.docx) to override default styles. This works only for DOCX output.
What formats are supported and what are the format categories?
Formats are split into Basic (MD, HTML, TXT, IPYNB, ODT – no extra requirements) and Advanced (DOCX, PDF, RST, LaTeX, EPUB – require an output file path). All formats can be bidirectionally converted except PDF (output only).
「その他」の他のコンテンツ
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
Codelf
unbugA search tool helps dev to solve the naming things problem.
コメント