Tinify MCP
Let your agent compress images.
@tinify-dev/mcp gives Claude, Cursor, Codex, and any MCP client five image tools backed by the Tinify API. 500 free operations per month, no card.
Create an API keyInstall
Pick your client.
Every path runs the same server over stdio with npx. You need Node.js 20 or newer and an API key from the dashboard - replace tnf_live_... with yours.
Claude Code
One command in any terminal.
claude mcp add tinify -e TINIFY_API_KEY=tnf_live_... -- npx -y @tinify-dev/mcpClaude Code plugin
The plugin bundles the server with a marketplace entry. Run both commands inside Claude Code.
/plugin marketplace add Stianlars1/tinify-claude-plugin
/plugin install tinify@tinifyClaude Desktop
Add to claude_desktop_config.json (Settings, then Developer, then Edit Config).
{
"mcpServers": {
"tinify": {
"command": "npx",
"args": ["-y", "@tinify-dev/mcp"],
"env": { "TINIFY_API_KEY": "tnf_live_..." }
}
}
}Cursor
The install link opens Cursor and pre-fills the server. Swap YOUR_API_KEY for a real key before saving.
If the link does not open, add this under mcpServers in .cursor/mcp.json:
{
"command": "npx",
"args": ["-y", "@tinify-dev/mcp"],
"env": { "TINIFY_API_KEY": "YOUR_API_KEY" }
}VS Code
One command; set TINIFY_API_KEY when VS Code prompts for the environment.
code --add-mcp '{"name":"tinify","command":"npx","args":["-y","@tinify-dev/mcp"]}'Codex CLI
Either one command, or the equivalent block in ~/.codex/config.toml.
codex mcp add tinify --env TINIFY_API_KEY=... -- npx -y @tinify-dev/mcp[mcp_servers.tinify]
command = "npx"
args = ["-y", "@tinify-dev/mcp"]
[mcp_servers.tinify.env]
TINIFY_API_KEY = "tnf_live_..."Five tools
Small surface, honest numbers.
Every image tool writes a new file and never overwrites the source. Results return raw byte counts so the agent can do arithmetic instead of parsing prose.
compress_imageCompress PNG, JPEG, WebP, or AVIF. Returns optimized: false instead of a larger file.
resize_imageResize by width, height, or scale. Size increases are reported plainly.
crop_imageCrop with explicit pixel coordinates and dimensions.
convert_imageConvert between AVIF, WebP, JPEG, and PNG. Conversion can grow a file; the numbers say so.
get_usageRead plan, billing period, and operations used and remaining.