conversiontools
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseConversionTools File Conversion
ConversionTools 文件转换
Convert files between 140+ formats directly from your agent using the ConversionTools MCP server.
借助ConversionTools MCP服务器,可直接通过你的Agent在140余种格式之间转换文件。
Setup
配置步骤
If the ConversionTools MCP server is already connected, skip to Available Tools.
If the MCP server is not connected, add it:
bash
claude mcp add --transport http conversiontools https://mcp.conversiontools.io/mcpRestart Claude Code after adding the server. MCP server changes require a restart to take effect.
On first use, you will be prompted to authenticate via OAuth in your browser. Free accounts get 100 conversions per month (10 per day). Paid plans available at conversiontools.io/pricing.
如果ConversionTools MCP服务器已连接,请跳至可用工具部分。
若未连接MCP服务器,请添加:
bash
claude mcp add --transport http conversiontools https://mcp.conversiontools.io/mcp添加服务器后重启Claude Code。MCP服务器的更改需重启才能生效。
首次使用时,系统会提示你在浏览器中通过OAuth进行身份验证。免费账户每月可进行100次转换(每天10次)。付费方案详情请访问conversiontools.io/pricing。
Available Tools
可用工具
All tools use the MCP server prefix: .
conversiontoolsconversiontools:tool_name所有工具均使用作为MCP服务器前缀:。
conversiontoolsconversiontools:tool_nameconversiontools:convert_file
— Convert a file
conversiontools:convert_fileconversiontools:convert_file
— 文件转换
conversiontools:convert_fileThe primary tool. Provide input and output paths — the converter is auto-detected from file extensions.
Parameters:
- (required): Path to the input file
input_path - (required): Path for the converted output file
output_path - (optional): Base64-encoded file content for files up to 5MB
file_content - (optional): File ID from a previous
file_idcallconversiontools:request_upload_url - (optional): Explicit converter type like
converter. Auto-detected if omitted.convert.pdf_to_excel - (optional): Converter-specific options
options
核心工具。提供输入和输出路径,转换器会根据文件扩展名自动检测。
参数:
- (必填):输入文件的路径
input_path - (必填):转换后输出文件的路径
output_path - (可选):最大5MB文件的Base64编码内容
file_content - (可选):之前调用
file_id返回的文件IDconversiontools:request_upload_url - (可选):明确的转换器类型,如
converter。若省略则自动检测。convert.pdf_to_excel - (可选):转换器专属配置项
options
conversiontools:request_upload_url
— Upload large files
conversiontools:request_upload_urlconversiontools:request_upload_url
— 大文件上传
conversiontools:request_upload_urlGet a signed URL for uploading files larger than 5MB.
Parameters:
- (required): Name of the file to upload
filename
Flow for large files:
- Call with the filename
conversiontools:request_upload_url - Upload file to the returned URL using PUT
- Call with the returned
conversiontools:convert_filefile_id
获取用于上传大于5MB文件的签名URL。
参数:
- (必填):待上传文件的名称
filename
大文件处理流程:
- 调用并传入文件名
conversiontools:request_upload_url - 使用PUT方法将文件上传至返回的URL
- 调用并传入返回的
conversiontools:convert_filefile_id
conversiontools:list_converters
— Browse available converters
conversiontools:list_convertersconversiontools:list_converters
— 浏览可用转换器
conversiontools:list_convertersUse this to discover what conversions are currently supported. New converters are added regularly — always check here for the latest.
Parameters:
- (optional):
category,documents,data,images,pdf,audio,video,ebook,ocr,ai,subtitlesweb - (optional): Filter by input format, e.g.
input_formatpdf - (optional): Filter by output format, e.g.
output_formatcsv
用于查看当前支持的转换类型。转换器会定期更新,请始终在此查看最新支持的类型。
参数:
- (可选):
category、documents、data、images、pdf、audio、video、ebook、ocr、ai、subtitlesweb - (可选):按输入格式筛选,例如
input_formatpdf - (可选):按输出格式筛选,例如
output_formatcsv
conversiontools:find_converter
— Find the right converter
conversiontools:find_converterconversiontools:find_converter
— 查找合适的转换器
conversiontools:find_converterParameters:
- (required): e.g.
input_formatpdf - (required): e.g.
output_formatexcel
参数:
- (必填):例如
input_formatpdf - (必填):例如
output_formatexcel
conversiontools:get_converter_info
— Get converter details
conversiontools:get_converter_infoconversiontools:get_converter_info
— 获取转换器详情
conversiontools:get_converter_infoParameters:
- (required): Converter type, e.g.
converterconvert.pdf_to_excel
参数:
- (必填):转换器类型,例如
converterconvert.pdf_to_excel
conversiontools:auth_status
— Check login status
conversiontools:auth_statusconversiontools:auth_status
— 检查登录状态
conversiontools:auth_statusconversiontools:auth_login
— Trigger OAuth login
conversiontools:auth_loginconversiontools:auth_login
— 触发OAuth登录
conversiontools:auth_loginconversiontools:auth_logout
— Clear credentials
conversiontools:auth_logoutconversiontools:auth_logout
— 清除凭证
conversiontools:auth_logoutHow to Convert Files
文件转换方法
You must provide the file content — the server cannot read local paths. Choose the method based on file size. The response includes a — download the result with curl.
download_url你必须提供文件内容——服务器无法读取本地路径。根据文件大小选择合适的方法。响应结果包含——可使用curl下载转换结果。
download_urlSmall files (up to 5MB)
小文件(最大5MB)
- Base64-encode the file
- Call with
conversiontools:convert_file,file_content, andinput_pathoutput_path - Download the result from the returned
download_url
bash
undefined- 对文件进行Base64编码
- 调用并传入
conversiontools:convert_file、file_content和input_pathoutput_path - 从返回的下载转换结果
download_url
bash
undefined1. Encode
1. 编码
base64_content=$(base64 -w 0 data.json)
undefinedbase64_content=$(base64 -w 0 data.json)
undefined2. Convert
2. 转换
conversiontools:convert_file({
input_path: "data.json",
output_path: "data.csv",
file_content: "<base64_content>"
})
```bashconversiontools:convert_file({
input_path: "data.json",
output_path: "data.csv",
file_content: "<base64_content>"
})
```bash3. Download
3. 下载
curl -sL "<download_url>" -o data.csv
undefinedcurl -sL "<download_url>" -o data.csv
undefinedLarge files (over 5MB)
大文件(超过5MB)
- Call with the filename to get a signed upload URL and
conversiontools:request_upload_urlfile_id - Upload the file to the returned URL with
curl -X PUT - Call with the
conversiontools:convert_fileinstead offile_idfile_content - Download the result from the returned
download_url
- 调用并传入文件名,获取签名上传URL和
conversiontools:request_upload_urlfile_id - 使用将文件上传至返回的URL
curl -X PUT - 调用并传入
conversiontools:convert_file而非file_idfile_content - 从返回的下载转换结果
download_url
Supported Categories
支持的分类
The following categories are available. Use with a , , or filter to discover specific converters — new formats are added regularly.
conversiontools:list_converterscategoryinput_formatoutput_format- Documents — Word (DOCX, DOC), PowerPoint (PPTX, PPT), Excel (XLSX, XLS), Markdown, ODS, HTML, Text, LaTeX
- PDF — Convert to/from Word, Excel, CSV, Text, HTML, Images (JPG, PNG, SVG, TIFF), EPUB
- Data Formats — JSON, CSV, XML, YAML, Parquet, JSONL, BSON, Excel — with validators and formatters
- Images — PNG, JPG, WebP, AVIF, HEIC, JXL (JPEG XL), SVG, BMP, TIFF, GIF, PGM, PPM — plus EXIF removal
- Audio — MP3, WAV, FLAC — plus AI text-to-speech (Text/DOCX/PDF/Markdown to MP3) and AI speech-to-text transcription (MP3/WAV/FLAC to Text)
- Video — MP4, MOV, MKV, AVI — plus audio extraction (MP4 to MP3)
- E-books — EPUB, MOBI, AZW, AZW3, FB2, FBZ, PDF
- OCR — Extract text from scanned PDFs and images (JPG, PNG) — output as Text or searchable PDF
- AI-Powered — Smart extraction from PDFs and images to JSON, CSV, Excel, Markdown — plus AI subtitle translation, text-to-speech (TTS), and speech-to-text (STT)
- Subtitles — SRT, VTT, ASS, CSV, Excel, Text — bidirectional conversions
- Web — Website screenshots (URL to PDF, JPG, PNG), HTML to images/Word, HTML table extraction
以下是支持的分类。使用并结合、或筛选器可查看具体转换器——新格式会定期添加。
conversiontools:list_converterscategoryinput_formatoutput_format- 文档——Word(DOCX、DOC)、PowerPoint(PPTX、PPT)、Excel(XLSX、XLS)、Markdown、ODS、HTML、文本、LaTeX
- PDF——与Word、Excel、CSV、文本、HTML、图片(JPG、PNG、SVG、TIFF)、EPUB之间的互转
- 数据格式——JSON、CSV、XML、YAML、Parquet、JSONL、BSON、Excel——包含验证器和格式化工具
- 图片——PNG、JPG、WebP、AVIF、HEIC、JXL(JPEG XL)、SVG、BMP、TIFF、GIF、PGM、PPM——支持移除EXIF信息
- 音频——MP3、WAV、FLAC——支持AI文本转语音(文本/DOCX/PDF/Markdown转MP3)和AI语音转文本转录(MP3/WAV/FLAC转文本)
- 视频——MP4、MOV、MKV、AVI——支持提取音频(MP4转MP3)
- 电子书——EPUB、MOBI、AZW、AZW3、FB2、FBZ、PDF
- OCR——从扫描版PDF和图片(JPG、PNG)中提取文本——输出为文本或可搜索PDF
- AI驱动——从PDF和图片中智能提取结构化数据并转换为JSON、CSV、Excel、Markdown——支持AI字幕翻译、文本转语音(TTS)和语音转文本(STT)
- 字幕——SRT、VTT、ASS、CSV、Excel、文本——双向转换
- 网页——网站截图(URL转PDF、JPG、PNG)、HTML转图片/Word、HTML表格提取
Discovering Converters
查找转换器
When unsure if a specific conversion is supported, use the discovery tools rather than guessing:
undefined不确定是否支持特定转换时,请使用查找工具而非猜测:
undefinedCheck what PDF can convert to
查看PDF可转换为哪些格式
conversiontools:list_converters({ input_format: "pdf" })
conversiontools:list_converters({ input_format: "pdf" })
Check what can produce Parquet
查看哪些格式可转换为Parquet
conversiontools:list_converters({ output_format: "parquet" })
conversiontools:list_converters({ output_format: "parquet" })
Browse all data converters
浏览所有数据转换器
conversiontools:list_converters({ category: "data" })
conversiontools:list_converters({ category: "data" })
Find the right converter for a specific pair
查找特定格式对的转换器
conversiontools:find_converter({ input_format: "xlsx", output_format: "parquet" })
conversiontools:find_converter({ input_format: "xlsx", output_format: "parquet" })
Get full details and options for a converter
获取转换器的完整详情和配置项
conversiontools:get_converter_info({ converter: "convert.csv_to_parquet" })
undefinedconversiontools:get_converter_info({ converter: "convert.csv_to_parquet" })
undefinedTips
小贴士
- Auto-detection works well — just provide file paths with correct extensions and skip the parameter
converter - Use with filters when unsure what's available
conversiontools:list_converters - AI converters (, etc.) use AI to intelligently extract structured data from complex documents — use these when standard converters produce poor results
convert.ai_pdf_to_json - OCR converters are for scanned documents and images containing text — use when the source is an image or non-searchable PDF
- For batch conversions, upload a ZIP, 7z, XZ, or RAR archive containing all files — they will all be converted and returned as a file. Alternatively, call
.result.ziponce per file.conversiontools:convert_file
- 自动检测功能表现良好——只需提供带有正确扩展名的文件路径,无需指定参数
converter - 不确定支持哪些转换时,使用带筛选器的
conversiontools:list_converters - AI转换器(如等)使用AI从复杂文档中智能提取结构化数据——当标准转换器效果不佳时使用这些工具
convert.ai_pdf_to_json - OCR转换器适用于扫描文档和含文本的图片——当源文件是图片或不可搜索的PDF时使用
- 批量转换时,上传包含所有文件的ZIP、7z、XZ或RAR压缩包——所有文件都会被转换并以文件返回。或者,对每个文件单独调用
.result.zip。conversiontools:convert_file