Convert files without leaving your AI agent - Claude Code, Cursor, Gemini & more. Set up your agent

1 / 4

MCP Server Documentation

Convert files directly from your AI coding assistant using the Model Context Protocol (MCP). Connect Claude Code, Cursor, Gemini CLI, or any MCP-compatible tool to access 140+ file conversions.

Quick Start

Get your first conversion running in 30 seconds. Add the MCP server to Claude Code and convert a file:

1. Add the MCP server

bash
claude mcp add --transport http conversiontools https://mcp.conversiontools.io/mcp

2. Ask Claude to convert a file

Convert report.xlsx to PDF

Claude will handle authentication on the first run (a browser window opens for you to log in) and then perform the conversion automatically.

Installation Methods

Claude Code Plugin (recommended)

The plugin includes the MCP server connection and built-in AI instructions for optimal conversion results.

bash
claude plugin marketplace add conversiontools/agent-skills
claude plugin install conversiontools

See the Claude Code Plugin docs for more details.

Claude Code (manual MCP setup)

Add the MCP server directly with a single command:

bash
claude mcp add --transport http conversiontools https://mcp.conversiontools.io/mcp

Cursor

Add to your Cursor MCP configuration:

json
{
"mcpServers": {
"conversiontools": {
"url": "https://mcp.conversiontools.io/mcp"
}
}
}

Gemini CLI

bash
gemini extensions install https://github.com/conversiontools/gemini-extension

Other MCP-Compatible Tools

Any tool that supports the Model Context Protocol can connect to:

bash
https://mcp.conversiontools.io/mcp

Authentication

Choose the authentication method that works best for your setup:

Option A: OAuth (recommended)

Default

No configuration required. On first use, a browser window opens for you to log in to your Conversion Tools account. Your credentials are securely stored for future sessions and automatically refreshed when they expire.

  1. Add the server to your AI assistant
  2. Your assistant opens conversiontools.io in the browser
  3. Log in and authorize the connection
  4. You are signed in -- your assistant renews the sign-in when it expires

Option B: API Token

For CI/CD pipelines, server environments, or when browser login is not available. Get your API token from your profile page.

Set as environment variable:

bash
export CT_API_TOKEN=your_api_token_here

Or pass it in the MCP server URL:

bash
claude mcp add --transport http conversiontools https://mcp.conversiontools.io/mcp --header "Authorization: Bearer your_api_token_here"

Available Tools

The MCP server provides 23 tools for your AI assistant:

ToolToolsetDescription
convert_fileconvertConvert a file from one format to another. Supports 140+ conversion types. The input can be a public link, an uploaded file, or a small inline file.
request_upload_urlalwaysGet a one-time upload URL for a file of any size, then convert it by its file id.
get_download_urlconvertCheck a conversion that is still running, or get a fresh download link for a finished one.
list_convertersconvertList available file converters. Discover what conversions are supported.
find_converterconvertFind the best converter for converting between two specific formats.
get_converter_infoconvertGet detailed information about a specific converter, including supported options.
auth_statusalwaysCheck that the server is signed in, and as which account.
auth_loginalwaysLocal server only: sign in via OAuth in the browser.
auth_logoutalwaysLocal server only: sign out and delete the saved credentials.
studio_create_converterstudioBuild a custom converter: create it and attach the input file. Use when no standard converter fits.
studio_chatstudioDescribe the transformation in plain language and the converter is built for you.
studio_runstudioRun the built converter on the attached file.
studio_run_statusstudioPoll the run until it finishes.
studio_download_resultstudioDownload the result of a finished run.
studio_list_convertersstudioList your previously built converters so you can reuse one on a new file instead of rebuilding.
studio_get_converterstudioInspect a converter (what it does, what it is powered by, whether it is ready to run).
studio_attach_filestudioAttach a new file to an existing converter and re-run its built logic, unchanged.
parse_extractparseExtract named fields from a document (invoice, receipt, form, scan) as structured JSON. Returns an extraction id to poll.
parse_extraction_statusparsePoll an extraction until it is complete, then return the extracted data and a validation report.
parse_list_schemasparseList your saved extraction schemas: the reusable field definitions documents are extracted with.
parse_create_schemaparseCreate a reusable extraction schema from a list of field definitions.
parse_exportparseTurn a completed extraction into a CSV or XLSX spreadsheet.
parse_usageparseShow pages used, page limit, pages remaining, and the reset date for document extraction.

Toolsets

The tools come in three toolsets, so your AI assistant loads only what it needs and keeps its context free for your work. By default the server offers convert, the file conversion tools, which take under 3,000 tokens of your assistant's context. Turn on parse (data extraction from documents) and studio (custom converters) in the server URL:

bash
https://mcp.conversiontools.io/mcp?toolsets=convert,parse
https://mcp.conversiontools.io/mcp?toolsets=all

Tools marked always come with every toolset. The Claude Code plugin and the Gemini CLI extension turn on all three for you. Running the server locally? Set CT_TOOLSETS the same way.

Build a Custom Converter

When no standard converter fits -- a custom transformation, a specific output shape, or a multi-step pipeline -- describe what you want in plain language and have a custom converter built for you, run on your file, and returned. The converter is built from the file's structure, runs in a sandbox, and persists in your account so you can re-run it from the web, the API, or here.

  1. studio_create_converter -- create the converter and attach the input file.
  2. studio_chat -- describe the transformation (for example, "turn this CSV into JSON, one object per invoice with a nested line items array").
  3. studio_run -- run the converter on the file.
  4. studio_run_status -- poll until it finishes.
  5. studio_download_result -- download the result.

