File Converter MCP Server
by wowyuarm
This MCP server provides multiple file conversion tools for converting various document and image formats. It is built using the Model Context Protocol (MCP) and designed to serve AI agents that need file conversion capabilities.
Last updated: N/A
What is File Converter MCP Server?
The File Converter MCP Server is a tool that provides various file conversion functionalities, enabling conversion between document and image formats. It leverages the Model Context Protocol (MCP) to serve AI agents requiring file conversion capabilities.
How to use File Converter MCP Server?
To use the server, first clone the repository, create a virtual environment, and install the dependencies. Then, run the server in development mode using mcp dev file_converter_server.py
. You can also install it on Claude Desktop using mcp install file_converter_server.py --name "File Converter"
. Use the provided API tools (docx2pdf, pdf2docx, convert_image, etc.) with either path-based or content-based input to perform conversions.
Key features of File Converter MCP Server
DOCX to PDF conversion
PDF to DOCX conversion
Image format conversion (JPG, PNG, WebP, etc.)
Excel to CSV conversion
HTML to PDF conversion
Markdown to PDF conversion
Generic file conversion tool
Dual-mode input (path-based and content-based)
Use cases of File Converter MCP Server
Converting Word documents to PDF for archiving
Extracting text from PDF documents into editable Word format
Optimizing images for web use by converting to WebP
Converting Excel spreadsheets to CSV for data analysis
Generating PDF reports from HTML templates
Creating PDF documents from Markdown notes
Integrating file conversion capabilities into AI agents
FAQ from File Converter MCP Server
How do I install the server?
How do I install the server?
Clone the repository, create a virtual environment, and install the dependencies using pip install mcp docx2pdf pdf2docx pillow pandas pdfkit markdown
or uv add "mcp[cli]" docx2pdf pdf2docx pillow pandas pdfkit markdown
.
How do I run the server?
How do I run the server?
Run the server in development mode using mcp dev file_converter_server.py
.
What input formats are supported?
What input formats are supported?
The server supports DOCX, PDF, JPG, PNG, WebP, Excel (XLS, XLSX), HTML, and Markdown.
How do I specify the input file?
How do I specify the input file?
You can specify the input file using either the input_file
parameter with the file path or the file_content_base64
parameter with the base64 encoded content of the file.
What is the output format?
What is the output format?
The output is a base64 encoded string of the converted file. You will need to decode it to get the actual file.