Agentic Image Optimization in Cursor
Add the tinify.ai MCP Server to Cursor. Compress, resize, upscale, and tag images from Cursor's AI Chat.
Agentic Image Optimization in Cursor
Add tinify.ai to Cursor's MCP configuration and optimize images directly from AI Chat. Uses the MCP Server surface.
Requirements
- Node.js ≥ 18
- Cursor IDE
Install
Add to .cursor/mcp.json in your project root (or ~/.cursor/mcp.json globally):
{
"mcpServers": {
"tinify-ai": {
"command": "npx",
"args": ["-y", "@tinify-ai/mcp-server"]
}
}
}Restart Cursor after saving.
Verify
Open Cursor Settings → MCP. The tinify-ai server should show as Connected.
Usage example
In Cursor's AI Chat:
Compress public/hero.png and convert it to WebPResponse:
✓ public/hero.png → public/hero.webp (1.2 MB → 187 KB, 84% smaller)Auth
Guest mode: 20 credits/day, no signup. To use account credits:
Log in to tinify.aiCursor calls the login tool, your browser opens to https://tinify.ai/mcp/authorize. Pricing →
Troubleshooting
Server shows "Disconnected" in Cursor Settings → MCP
Check that Node.js ≥ 18 is installed:
node --versionIf Node is too old, install the LTS from nodejs.org.
mcp.json not recognized
Ensure the file is at .cursor/mcp.json (inside .cursor/ directory, not cursor/). Restart Cursor.
Insufficient credits error
20 free credits/day, resets at midnight UTC. Upgrade →
Agentic Image Optimization in GitHub Copilot
Install the tinify.ai Open Plugin for GitHub Copilot. Compress, resize, and optimize images from Copilot Chat.
Agentic Image Optimization in the Terminal
Run the tinify.ai MCP Server from the terminal on macOS or Windows. Compress, resize, upscale, and tag images via CLI or scripts.