
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
fitfilesize-mcp
Advanced tools
MCP server for FitFileSize: compress a PDF or image to fit an upload limit, or a form's exact rules (US visa photo, Indian e-Visa, IBPS, SBI, RRB).
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.
list_forms to see them all.<name>.fit.<ext>.Needs Node.js 20.10 or newer.
Claude Code
claude mcp add fitfilesize -- npx -y fitfilesize-mcp
Claude Desktop, Cursor, Windsurf and other clients that use an mcpServers config file:
{
"mcpServers": {
"fitfilesize": {
"command": "npx",
"args": ["-y", "fitfilesize-mcp"]
}
}
}
(Claude Desktop: Settings → Developer → Edit Config. Cursor: ~/.cursor/mcp.json.)
VS Code (.vscode/mcp.json):
{
"servers": {
"fitfilesize": { "command": "npx", "args": ["-y", "fitfilesize-mcp"] }
}
}
fit_file| Argument | |
|---|---|
path | Full path to the file (~/ works). PDF, JPEG, PNG, WebP, TIFF or BMP. |
limit | The upload limit, like "200KB" or "1.5MB". KB and MB are 1000-based, so the result passes a check done either way. |
form | Instead of limit: a form preset from list_forms, like "ibps-photo". |
width, height | Optional exact pixel size, images only. |
fit | "crop" (default) or "pad" with white, when the pixel size changes the shape. |
minimum | Optional smallest size, like "10KB". A small JPEG is padded up to it; the picture is unchanged. |
output | Optional path for the result. |
list_formsThe 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.
The file is sent to FitFileSize's server over HTTPS, compressed there, and deleted as soon as the result is saved on your computer. Nothing else leaves your machine. See the privacy page. Uploads count against the site's free limit of 30 an hour.
npm install
npm test # the tools through an MCP client, against a stand-in API
npm run build # bundles the form presets from the website's data
FITFILESIZE_API points the server at another API, such as a local one (http://127.0.0.1:8000).
MIT, see LICENSE. This covers the MCP server in this folder; the rest of the FitFileSize repository is not open source.
FAQs
MCP server for FitFileSize: compress a PDF or image to fit an upload limit, or a form's exact rules (US visa photo, Indian e-Visa, IBPS, SBI, RRB).
We found that fitfilesize-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.