Skip to content
VS Code

Tinify image tools for VS Code

dev.tinify/mcp

Compress, resize, crop, and convert images with the Tinify.dev API from any MCP client.

client:VS Code transport:stdio runtime:npm

Install Tinify image tools in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "tinify-api-key",
      "description": "TINIFY_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "tinify-base-url",
      "description": "TINIFY_BASE_URL",
      "password": true
    }
  ],
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@tinify-dev/mcp"
      ],
      "env": {
        "TINIFY_API_KEY": "${input:tinify-api-key}",
        "TINIFY_BASE_URL": "${input:tinify-base-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Tinify image tools in other clients