
FitFileSize
io.github.GautamstarPublished by GitHub account Gautamstarv0.2.1Updated Oct 24, 2026
Compress PDFs and images, iPhone HEIC too, to fit an upload limit or a form's rules.
Overview
Local MCP server that lets an assistant compress PDFs and images (including iPhone HEIC) to fit an upload limit or a form's exact rules.
- What you can do
- Compress a single PDF or image to a target size limit, or to an exact pixel size with crop or pad
- Batch-fit up to 10 files that share the same limit, saving each result beside its original
- Apply form presets such as visa photos, exam and bank uploads, IRCC documents or Discord emoji, including minimum sizes
- List the available form presets with their rules and official sources
- Keep each file's format unless JPEG output is explicitly allowed; HEIC photos come back as JPEG
- When to use it
- Useful when a document or photo must be uploaded to a portal, form or chat service with a strict size or pixel requirement, and you want the assistant to resize and compress it locally without manual editing.
- Requirements
- Node.js 20.10 or newer; runs locally via npx with no account or API key. Network access is needed because files are uploaded to the FitFileSize service for compression. Files up to 50 MB.
Installation
In SourceWeft
- Open FitFileSize in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
FitFileSize MCP server
Let your AI assistant make a PDF or image fit an upload limit, or a form's exact rules, with FitFileSize.
"Make ~/Downloads/signature.jpg fit the IBPS signature rules"
Saved ~/Downloads/signature.fit.jpg for IBPS signature (JPEG, 140 × 60 pixels, 10 KB to 20 KB): 10,240 bytes (10.0 KB), under the 20,000 bytes limit.
- Any limit: "get this scan under 300 KB", "this photo under 50 KB".
- Form presets: US visa photo (DS-160), Indian e-Visa passport page and photo, IBPS, SBI, RRB, SSC, NEET, JEE Main, CUET and GATE uploads, IRCC documents, and Discord emoji, profile banners and message uploads. The preset sets the size limit, the minimum size and the exact pixels. Ask for
list_formsto see them all. - Several files at once: "fit these five documents under 2 MB each".
- Keeps as much quality as the limit allows, and saves the result next to the original as
<name>.fit.<ext>. Every file keeps its format (a PNG stays a PNG) unless you say a JPEG is fine; iPhone HEIC photos come back as JPEG. - Free, no account, no API key. Files up to 50 MB.
Setup
Needs Node.js 20.10 or newer. Step-by-step setup with copy buttons: fitfilesize.com/claude.html.
Claude Code
Claude Desktop, Cursor, Windsurf and other clients that use an mcpServers config file:
(Claude Desktop: Settings → Developer → Edit Config. Cursor: ~/.cursor/mcp.json.)
VS Code (.vscode/mcp.json):
Tools
fit_file
list_forms
The form presets, each with its rules and the official source they come from. The list is read from fitfilesize.com/forms.json, so new forms appear without an update; a copy is bundled for when the site cannot be reached.
Privacy
The file is sent to FitFileSize's server over HTTPS, compressed there, and deleted as soon as the result is saved on your computer. Requests name the package and its version (fitfilesize-mcp/0.2.1), nothing about you. Nothing else leaves your machine. See the privacy page. Uploads count against the site's free limit of 30 an hour.
Development
FITFILESIZE_API points the server at another API, such as a local one (http://127.0.0.1:8000).
Licence
MIT, see LICENSE. This covers the MCP server in this folder; the rest of the FitFileSize repository is not open source.
Source: mcp/README.md at commit 307987b
Tools
0Version history
3- v0.2.1LatestOct 18, 2026
- v0.2.0Sep 27, 2026
- v0.1.1Sep 26, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.