ConvertAPI
High-Performance File Conversion MCP
ConvertAPI MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with powerful file format conversion capabilities through the ConvertAPI service. Convert documents, images, spreadsheets, presentations, and more between 200+ file formats with OpenAPI-driven parameter validation.
Features
- š Universal File Conversion - Convert between 200+ file formats (PDF, DOCX, XLSX, JPG, PNG, HTML, and more)
- ā OpenAPI-Driven Validation - Dynamic parameter validation against ConvertAPI's live OpenAPI specification
- šÆ Comprehensive Parameters - Supports all ConvertAPI parameters including PageSize, PageOrientation, Quality, StoreFile, etc.
- š¤ AI-Ready - Seamlessly integrates with Claude Desktop, Cline, and other MCP-compatible AI assistants
- š¦ Local - Supports local file operations
Installation
Prerequisites
- .NET 9.0 SDK or later
- A ConvertAPI account and API secret (Get one free)
Configuration
- Clone the repository:
git clone https://github.com/ConvertAPI/convertapi-mcp cd ConvertAPI-MCP
- Set your ConvertAPI secret as an environment variable:
Windows (PowerShell): $env:CONVERTAPI_SECRET = "your_api_secret_here" $env:CONVERTAPI_BASE_URI = "https://v2.convertapi.com"
Linux/macOS: export CONVERTAPI_SECRET="your_api_secret_here" export CONVERTAPI_BASE_URI="https://v2.convertapi.com"
- Build the project: dotnet build
Usage
Configuration:
Set the following in your application configuration:
Local Mode (with file download): dotnet run --project "CA.MCP.Local"
Integration with AI Assistants
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"convertapi": {
"command": "dotnet",
"args": [
"run",
"--project",
"C:\\Path\\To\\CA.MCP.Local\\CA.MCP.Local.csproj",
"--no-build"
],
"env": {
"CONVERTAPI_SECRET": "your_api_secret_here",
"CONVERTAPI_BASE_URI": "https://v2.convertapi.com"
}
}
}
}
Cline (VSCode Extension)
Add to your MCP settings in Cline:
{
"convertapi": {
"command": "dotnet",
"args": [
"run",
"--project",
"/path/to/CA.MCP.Local",
"--no-build"
],
"env": {
"CONVERTAPI_SECRET": "your_api_secret_here",
"CONVERTAPI_BASE_URI": "https://v2.convertapi.com"
}
}
}
Available Tools
Convert
Dynamically converts files between formats with OpenAPI-driven parameter validation.
Parameters:
fromFormat(required) - Source format (e.g., "docx", "xlsx", "jpg")toFormat(required) - Target format (e.g., "pdf", "png", "html")parameters(optional) - Conversion parameters as key-value pairsfileParameters(optional) - Files to convert with parameter namesoutputDirectory(optional) - Directory to save converted files (Local mode only)
Example Usage in AI Assistant:
Convert this Word document to PDF: ⢠From: docx ⢠To: pdf ⢠File: C:\Documents\report.docx ⢠Parameters: PageSize=A4, PageOrientation=portrait
Information
Provides information about ConvertAPI capabilities, supported formats, and usage guidelines.
Supported Conversions
ConvertAPI supports 200+ file formats across multiple categories:
- Documents: PDF, DOCX, DOC, RTF, TXT, ODT, PAGES
- Spreadsheets: XLSX, XLS, CSV, ODS, NUMBERS
- Presentations: PPTX, PPT, ODP, KEY
- Images: JPG, PNG, GIF, BMP, TIFF, SVG, WEBP, ICO
- Web: HTML, MHTML, MHT
- eBooks: EPUB, MOBI, AZW3
- Archives: ZIP, RAR, 7Z
- And many more...
Common Conversion Parameters
Depending on the conversion type, you can use parameters such as:
- PDF Options:
PageSize,PageOrientation,MarginTop,MarginBottom,MarginLeft,MarginRight - Image Options:
Quality,ImageWidth,ImageHeight,ScaleImage,ScaleProportions - General:
StoreFile,FileName,Timeout
The server automatically validates parameters against ConvertAPI's OpenAPI specification before conversion.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Resources
Acknowledgments
- Built with the ModelContextProtocol.NET library
- Powered by ConvertAPI
Support
For issues and questions:
- ConvertAPI support: support@convertapi.com
- GitHub Issues: Report an issue
Related Servers
LicenseSpring
Interact with LicenseSpring's License API and Management API.
Replicate
Run machine learning models on the Replicate platform using an API token.
Jimeng MCP Server
An MCP server that integrates with the Jimeng AI image generation service.
Alibaba Cloud Ops MCP Server
Integrate with Alibaba Cloud APIs to manage resources like ECS, Cloud Monitor, and OOS.
Remote MCP Server (Authless)
An example of a remote MCP server deployable on Cloudflare Workers without authentication.
Remote MCP Server (Authless)
A remote MCP server deployable on Cloudflare Workers without authentication.
ConnectWise API Gateway
A comprehensive interface for interacting with the ConnectWise Manage API.
Cloudflare
Deploy, configure & interrogate your resources on the Cloudflare developer platform (e.g. Workers/KV/R2/D1)
CData Sage Cloud Accounting
A read-only MCP server for Sage Cloud Accounting, powered by the CData JDBC Driver.
Remote MCP Server on Cloudflare
A remote MCP server running on Cloudflare Workers with OAuth login support.