mcpField
F
Free the Tools

Free the Tools

Local
freethetools.comProductivity1Updated 2w ago

About Free the Tools

Free the Tools is a local MCP server, CLI, and JavaScript library for AI assistants and scripts handling everyday files. It covers PDF, image metadata, text, data, and utility tasks while keeping file processing on the computer.

Key features

  1. 01PDF merge, split, rotate, and compression
  2. 02Photo metadata removal
  3. 03CSV, JSON, and text conversions
  4. 04Hashing and developer utilities
  5. 05Local processing with guarded file access

Use cases

  1. 01Merge or compress PDF documents
  2. 02Remove location data from photos
  3. 03Convert CSV and JSON files
  4. 04Run file utilities from an assistant or script

MCP support

It runs as a local MCP server over stdio and exposes file-processing and utility tools to MCP clients. The same tools are also available through its CLI and JavaScript library.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"sapience-design-freethetools": {
"command": "npx",
"args": [
"-y",
"freethetools"
],
"env": {
"FREETHETOOLS_LIBRARY": "<FREETHETOOLS_LIBRARY>"
}
}
}
}
Run commandnpx -y freethetools
Environment variables to set
FREETHETOOLS_LIBRARYFolder where results and the record of jobs are kept. Default: a folder named freethetools in your home folder.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmfreethetools0.1.2

Tools

29

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
filestringNoA .csv file. Give this or text. Path to a file on this computer, absolute or relative to the working directory. Accepts: text/csv, text/plain, text/tab-separated-values.
textstringNoCSV text. Give this or file.
typedbooleanNoTurn numbers and true/false into JSON numbers and booleans (default false: keep everything as text).
headerbooleanNoThe first row holds column names (default true).
saveTostringNoOptional. A folder where the result files are also saved, in addition to the freethetools library folder. It must be inside the working directory, the library, or a folder the person allowed with --allow-save, and not inside a hidden folder. Files that can run programs, such as .bat or .exe, are never saved. Existing files are never overwritten.

Details

From the project README

freethetools

Free the Tools on your own computer, for AI assistants. Your files never leave it.

This package runs a Model Context Protocol (MCP) server and a small command line, and works as a code library. They give an AI assistant a growing set of tools for everyday file jobs, such as compressing, merging, splitting, rotating and unlocking PDFs, stripping location data from photos, converting CSV and JSON, and hashing. The tools are the same ones as on freethetools.com.

It is listed in the official MCP Registry as io.github.sapience-design/freethetools.

An assistant that has this server no longer needs to install Ghostscript, ImageMagick or a Python package for those jobs. The server tells it to use these tools instead.

The privacy promise

  • The server runs on your computer. It reads the files you point it at from your disk.
  • It makes no network connection of its own. Nothing is uploaded and nothing is counted.
  • Results are saved in a folder on your computer (see Where results go).
  • The record of every job keeps options such as a quality level or a page range. It never keeps the text you gave a tool, a password or any other secret.
  • It reads and writes only what is safe for an assistant to touch (see Safety).
  • Anything the assistant reads or makes passes through your conversation with it. Use the website, not an assistant, for secrets such as passwords.

Set it up

You need Node.js 22 or later. Nothing else is installed: npx fetches the package the first time.

Claude Code

Run this once in a terminal:

claude mcp add freethetools -- npx -y freethetools mcp

Add --scope user before the name to use it in every project. Check it with claude mcp list. Source: Claude Code MCP documentation.

Claude Desktop

Claude Desktop does not run in your project folder. Give the assistant absolute paths, such as C:\Users\you\Documents\report.pdf or /Users/you/Documents/report.pdf. A short path such as report.pdf will not be found.

  1. Open the Claude menu, then Settings, then Developer, then Edit Config.
  2. Add this to claude_desktop_config.json (Windows: %APPDATA%\Claude, macOS: ~/Library/Application Support/Claude):
{
  "mcpServers": {
    "freethetools": {
      "command": "npx",
      "args": ["-y", "freethetools", "mcp"]
    }
  }
}
  1. Restart Claude Desktop.

Source: Connect to local MCP servers. On Windows, if the app cannot start npx, use "command": "cmd" and "args": ["/c", "npx", "-y", "freethetools", "mcp"].

Cursor

Add the same mcpServers block as above to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project). Source: Cursor MCP documentation.

Any other MCP client

Start the server with this command and speak MCP over standard input and output (stdio):

npx -y freethetools mcp

Use it without MCP

An assistant or script without MCP can use the command line:

npx -y freethetools list
npx -y freethetools run merge_pdfs '{"files":["a.pdf","b.pdf"]}'
npx -y freethetools run compress_pdf '{"file":"report.pdf","quality":"smallest","saveTo":"."}'
npx -y freethetools run convert_case '{"text":"hello world","case":"title"}'

run prints the result as JSON: ok, a summary, data and the files it saved, with their full paths. It exits with code 1 if the job failed. On Windows, put the JSON in a file and write @args.json instead of the JSON. Run freethetools --help for everything.

Use it from your own code

Install it with npm install freethetools (Node.js 22 or later), then call any tool from JavaScript or TypeScript. Each tool is a function named after it: compress_pdf is compressPdf.

import { compressPdf, mergePdfs, convertCase } from "freethetools";
import { readFile, writeFile } from "node:fs/promises";

const { files } = await compressPdf({ file: "report.pdf", quality: "smallest" });
await writeFile(files[0].name, files[0].bytes);

