mcp-pandoc: A Document Conversion MCP Server <a href="https://glama.ai/mcp/servers/xyzzgaj9bk"><img width="380" height="200" src="https://glama.ai/mcp/servers/xyzzgaj9bk/badge" /></a>
<a href="https://smithery.ai/server/mcp-pandoc"><img alt="Smithery Badge" src="https://smithery.ai/badge/mcp-pandoc"></a>
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.
Demo More to come...
Tools convert-contentsSupported Formats Currently supported formats:
Basic formats (direct conversion):
Advanced formats (requires complete file paths):
PDF (.pdf) - requires TeX Live installation Note: For advanced formats:
Complete file paths with filename and extension are required PDF conversion requires TeX Live installation (see Critical Requirements section -> For macOS: brew install texlive)When no output path is specified: Usage & configuration To use the published one
Important Notes Critical Requirements PDF Conversion Prerequisites File Path Requirements Examples Correct Usage:
Incorrect Usage:
Common Issues and Solutions PDF Conversion Fails File Conversion Fails Format Conversion Fails Quickstart Install Option 1: 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 Option 2: To install Published Servers Configuration automatically via Smithery Run the following bash command to install
published mcp-pandoc pypi for Claude Desktop automatically via
Smithery :
Note : To use locally configured mcp-pandoc, follow "Development/Unpublished Servers Configuration" step above.
Development Building and Publishing To prepare the package for distribution:
Sync dependencies and update lockfile: Build package distributions: This will create source and wheel distributions in the dist/ directory.
Publish to PyPI: 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:
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:
Report Issues : Found a bug or have a feature request? Open an issue on our GitHub Issues page.Submit Pull Requests : Improve the codebase or add features by creating a pull request.mcp-pandoc: A Document Conversion MCP Server <a href="https://glama.ai/mcp/servers/xyzzgaj9bk"><img width="380" height="200" src="https://glama.ai/mcp/servers/xyzzgaj9bk/badge" /></a>
<a href="https://smithery.ai/server/mcp-pandoc"><img alt="Smithery Badge" src="https://smithery.ai/badge/mcp-pandoc"></a>
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.
Demo More to come...
Tools convert-contentsSupported Formats Currently supported formats:
Basic formats (direct conversion):
Advanced formats (requires complete file paths):
PDF (.pdf) - requires TeX Live installation Note: For advanced formats:
Complete file paths with filename and extension are required PDF conversion requires TeX Live installation (see Critical Requirements section -> For macOS: brew install texlive)When no output path is specified: Usage & configuration To use the published one
Important Notes Critical Requirements PDF Conversion Prerequisites File Path Requirements Examples Correct Usage:
Incorrect Usage:
Common Issues and Solutions PDF Conversion Fails File Conversion Fails Format Conversion Fails Quickstart Install Option 1: 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 Option 2: To install Published Servers Configuration automatically via Smithery Run the following bash command to install
published mcp-pandoc pypi for Claude Desktop automatically via
Smithery :
Note : To use locally configured mcp-pandoc, follow "Development/Unpublished Servers Configuration" step above.
Development Building and Publishing To prepare the package for distribution:
Sync dependencies and update lockfile: Build package distributions: This will create source and wheel distributions in the dist/ directory.
Publish to PyPI: 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:
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:
Report Issues : Found a bug or have a feature request? Open an issue on our GitHub Issues page.Submit Pull Requests : Improve the codebase or add features by creating a pull request.