MCP server
FormatJet’s MCP server gives AI assistants and agents FormatJet’s conversions as tools: they can convert a file, turn a document into Markdown to read it, and start and check jobs. It’s at https://mcp.formatjet.com/mcp and speaks the Model Context Protocol over Streamable HTTP.
It works with your API key, with the same credits, limits and test mode as the API: a test key (fj_test_…) converts for free. Every request sends the key as Authorization: Bearer ….
Add it to your assistant
Section titled “Add it to your assistant”Make a key in the dashboard as the quickstart shows, then add the server.
Claude Code:
claude mcp add --transport http formatjet https://mcp.formatjet.com/mcp --header "Authorization: Bearer $FORMATJET_API_KEY"Cursor, in ~/.cursor/mcp.json or a project’s .cursor/mcp.json:
{ "mcpServers": { "formatjet": { "url": "https://mcp.formatjet.com/mcp", "headers": { "Authorization": "Bearer fj_test_…" } } }}Other clients that connect to a Streamable HTTP server with a header of your own work the same way. Clients that connect only through an OAuth sign-in can’t use it yet. Keep the key out of shared files: anyone who has it spends your credits.
The server checks the key when the assistant connects, and the API checks it again on every tool call. A revoked or mistyped key fails the connection with unauthorized and a message saying so: Claude Code shows the server as failed in /mcp, with that message. A key revoked later fails the next tool call the same way. To change the key in Claude Code, remove the server (claude mcp remove formatjet) and add it again.
| Tool | What it does |
|---|---|
list_formats | List the 161 conversions FormatJet runs: each one's slug (such as word-to-pdf, pdf-to-word, heic-to-jpg, excel-to-csv, merge-pdf), the formats it takes and makes, its options and what it costs in credits. Filter with from or to, a format ID such as docx, pdf or jpg. Add-ons (remove-background, audio-to-text, video-to-text, extract-invoice) run on Pro, the API plans and Enterprise; test keys can try them on any plan. |
convert_file | Convert a file and get the result. Send it as a public http(s) url, or as base64 (up to 10 MB) with its filename. Name the conversion by its slug from list_formats (such as word-to-pdf, pdf-to-word, heic-to-jpg, excel-to-csv), or give only the format to make in to (avif, bmp, csv, docx, epub, gif, ico, jpg, json, m4a, md, mkv, mobi, mov, mp3, mp4, pdf, png, pptx, srt, svg, tiff, txt, vtt, wav, webm, webp, xlsx, xml, yaml). Text results (Markdown, CSV, JSON, XML, YAML, plain text, HTML, subtitles) come back inline when they have at most 50,000 characters; other files, and longer text, come back as download links that work until their expires_at. Waits up to 50 seconds; a job that takes longer comes back with its ID for get_job. For a local file larger than 10 MB, use create_upload, then create_job. Add-ons (remove-background, audio-to-text, video-to-text, extract-invoice) run on Pro, the API plans and Enterprise; test keys can try them on any plan. |
create_upload | Get a URL to upload a local file too large to send as base64 (up to your plan's file size). PUT the file's bytes to the URL within 15 minutes, with exactly the headers returned (a curl command is included), then call create_job with the upload_id. An upload no job uses is deleted after 60 minutes. |
create_job | Start a conversion and answer at once with the job's ID; get_job waits for it and returns its results. The file is an upload_id from create_upload, a public url, or base64 (up to 10 MB) with its filename; upload_ids takes 2 to 20 uploads to join in order (merge-pdf, image-to-pdf). Name the conversion or the format to make, as for convert_file; or steps, up to 5, each converting what the step before made (word-to-pdf, then pdf-to-markdown), the job costing every step's credits; or a recipe's ID (rcp_…): saved steps and an output name. Optional: options, output_filename, ttl (seconds the result is kept), metadata, and a webhook URL told when the job ends. |
get_job | Get a job's status and, once it has ended, its results. Text results (Markdown, CSV, JSON, XML, YAML, plain text, HTML, subtitles) come back inline when they have at most 50,000 characters; other files, and longer text, come back as download links that work until their expires_at. wait_seconds (up to 50) waits for the job to end first. |
extract_markdown | Turn a document into Markdown and return it: DOCX, HTML, ODP, ODS, ODT, PDF, PPTX, XLS, XLSX. A PDF keeps its headings, lists, tables, links, code, equations (as LaTeX), bold, italic and underline, and marks where pictures and charts were; a scanned PDF with no text fails at no cost. The file is a public url, base64 (up to 10 MB) with its filename, or an upload_id from create_upload. The Markdown comes back inline up to 50,000 characters, as a link beyond that. Waits up to 50 seconds. |
delete_file | Delete a job's files (its input and its outputs) from storage now, before their retention ends, and return the signed deletion receipt. Download links stop working. |
Results
Section titled “Results”Text the conversions make (Markdown, CSV, JSON, XML, YAML, plain text and HTML) comes back in the tool’s answer when the whole file has at most 50,000 characters, so the assistant can read it straight away. Other files, and longer text, come back as download links that need no key and work until their expires_at.
convert_file and extract_markdown wait up to 50 seconds for the job. A job that takes longer carries on: get_job with its job_id waits for it and returns its results. A conversion that fails comes back as a tool error with its error code, and costs nothing.
Files on the assistant’s computer
Section titled “Files on the assistant’s computer”convert_file takes a file at a public URL, or the file itself as base64 up to 10 MB. For a larger file on the assistant’s computer, create_upload returns a URL to PUT the file to, with a curl command an assistant that runs commands can use; then create_job and get_job convert it.
Credits and files
Section titled “Credits and files”Each conversion costs what it costs through the API, from the same credits; Limits and retries has the numbers. Jobs made through the server show on the dashboard’s Jobs page as made through MCP. Their files are deleted on time like any job’s, and delete_file deletes them sooner, with a signed receipt.