API for developers and AI agents
Every tool on this site is also a plain HTTP endpoint.
Discover
- OpenAPI 3.1: https://backend.myfreetool.lk/openapi.json
- Tool catalog (JSON): https://backend.myfreetool.lk/api/v1/tools
- Site summary for language models: /llms.txt
Connect an AI agent (MCP)
myfreetool runs a Model Context Protocol server, so Claude and other MCP-capable agents can merge, compress and convert files, and answer Sri Lankan questions: income tax and APIT, electricity and water bills, NIC numbers, exchange rates, weather, fuel prices, inflation, credit ratings and tourist arrivals.
- Remote server (Streamable HTTP):
https://backend.myfreetool.lk/mcp - Calculators and data work without a key. To run file tools, add the header
Authorization: Bearer mft_…with a key from your account.
For Claude Code:
claude mcp add --transport http myfreetool https://backend.myfreetool.lk/mcp \
--header "Authorization: Bearer mft_your_key"Tools: myfreetool_list_tools, myfreetool_run_tool, myfreetool_income_tax, myfreetool_electricity_bill, myfreetool_water_bill, myfreetool_solar, myfreetool_decode_nic, myfreetool_exchange_rates, myfreetool_weather, myfreetool_air_quality and myfreetool_sri_lanka_data. File results are download links that expire after an hour.
Call a tool
Send files as multipart form data in the field named files. Options are ordinary form fields.
curl -F [email protected] -F [email protected] \
https://backend.myfreetool.lk/api/v1/tools/merge-pdf
{
"id": "q3V…",
"file": { "name": "merged.pdf", "size": 48211,
"url": "https://backend.myfreetool.lk/api/v1/jobs/q3V…/download" },
"expiresAt": "2026-11-17T10:42:00.000Z"
}Download the result from file.url within an hour. Errors come back as JSON with a human-readable message.
Live endpoints
POST /api/v1/tools/merge-pdf– Combine several PDFs into one, in the order you choose.POST /api/v1/tools/split-pdf– Break a PDF into ranges or single pages.POST /api/v1/tools/remove-pages– Delete the pages you don't need.POST /api/v1/tools/extract-pages– Pull selected pages into a new PDF.POST /api/v1/tools/organize-pdf– Reorder, rotate or drop pages in one go.POST /api/v1/tools/compress-pdf– Shrink file size while keeping it readable.POST /api/v1/tools/repair-pdf– Recover a damaged or won't-open PDF.POST /api/v1/tools/ocr-pdf– Make scanned PDFs searchable and copyable.POST /api/v1/tools/jpg-to-pdf– Turn photos and scans into one PDF.POST /api/v1/tools/word-to-pdf– Convert DOC and DOCX to PDF, layout intact.POST /api/v1/tools/powerpoint-to-pdf– Convert slides to a shareable PDF.POST /api/v1/tools/excel-to-pdf– Convert spreadsheets to tidy PDF pages.POST /api/v1/tools/html-to-pdf– Save a web page as a PDF.POST /api/v1/tools/pdf-to-jpg– Turn each page into a high-quality image.POST /api/v1/tools/pdf-to-word– Turn a PDF into an editable DOCX.POST /api/v1/tools/pdf-to-powerpoint– Turn PDF pages into PPTX slides.POST /api/v1/tools/pdf-to-excel– Pull tables out of a PDF into XLSX.POST /api/v1/tools/pdf-to-pdfa– Make an archive-ready PDF/A file.POST /api/v1/tools/pdf-to-text– Extract plain text from a PDF.POST /api/v1/tools/pdf-to-markdown– Convert a PDF into clean Markdown for AI and docs.POST /api/v1/tools/rotate-pdf– Turn pages the right way up.POST /api/v1/tools/add-page-numbers– Number pages with your choice of position and style.POST /api/v1/tools/watermark-pdf– Stamp text across your PDF pages.POST /api/v1/tools/crop-pdf– Trim margins from every page.POST /api/v1/tools/unlock-pdf– Remove the password from a PDF you can open.POST /api/v1/tools/protect-pdf– Lock a PDF with a password.POST /api/v1/tools/redact-pdf– Black out words and numbers for good.POST /api/v1/tools/compare-pdf– See what changed between two versions.POST /api/v1/tools/compress-image– Make photos smaller without visible loss.POST /api/v1/tools/resize-image– Set exact pixels or a percentage.POST /api/v1/tools/convert-image– Switch between JPG, PNG, WebP and more.POST /api/v1/tools/crop-image– Crop to any aspect ratio or exact size.POST /api/v1/tools/rotate-image– Rotate or flip photos.POST /api/v1/tools/watermark-image– Add your name or brand to photos.POST /api/v1/tools/image-metadata-cleaner– Strip GPS location and camera details.POST /api/v1/tools/batch-image-processor– Resize and convert many photos at once.POST /api/v1/tools/social-media-image– Fit one photo to every social format.POST /api/v1/tools/markdown-to-html– Render Markdown as a clean, styled web page.POST /api/v1/tools/html-to-markdown– Turn a saved web page into tidy Markdown.POST /api/v1/tools/markdown-to-word– Make an editable Word document from Markdown.POST /api/v1/tools/word-to-markdown– Turn a Word document into Markdown for docs and AI.POST /api/v1/tools/html-to-word– Save an HTML page as an editable Word document.POST /api/v1/tools/word-to-html– Publish a Word document as clean HTML.POST /api/v1/tools/markdown-to-pdf– Typeset Markdown as a neat PDF.POST /api/v1/tools/invoice-generator– A professional invoice PDF in minutes.POST /api/v1/tools/quotation-generator– Send a polished quotation in minutes.POST /api/v1/tools/compress-video– Shrink videos for WhatsApp and email.POST /api/v1/tools/convert-video– MP4, MOV, WebM, MKV and more.POST /api/v1/tools/trim-video– Cut the start and end of a clip.POST /api/v1/tools/crop-video– Crop to vertical, square or widescreen.POST /api/v1/tools/rotate-video– Fix sideways phone videos.POST /api/v1/tools/mute-video– Remove the soundtrack.POST /api/v1/tools/video-speed– Speed up or slow down a clip.POST /api/v1/tools/video-to-gif– Turn a clip into a looping GIF.POST /api/v1/tools/gif-to-mp4– Make heavy GIFs light and shareable.POST /api/v1/tools/extract-audio– Save the soundtrack as MP3.POST /api/v1/tools/add-audio-to-video– Put music or narration on a clip.POST /api/v1/tools/video-thumbnail– Grab a frame as an image.POST /api/v1/tools/video-splitter– Cut a long video into equal parts for Status.POST /api/v1/tools/video-metadata-remover– Strip location and device details.POST /api/v1/tools/trim-audio– Cut a song or recording.POST /api/v1/tools/convert-audio– MP3, WAV, M4A, OGG, FLAC.POST /api/v1/tools/merge-audio– Join recordings into one file.POST /api/v1/tools/audio-volume– Make quiet recordings louder.POST /api/v1/tools/audio-speed– Speed up lectures and voice notes.POST /api/v1/tools/audio-splitter– Cut long recordings into parts.POST /api/v1/tools/audio-to-video– Add a cover image to share audio as video.POST /api/v1/tools/audio-metadata-cleaner– Clear tags and hidden details.POST /api/v1/tools/background-remover– Cut out people and products in one click.POST /api/v1/tools/image-upscaler– Enlarge small photos sharply.POST /api/v1/tools/face-blur– Hide faces in photos automatically.POST /api/v1/tools/passport-photo– Passport and visa photos, plus a print sheet.POST /api/v1/tools/image-caption– Describe images for SEO and accessibility.POST /api/v1/tools/ocr-image– Read English, Sinhala and Tamil from photos.POST /api/v1/tools/ai-summarizer– Summarise long text in seconds.POST /api/v1/tools/ai-pdf-summarizer– Get the key points of a long PDF.POST /api/v1/tools/translate-pdf– Translate a PDF into Sinhala, Tamil or English.POST /api/v1/tools/subtitle-generator– Auto-caption videos as SRT.POST /api/v1/tools/video-to-text– Transcribe recordings and meetings.
Limits
Anonymous calls share the visitor allowance. Create an API key in your account and send it as Authorization: Bearer mft_… to use your own plan: 30 tasks a day on Free, unlimited on Pro.