
FitFileSize
io.github.Gautamstar由 GitHub 帳號 Gautamstar 發布v0.2.1更新於 Oct 24, 2026
Compress PDFs and images, iPhone HEIC too, to fit an upload limit or a form's rules.
概覽
本機 MCP 伺服器,讓助理壓縮 PDF 與圖片(含 iPhone HEIC),以符合上傳大小限制或表單的精確規則。
- 可以做什麼
- 將單一 PDF 或圖片壓縮到指定大小上限,或依精確像素尺寸裁切、留白
- 一次批次處理最多 10 個共用同一上限的檔案,結果存回原檔旁
- 套用表單預設,如簽證照片、考試與銀行上傳、IRCC 文件或 Discord 表情,並可設定最小尺寸
- 列出可用的表單預設及其規則與官方來源
- 預設保留原格式,僅在明確允許時輸出 JPEG;HEIC 照片會轉為 JPEG
- 適用情境
- 當文件或照片必須上傳到有嚴格大小或像素要求的入口網站、表單或聊天服務,並希望助理在本機完成縮放與壓縮、不必手動修圖時使用。
- 執行需求
- 需要 Node.js 20.10 或更新版本;透過 npx 在本機執行,無需帳號或 API 金鑰。壓縮需連網,因為檔案會上傳到 FitFileSize 服務處理。支援最大 50 MB 的檔案。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 FitFileSize,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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.
來源:mcp/README.md,提交 307987b
工具
0版本歷史
3- v0.2.1最新Oct 18, 2026
- v0.2.0Sep 27, 2026
- v0.1.1Sep 26, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。