Building and chatting are free; only runs count against your conversion limits. These tools are in the studio toolset.

Reuse a converter you built before

Converters persist in your account, so one built earlier is re-runnable on a new file with no rebuild. Call studio_list_converters to find it, studio_attach_file to point it at the new file, then run it as above. Use studio_get_converter to confirm it is ready first.

Extract Data from Documents

The parse_ tools pull named fields out of documents -- invoices, receipts, purchase orders, statements, forms, scans -- and return them as structured JSON. You describe the fields you want once, and the same description keeps working across suppliers, form revisions, and scan quality.

  1. parse_create_schema -- define the fields once, reuse them on every document (or skip this and describe the fields inline).
  2. parse_extract -- submit the document. This returns an extraction id straight away, not the data.
  3. parse_extraction_status -- poll that id until the extraction is complete; the data comes back here.
  4. parse_export -- optionally turn the result into a CSV or XLSX spreadsheet.

These tools are in the parse toolset. Re-sending the same document with the same fields returns the stored result instantly and costs nothing. Full API reference at parse.conversiontools.io/docs.

Prompts and Resources

Assistants that support MCP prompts list ready-made starting points, usually as slash commands (in Claude Code, for example /mcp__conversiontools__convert). The format arguments complete from the converter catalog as you type.

  • convert -- convert a file from one format to another with the right converter and options.
  • extract_data -- pull named fields out of invoices, receipts, statements or scans.
  • build_converter -- have a custom converter built from a plain-language description.

The converter catalog is also available as resources (conversiontools://converters), for assistants that let you attach context.

Usage Examples

Once connected, just ask your AI assistant naturally. Here are common workflows:

Convert Excel to PDF

Convert report.xlsx to PDF

Your AI assistant will use convert_file to transform the spreadsheet into a PDF document.

Convert JSON to CSV

Transform data.json into a CSV file

Works with nested JSON arrays -- the converter flattens the structure into rows and columns.

Save a web page as PDF

Save https://example.com as a PDF

Converts straight from a link, nothing to download or upload first.

Extract text from an image (OCR)

Extract the text from receipt.jpg

Uses OCR to recognize and extract text from images and scanned documents.

Batch convert files

Convert all the PNG files in the screenshots/ folder to WebP

Your AI assistant will iterate through each file and convert them one by one.

Find available converters

What formats can I convert a PDF to?

Uses list_converters to show all available output formats for PDFs.

AI-powered data extraction

Extract the invoice data from invoice.pdf as a JSON file

AI-powered converters can extract structured data from complex documents like invoices, receipts, and reports.

Build a custom converter

Build a converter that turns this CSV into JSON, one object per invoice with a nested line items array

When no standard converter fits, AI Studio builds a custom converter from your description, runs it, and returns the result.

Supported Formats

Convert between 140+ file formats across 14 categories:

Documents

DOCX, DOC, PPTX, PPT, XLSX, XLS, Markdown, ODS, HTML, LaTeX

Data Formats

JSON, CSV, XML, YAML, Parquet, JSONL, BSON, Excel

Images

PNG, JPG, WebP, AVIF, HEIC, JXL, SVG, BMP, TIFF, GIF

PDF Processing

PDF to Word, Excel, CSV, Text, HTML, JPG, PNG, SVG, TIFF, EPUB

Audio

MP3, WAV, FLAC

Video

MP4, MOV, MKV, AVI

E-books

EPUB, MOBI, AZW, AZW3, FB2, FBZ, PDF

OCR

PNG, JPG, PDF to Text, searchable PDF

AI Text-to-Speech

Text, DOCX, PDF, Markdown to MP3

AI Speech-to-Text

MP3, WAV, FLAC to Text

AI-Powered

PDF, Images to JSON, CSV, Excel, Markdown

Subtitles

SRT, VTT, ASS, CSV, Excel, Text

Web

URL/HTML to PDF, JPG, PNG, CSV

Custom (AI Studio)

Build a converter from a plain-language description

View full converter list for detailed information about each converter and its options.

Pricing

MCP uses the same conversion limits as your Conversion Tools account:

  • Free tier: 100 conversions per month (max 10 per day)
  • Paid plans: Higher limits and priority processing

View pricing plans or API pricing for details.

Troubleshooting

Common issues and how to resolve them:

OAuth login window does not open

Make sure your browser is set as the default system browser. If running inside a container or remote environment without a display, use the API token method instead.

Authentication expired or token invalid

Your AI assistant is asked to sign in again automatically. If it is not, disconnect and reconnect the server. With an API token, set a fresh one from your profile page.

Large files

Give the file as a public link, or let your AI assistant upload it with request_upload_url and convert it by file id. Both work for any size your plan allows.

The conversion is still running

Long conversions (video, large documents) return a task id instead of waiting. Your AI assistant checks back with get_download_url and downloads the result when it is ready.

Conversion format not supported

Use list_converters or find_converter to check which formats are available. If you need a format that is not listed, contact us.

Conversion fails or returns an error

Check that the input file is valid and not corrupted. Some conversions have file size limits depending on your plan.

MCP server not connecting

Verify the server URL is https://mcp.conversiontools.io/mcp and that your network allows HTTPS connections.

Need Help?

Check our API Documentation for detailed information about converters and options.

Looking for the Claude Code Plugin? View plugin documentation for automatic setup with built-in conversion instructions.

Having issues? Contact us and we will help you get set up.

Ready to Get Started?

Add the MCP server to your AI assistant and start converting files without leaving your workflow.

bash
claude mcp add --transport http conversiontools https://mcp.conversiontools.io/mcp