
Free the Tools
io.github.sapience-designv0.1.0更新于 Oct 10, 2026
Local PDF, image, data and text tools for AI assistants. Files stay on your computer.
概览
在本地运行 25 个文件工具,处理 PDF、照片、数据、文本和开发任务,文件不离开你的电脑。
- 功能
- 一个本地 MCP 服务器和命令行,为助手提供 25 个日常文件工具。它可以压缩、合并、拆分、旋转和填写 PDF,清除照片中的位置数据,转换 CSV 与 JSON,进行 base64 编码解码、哈希、JWT 解码、正则测试、生成 UUID 和密码、制作二维码,以及单位、时区、大小写和字数转换。结果保存到库文件夹,每个任务都会记录在日志中。
- 适用场景
- 当助手需要处理你电脑上的文件,又不想安装 Ghostscript、ImageMagick 或 Python 包时适合添加;也适合希望处理过程留在本地的场景。常用于 PDF、数据转换和文本类日常任务。
- 运行要求
- 需要 Node.js 22 或更高版本;首次使用时由 npx 获取包。以本地 stdio 进程运行,仅限桌面端。可选环境变量 FREETHETOOLS_LIBRARY 指定结果文件夹;--allow-save 或 FREETHETOOLS_ALLOW_SAVE 可扩大结果写入范围。无需账号或 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Free the Tools,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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. They give an AI assistant 25 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:
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.
- Open the Claude menu, then Settings, then Developer, then Edit Config.
- Add this to
claude_desktop_config.json(Windows:%APPDATA%\Claude, macOS:~/Library/Application Support/Claude):
- 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):
Use it without MCP
An assistant or script without MCP can use the command line:
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.
The tools
Run freethetools list for the full list. Files are always paths on your computer, absolute or relative to the working directory.
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
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
saveToare 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,.envand.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
.workstill 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:
- The working directory. This does not apply when the working directory is your home folder or the top of a drive.
- The library folder.
- A folder you allow with
--allow-save <folder>. Repeat the option for more folders. You can also setFREETHETOOLS_ALLOW_SAVEto 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:
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.
- Image Compress, Convert and Resize, and PDF to Images, are not in the package yet. They need an image engine that runs in Node.
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 initiative.
来源:packages/freethetools/README.md,提交 a225e26
工具
0版本历史
1- v0.1.0最新Oct 10, 2026


