Universal document converter
## Pandoc MCP Server: Universal Document Converter The **Pandoc MCP Server** integrates the Swiss Army knife of document conversion directly into Google Antigravity, enabling AI assistants to convert between virtually any document format programmatically. This integration brings unparalleled document conversion capabilities to your development workflow. ### Why Pandoc MCP? - **Universal Converter**: Convert between 40+ document formats seamlessly - **Academic Writing**: Support for citations, bibliographies, and academic formats - **Template System**: Apply custom templates for consistent output styling - **Filter Support**: Extend functionality with Lua and Python filters - **Metadata Handling**: Comprehensive metadata transformation and preservation ### Key Features #### 1. Format Conversion ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Convert this Markdown document to a formatted Word document" }], tools=[{ "name": "pandoc_convert", "description": "Convert documents" }] ) ``` #### 2. Academic Documents ```python # Convert with citations response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Convert this Markdown paper to LaTeX with IEEE citation style" }], tools=[{"name": "pandoc_academic", "description": "Academic conversion"}] ) ``` #### 3. Template Application ```python # Apply templates response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Convert to PDF using our corporate report template" }], tools=[{"name": "pandoc_template", "description": "Apply templates"}] ) ``` #### 4. Batch Conversion ```python # Convert multiple documents response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Convert all Markdown files in docs/ to HTML with table of contents" }], tools=[{"name": "pandoc_batch", "description": "Batch conversion"}] ) ``` ### Configuration ```json { "mcpServers": { "pandoc": { "command": "npx", "args": ["-y", "@anthropic/mcp-pandoc"], "env": { "PANDOC_DATA_DIR": "~/.pandoc", "DEFAULT_PDF_ENGINE": "xelatex" } } } } ``` ### Use Cases **Documentation Publishing**: Convert documentation to multiple output formats. **Academic Writing**: Produce papers in various formats with proper citations. **E-Book Creation**: Convert content to EPUB and other e-book formats. **Report Generation**: Generate formatted reports from Markdown or other sources. The Pandoc MCP Server brings universal document conversion directly into your development workflow, enabling any-to-any format transformations.
{
"mcpServers": {
"pandoc": {
"mcpServers": {
"pandoc": {
"args": [
"mcp-pandoc"
],
"command": "uvx"
}
}
}
}
}