SafeResize works inside AI assistants such as Claude, ChatGPT, Codex and Cursor, through MCP (Model Context Protocol), the standard way for an assistant to use outside tools. There are two versions:

HostedInstalled
What it doesAnswers photo-rule questions: the official size, pixels, KB limit and background for 83 passport and visa documents, and what a website's upload rules meanThe same, plus checking, compressing and resizing photos and PDFs on your computer
Works inClaude (web, desktop, Claude Code), ChatGPT, Codex, CursorClaude Desktop, Claude Code, Codex, Cursor
SetupPaste one addressA short command; needs Node.js
Your filesNot involvedStay on your computer
CostFreeFree key during the beta

Hosted version: add one address

The address is:

https://saferesize.com/mcp

  • Claude (claude.ai and Claude Desktop): open Settings, then Connectors, choose "Add custom connector", name it SafeResize and paste the address.
  • Claude Code: run claude mcp add --transport http saferesize https://saferesize.com/mcp
  • Codex: add this to ~/.codex/config.toml:
[mcp_servers.saferesize]
url = "https://saferesize.com/mcp"
  • ChatGPT: turn on developer mode in ChatGPT's settings (Plus, Pro, Business and Enterprise accounts), then create a new app or connector with the address above. OpenAI explains the steps in Developer mode and MCP apps in ChatGPT.
  • Cursor: add this to ~/.cursor/mcp.json:
{ "mcpServers": { "saferesize": { "url": "https://saferesize.com/mcp" } } }

Then ask things like "What size is a Schengen visa photo?" or "The form says JPG, 10 to 20 KB, 140 x 60 pixels. What does that mean?"

Installed version: fix files on your computer

The installed version adds four tools that open files on your own computer: check_file, compress_image, resize_image and compress_pdf. Ask "Make C:\Users\me\Pictures\photo.jpg smaller than 50 KB" or "Get this PDF under 200 KB", and the new file is saved next to the original, with the size in its name. The original is never changed.

You need Node.js 20 or newer, and a SafeResize key (free during the beta, see below). Replace YOUR_KEY with your key.

The first start downloads the image and PDF parts the tools need (about 140 MB once installed), which can take a minute. Some assistants give up on a server that takes that long, so run this once in a terminal first. It prints the version number when everything is ready:

npx -y --package=https://saferesize.com/downloads/saferesize-mcp.tgz saferesize-mcp --version

Then add SafeResize to your assistant:

  • Claude Code:
claude mcp add --env SAFERESIZE_KEY=YOUR_KEY --transport stdio saferesize -- npx -y --package=https://saferesize.com/downloads/saferesize-mcp.tgz saferesize-mcp
  • Codex (~/.codex/config.toml):
[mcp_servers.saferesize]
command = "npx"
args = ["-y", "--package=https://saferesize.com/downloads/saferesize-mcp.tgz", "saferesize-mcp"]
startup_timeout_sec = 120
tool_timeout_sec = 300

[mcp_servers.saferesize.env]
SAFERESIZE_KEY = "YOUR_KEY"
  • Claude Desktop and Cursor (claude_desktop_config.json or ~/.cursor/mcp.json):
{
  "mcpServers": {
    "saferesize": {
      "command": "npx",
      "args": ["-y", "--package=https://saferesize.com/downloads/saferesize-mcp.tgz", "saferesize-mcp"],
      "env": { "SAFERESIZE_KEY": "YOUR_KEY" }
    }
  }
}

Get a key

During the beta, keys are free. Email anujagrawalbusiness@gmail.com with the subject "SafeResize MCP key" and we will send you one. A beta key works for 90 days. The questions about photo rules never need a key.

Tools

ToolWhat it doesKey
find_photo_requirementsFinds a passport or visa document by country, document or form nameNo
get_photo_requirementsThe official rules for one document, with the source and the date we checked itNo
interpret_upload_rulesTurns a website's upload rules into exact numbersNo
check_file_numbersChecks a file's size, pixels and type against upload rulesNo
check_fileChecks a photo or PDF on your computer against upload rulesYes
compress_imageMakes a photo smaller than a KB limitYes
resize_imageResizes a photo to exact pixels, mm, cm or inchesYes
compress_pdfMakes a PDF smaller, to a KB limit or a preset sizeYes

Privacy

  • Hosted version: your assistant sends SafeResize only the words of its question, such as a country name or a website's rules. No files, and nothing is stored.
  • Installed version: files are opened, changed and saved on your own computer. They are never uploaded. Your key is checked on your computer too, without contacting us. The one thing it asks saferesize.com, when it starts, is the number of the current version, so it can update itself. That request carries nothing about you or your files.

For the official passport or visa photo itself, the website is still the best place: the photo maker lines up your face with a guide for each country's rules.