Passport and visa photo rules for 110 documents in 60 countries, and upload limits as exact numbers.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Check a file's size in bytes, pixels and type against a website's upload rules, without sending the file. Use when you already know the numbers (e.g. from the file's properties).
The website's rules as written
jpg, png, webp or pdf
Exact size in bytes
Check a file's size in bytes, pixels and type against a website's upload rules, without sending the file. Use when you already know the numbers (e.g. from the file's properties).
| Argument | Type | Description |
|---|---|---|
| width | integer | |
| format | string | jpg, png, webp or pdf |
| height | integer | |
| rules_text* | string | The website's rules as written |
| file_size_bytes | integer | Exact size in bytes |
{
"type": "object",
"required": [
"rules_text"
],
"properties": {
"width": {
"type": "integer"
},
"format": {
"type": "string",
"description": "jpg, png, webp or pdf"
},
"height": {
"type": "integer"
},
"rules_text": {
"type": "string",
"description": "The website's rules as written"
},
"file_size_bytes": {
"type": "integer",
"description": "Exact size in bytes"
}
}
}Search SafeResize's verified list of 110 passport and visa photo documents (60 countries and regions) by country, document or form name, e.g. "US visa", "DS-160", "Schengen", "India OCI", "Dubai". Returns matching documents with their document_id.
| Argument | Type | Description |
|---|---|---|
| limit | integer | Maximum results (default 8) |
| query* | string | Country, document or form, e.g. "UK passport" or "DS-160" |
{
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 25,
"minimum": 1,
"description": "Maximum results (default 8)"
},
"query": {
"type": "string",
"description": "Country, document or form, e.g. \"UK passport\" or \"DS-160\""
}
}
}Official photo rules for one document: printed size, pixel rule, file size in KB, file type, background, head size, other rules, whether a self-made photo is accepted, the official source URL and the date SafeResize checked it, plus a link to make the photo free at saferesize.com.
| Argument | Type | Description |
|---|---|---|
| document_id* | string | From find_photo_requirements, e.g. "us-visa", "uk-passport", "schengen-visa", "in-oci" |
{
"type": "object",
"required": [
"document_id"
],
"properties": {
"document_id": {
"type": "string",
"description": "From find_photo_requirements, e.g. \"us-visa\", \"uk-passport\", \"schengen-visa\", \"in-oci\""
}
}
}Turn the upload rules a website shows (e.g. "JPG only, 10 KB to 50 KB, 200 x 230 pixels" or "PDF not more than 1 MB") into exact numbers: KB limits, a byte range that passes whether the site counts 1 KB as 1,000 or 1,024 bytes, pixels, file type, and the SafeResize tool that fixes the file.
| Argument | Type | Description |
|---|---|---|
| text* | string | The rules exactly as the website writes them |
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"description": "The rules exactly as the website writes them"
}
}
}