# ConvertFileFast > Fast file-conversion service for documents, spreadsheets, presentations, images, PDFs, and data. Convert 50+ format pairs (e.g. DOCX→PDF, PDF→CSV, PDF→JPG, HTML→PDF, URL→PDF), plus PDF tools (merge, split, compress, rotate, protect, unlock) and image tools (resize, compress). Two surfaces: a **native MCP server for AI agents** (recommended for LLM/agent integrations) and a REST API for classical HTTP integrations. Conversion is server-side: send an uploaded file OR a public URL and receive the converted file back. ## For AI agents — MCP (recommended) ConvertFileFast is designed to be called by AI agents through the Model Context Protocol. Use the MCP surface first; the REST API below is the same feature set exposed for non-agent integrations. - **Remote MCP endpoint (Streamable HTTP)**: `https://mcp.convertfilefast.com/mcp` - **Auth**: send `X-API-Key: cff_...` or `Authorization: Bearer cff_...` per request. Keys start with `cff_`. Create one at https://www.convertfilefast.com/signup - **No human available?** An autonomous agent can `POST https://www.convertfilefast.com/api/agent/provision` (no auth) to get a `cff_` key with 0 credits, then `POST https://www.convertfilefast.com/api/agent/credits` with `X-API-Key` and `{"pack_id": "pack_1000"}` to get a checkout link for prepaid credits. - **Local install**: `npx -y convertfilefast-mcp` (npm) or `uvx convertfilefast-mcp` (PyPI), passing `CONVERTFILEFAST_API_KEY=cff_...` - **Landing page**: https://www.convertfilefast.com/en/use-case/mcp-server - **Source**: https://github.com/MLTCorp/conversor-pdf/tree/main/mcp Add the remote MCP server to any MCP-compatible client (Claude Desktop, Cursor, Codex, Cline, …): ```json { "mcpServers": { "convertfilefast": { "url": "https://mcp.convertfilefast.com/mcp", "headers": { "X-API-Key": "cff_your_key" } } } } ``` ### MCP tools available to agents - `list_supported_conversions` — enumerate every `{from}-to-{to}` pair currently supported. - `convert_file` — one call, 50+ conversions. Args: `{ target_format, source_url | source_file }`. - `images_to_pdf` — combine multiple images into a single PDF. - `merge_pdfs` — combine multiple PDFs into one. - `split_pdf` — split a PDF into per-page or ranged files. - `compress_pdf` — reduce file size while preserving text/vectors. - `rotate_pdf` — rotate specific pages. - `protect_pdf` — add password protection. - `unlock_pdf` — remove password protection (requires the current password). - `extract_pdf_text` — extract text and tables from a PDF. - `resize_image` — resize an image to target dimensions. - `compress_image` — reduce image size / quality. - `get_billing_status` — check current plan, subscription status, and remaining prepaid credits. - `create_subscription_checkout` — create a Stripe-hosted checkout link for a Pro or Scale subscription. - `create_credit_pack_checkout` — create a Stripe-hosted checkout link for a one-time prepaid credit pack (1,000 or 10,000 conversions). - `create_billing_portal_link` — create a Stripe Billing Portal link to manage payment method and subscription. - `report_feedback` — report a bug, missing conversion, or quality issue to the ConvertFileFast team. Remote MCP file results return short-lived download URLs from `https://mcp.convertfilefast.com/download/...` — no binary payloads in agent context windows. Local stdio results return local file paths. Billing tools return Stripe-hosted `checkout_url` / `portal_url` links, never card data — hand the URL to the human account owner to complete payment; an agent cannot complete checkout on its own. ### Typical agent use cases - Converting user-uploaded documents to a canonical format (e.g. DOCX/RTF/ODT → PDF for archival). - Extracting structured data from PDFs into CSV/XLSX/JSON for downstream reasoning. - Rendering webpages (URL→PDF) or HTML strings into PDF for report generation. - Preparing images for a downstream vision step (resize/compress) or bundling scans into a PDF. ## REST API — for direct HTTP integrations Use this surface if your integration is not an MCP-capable agent (e.g. a webhook, a serverless function, an n8n/Zapier flow). - Base URL: `https://api.convertfilefast.com` - Auth: send your API key as header `X-API-Key: ` or `Authorization: Bearer `. Keys start with `cff_`. - Method: every conversion endpoint is `POST`. - Input (`multipart/form-data`): either - `file` — the uploaded source file, or - `url` — a publicly reachable URL to the source file (preferred for agents; no binary handling). - Output: the converted file is streamed back as the response body (binary) with a `Content-Disposition` filename. Errors return JSON. - Limits: responses include `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-Monthly-Limit`, `X-Monthly-Used`. A `429` means rate or monthly limit reached. ## Quick start ```bash # Convert a Word file (by URL) to PDF curl -X POST "https://api.convertfilefast.com/v2/convert/docx-to-pdf" \ -H "X-API-Key: cff_your_key" \ -F "url=https://example.com/document.docx" \ -o document.pdf ``` ```bash # Extract tables from a PDF to CSV (by upload) curl -X POST "https://api.convertfilefast.com/v2/convert/pdf-to-csv" \ -H "X-API-Key: cff_your_key" \ -F "file=@report.pdf" \ -o report.csv ``` ## Endpoints Pattern: `POST https://api.convertfilefast.com/v2/convert/{from}-to-{to}` (unless noted). ### Documents → PDF - `/v2/convert/docx-to-pdf` - `/v2/convert/doc-to-pdf` - `/v2/convert/xlsx-to-pdf` - `/v2/convert/pptx-to-pdf` - `/v2/convert/ppt-to-pdf` - `/v2/convert/rtf-to-pdf` - `/v2/convert/odt-to-pdf` - `/v2/convert/txt-to-pdf` - `/v2/convert/csv-to-pdf` ### Documents → text - `/v2/convert/docx-to-txt` — plain UTF-8 text, paragraphs and tables in document order ### Web / markup → PDF - `/v2/convert/html-to-pdf` - `/v2/convert/markdown-to-pdf` - `/v2/convert/url-to-pdf` — pass a webpage `url`, get a PDF of the rendered page ### PDF → other formats - `/v2/convert/pdf-to-docx` - `/v2/convert/pdf-to-txt` - `/v2/convert/pdf-to-csv` — extracts tables - `/v2/convert/pdf-to-xlsx` — extracts tables - `/v2/convert/pdf-to-jpg` - `/v2/convert/pdf-to-png` ### Images → PDF - `/v2/convert/jpg-to-pdf` - `/v2/convert/png-to-pdf` - `/v2/convert/heic-to-pdf` - `/v2/convert/webp-to-pdf` - `/v2/convert/avif-to-pdf` - `/v2/convert/svg-to-pdf` - `/v2/convert/bmp-to-pdf` - `/v2/convert/tiff-to-pdf` - `/v2/convert/images-to-pdf` — combine multiple images into one PDF ### Image format → image format - `/v2/convert/jpg-to-png` - `/v2/convert/png-to-jpg` - `/v2/convert/jpg-to-webp` - `/v2/convert/png-to-webp` - `/v2/convert/heic-to-jpg` - `/v2/convert/heic-to-png` - `/v2/convert/webp-to-jpg` - `/v2/convert/webp-to-png` - `/v2/convert/avif-to-jpg` - `/v2/convert/avif-to-png` - `/v2/convert/svg-to-png` - `/v2/convert/svg-to-jpg` - `/v2/convert/bmp-to-jpg` - `/v2/convert/bmp-to-png` - `/v2/convert/tiff-to-jpg` - `/v2/convert/tiff-to-png` ### Data - `/v2/convert/csv-to-json` - `/v2/convert/json-to-csv` - `/v2/convert/csv-to-xlsx` - `/v2/convert/xlsx-to-csv` ### PDF tools (`POST /v2/pdf/{op}`) - `/v2/pdf/merge` — combine multiple PDFs into one - `/v2/pdf/split` — split pages into separate files - `/v2/pdf/compress` — reduce file size - `/v2/pdf/rotate` — rotate pages - `/v2/pdf/protect` — add password protection - `/v2/pdf/unlock` — remove password protection - `/v2/pdf/extract-text` — extract text and tables ### Image tools (`POST /v2/image/{op}`) - `/v2/image/resize` - `/v2/image/compress` ### Billing & feedback - `/v2/billing/status` — `GET`, current plan, subscription status, and remaining prepaid credits. - `/v2/billing/checkout/subscription` — `POST`, Stripe-hosted checkout link for a Pro or Scale subscription. - `/v2/billing/checkout/credits` — `POST`, Stripe-hosted checkout link for a one-time prepaid credit pack. - `/v2/billing/portal` — `POST`, Stripe Billing Portal link for payment method and subscription management. - `/v2/feedback` — `POST`, report a bug, missing conversion, or quality issue. ### Legacy v1 - The `/v2/*` endpoints above are the current API. `POST /v1/convert` is a legacy generic "any document → PDF" endpoint kept for backward compatibility. ## Reference - Full expanded reference for LLMs: https://www.convertfilefast.com/llms-full.txt - OpenAPI schema: https://api.convertfilefast.com/openapi.json - Interactive API docs (Swagger): https://api.convertfilefast.com/v1/docs - MCP server card (machine-readable capability manifest): https://www.convertfilefast.com/.well-known/mcp/server-card.json - Agent Skills index (all 17 MCP tools with params, machine-readable): https://www.convertfilefast.com/.well-known/agent-skills/index.json - API Catalog (RFC 9727 linkset, REST + MCP): https://www.convertfilefast.com/.well-known/api-catalog - AI plugin manifest: https://www.convertfilefast.com/.well-known/ai-plugin.json - Product & docs: https://www.convertfilefast.com ## Pricing - Free: 10 conversions/month. - Prepaid credit packs (pay per use): 1,000 conversions for $4, 10,000 for $30. - Subscriptions: Pro $9/month (5,000 conversions), Scale $59/month (50,000 conversions). - Details: https://www.convertfilefast.com