Tinify MCP server
{
"mcpServers": {
"tinify": {
"command": "npx",
"args": [
"-y",
"@tinify-dev/mcp@latest"
],
"env": {
"OPENAI_APPS_CHALLENGE_TOKEN": "sk-...",
"TINIFY_API_KEY": "<tinify_api_key>"
}
}
}
}{
"mcpServers": {
"tinify": {
"command": "npx",
"args": [
"-y",
"@tinify-dev/mcp@latest"
],
"env": {
"OPENAI_APPS_CHALLENGE_TOKEN": "sk-...",
"TINIFY_API_KEY": "<tinify_api_key>"
}
}
}
}{
"mcpServers": {
"tinify": {
"command": "npx",
"args": [
"-y",
"@tinify-dev/mcp@latest"
],
"env": {
"OPENAI_APPS_CHALLENGE_TOKEN": "sk-...",
"TINIFY_API_KEY": "<tinify_api_key>"
}
}
}
}{
"servers": {
"tinify": {
"command": "npx",
"args": [
"-y",
"@tinify-dev/mcp@latest"
],
"env": {
"OPENAI_APPS_CHALLENGE_TOKEN": "${input:openai_apps_challenge_token}",
"TINIFY_API_KEY": "${input:tinify_api_key}"
}
}
},
"inputs": [
{
"id": "openai_apps_challenge_token",
"type": "promptString",
"description": "Openai apps challenge token",
"password": true
},
{
"id": "tinify_api_key",
"type": "promptString",
"description": "Tinify api key",
"password": true
}
]
}{
"mcpServers": {
"tinify": {
"command": "npx",
"args": [
"-y",
"@tinify-dev/mcp@latest"
],
"env": {
"OPENAI_APPS_CHALLENGE_TOKEN": "sk-...",
"TINIFY_API_KEY": "<tinify_api_key>"
}
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall npx -y @tinify-dev/mcpversion 0.1.7
What it does
MCP server that connects to the Tinify.dev image API to compress, resize, crop, and convert images. Designed for use with Claude, ChatGPT, Cursor, and other MCP clients working with local files or remote images.
- Compress PNG, JPEG, WebP, or AVIF images to reduce file size for web use while preserving quality.
- Resize or crop images to specific dimensions or aspect ratios through natural language requests.
- Batch process multiple images at once, with results saved alongside originals or to a specified output directory.
Tools this server exposes
| Tool | Does |
|---|---|
| compress_image | Compresses PNG/JPEG/WebP/AVIF images with options for quality mode, target size, and output path control. |
| resize_image | Resizes images to specified width and height dimensions. |
| crop_image | Crops images to specified coordinates or dimensions. |
| convert_image | Converts images between supported formats (PNG, JPEG, WebP, AVIF). |
| get_usage | Retrieves current API usage statistics from the Tinify.dev account. |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.