const merged = await mergePdfs({ files: ["a.pdf", await readFile("b.pdf")] });
const { data } = await convertCase({ text: "hello world", case: "title" });
  • Files go in as a path, bytes (a Uint8Array or Buffer), a Blob, or { name, bytes }. Your bytes are copied, never changed. Paths are read as the command line reads them: hidden files and folders are refused.
  • Results come back as { tool, summary, data, files }. Each file has a name, a type, a size and its bytes. Nothing is written to disk or recorded in the library folder; you decide what to save.
  • Mistakes throw a FreeTheToolsError with a plain message, such as case should be one of: upper, lower, ….
  • run(name, args) calls a tool by name, and listTools() lists every tool with its options as JSON Schema.
  • Each call runs in its own thread with a time limit: 60 seconds, or 300 for tools that start an engine such as Ghostscript. Pass { timeout: seconds } as the second argument to change it.
  • Types are included, and each function carries its tool's description for your editor.

Everything runs on your computer, with no network connection, like the MCP server.

The tools

Run freethetools list for the full list. Files are always paths on your computer, absolute or relative to the working directory.

GroupTools
PDFcompress_pdf, add_to_pdf, list_pdf_form_fields, fill_pdf_form, images_to_pdf, merge_pdfs, arrange_pdf_pages, protect_pdf, rotate_pdf, split_pdf, unlock_pdf
Imagesremove_photo_metadata
Textconvert_case, compare_texts, count_words
Datacsv_to_json, json_to_csv, format_json
Developerbase64_encode, base64_decode, generate_hash, decode_jwt, generate_password, make_qr_code, test_regex, url_encode, url_decode, generate_uuids
Everydayconvert_colour, convert_time_zone, convert_units, convert_unix_timestamp

Every tool that makes files also takes an optional saveTo: a folder where the results are saved as well. An existing file is never overwritten. The server adds " (2)" to the name instead. saveTo has rules: see Safety.

Where results go

WhatWhere
Library folderA folder named freethetools in your home folder
Another folderfreethetools mcp --library <folder>, or set FREETHETOOLS_LIBRARY
Result files<library>/files/<id>/<name>
Record of every job<library>/library.jsonl, one JSON record per line

A record holds the tool, the time, the settings, the input file names and sizes, the short summary the tool returned and the result files. Failed jobs are recorded with the error.

  • Settings are options only: yes/no switches, numbers, choices from a list, and a few short values such as a file name or a page range. Text you gave a tool, passwords, secrets (a JWT secret, a Wi-Fi password) and saveTo are never recorded.
  • Summaries are one line, such as "Encoded 3 bytes." A summary can name something you typed, such as a Wi-Fi network name.
  • The record never holds file contents.

In Chrome and Edge, the library page on freethetools.com can open this folder, so you can see what an assistant did and get the results again. The page reads the folder in your browser; nothing is uploaded.

Safety

An AI assistant chooses the paths and file names. The package does not trust them.

Reading

  • It never reads a hidden file, or a file inside a hidden folder. A name that starts with a dot is hidden. This covers ~/.ssh, ~/.aws, ~/.gnupg, .env and .git.
  • It follows links first, so a link to a hidden file is refused too.
  • Only the part of a path below your working directory, your library or your home folder is checked. A project inside a folder such as .work still works.
  • A tool returns at most 1 MB of text or data in the conversation. Larger data is saved as a file in the library, and the result gives the path.

Saving with saveTo

saveTo may only point to a folder inside one of these:

  1. The working directory. This does not apply when the working directory is your home folder or the top of a drive.
  2. The library folder.
  3. A folder you allow with --allow-save <folder>. Repeat the option for more folders. You can also set FREETHETOOLS_ALLOW_SAVE to a list of folders, separated by ; on Windows and : elsewhere.

saveTo may not go into a hidden folder, such as .git/hooks. It follows links first, so a link cannot lead outside the allowed folders.

To allow a folder in Claude Code:

claude mcp add freethetools -- npx -y freethetools mcp --allow-save ~/Documents/results

File names

  • The package never saves a file whose name starts with a dot, or has no extension.
  • It never saves a file that can run a program or start by itself: .bat .cmd .com .exe .dll .msi .ps1 .psm1 .vbs .vbe .js .jse .wsf .wsh .hta .scr .pif .lnk .url .reg .sh .bash .zsh .command .desktop .app .jar .py .rb .pl .mjs .cjs .scpt .workflow .ps1xml .inf .cpl.
  • This holds for the library as well. The error names the file and asks for another name.

Limits

  • Each call stops after 60 seconds, and after 5 minutes for compress_pdf. This stops a runaway job from hanging the server.
  • A call may read up to 2 GB of input files. Larger files are refused.
  • Password-protected PDFs must be unlocked first.
  • Some tools on the website are not in the package yet, because they use parts of the browser that Node does not have:
    • Image Compress, Convert and Resize, HEIC to JPG, Image to SVG and PDF to Images read or save pictures through the browser's canvas. They need an image engine that runs in Node.
    • Video to GIF takes its frames from the browser's video player. It needs a video decoder that runs in Node.
    • Markdown to HTML and File Converter need the browser's page model (DOM) or canvas.

How compress_pdf works

compress_pdf runs Ghostscript compiled to WebAssembly (@jspawn/ghostscript-wasm). The WebAssembly file ships inside this package (about 16 MB), so it needs no download and no Ghostscript on your computer.

Licence

AGPL-3.0-only, like the website. The source is at github.com/sapience-design/freethetools. Third-party code is listed in NOTICE.

A Sapience Design initiative.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.