Smally MCP
Let your agent compress images.
Smally gives ChatGPT, Claude, Cursor, Codex, and other MCP clients five image tools backed by the same API. 500 free operations per month, no card.
Create an API keyConnect or install
Pick your client.
ChatGPT uses the hosted OAuth server. Desktop and CLI clients run the same toolset locally over stdio with npx and need Node.js 20 or newer. Both paths use an API key from the dashboard.
ChatGPT
Enable Developer mode in ChatGPT under Settings, Security and login. Open ChatGPT Plugins, add https://api.smally.app/mcp, and complete Connect Smally with your API key. Attach a PNG, JPEG, WebP, or AVIF image and try:
Use Smally to compress this attached image for the web. Show the original size, result size, and percentage saved.Claude Code
One command in any terminal.
claude mcp add smally -e SMALLY_API_KEY=tnf_live_... -- npx -y @stianlarsen/smally-mcpClaude Desktop
Add to claude_desktop_config.json (Settings, then Developer, then Edit Config).
{
"mcpServers": {
"smally": {
"command": "npx",
"args": ["-y", "@stianlarsen/smally-mcp"],
"env": { "SMALLY_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", "@stianlarsen/smally-mcp"],
"env": { "SMALLY_API_KEY": "YOUR_API_KEY" }
}VS Code
For an existing Local harness setup, run MCP: Open User Configurationin the Command Palette, then add this to your VS Code profile's mcp.json. The editor shows a masked API key prompt on first start.
{
"inputs": [
{
"type": "promptString",
"id": "smally-api-key",
"description": "Smally API key",
"password": true
}
],
"servers": {
"smally": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@stianlarsen/smally-mcp"
],
"env": {
"SMALLY_API_KEY": "${input:smally-api-key}"
}
}
}
}For Copilot harness sessions, follow Microsoft's Copilot MCP setup guide.
Codex CLI
Either one command, or the equivalent block in ~/.codex/config.toml.
codex mcp add smally --env SMALLY_API_KEY=... -- npx -y @stianlarsen/smally-mcp[mcp_servers.smally]
command = "npx"
args = ["-y", "@stianlarsen/smally-mcp"]
[mcp_servers.smally.env]
SMALLY_API_KEY = "tnf_live_..."Five tools
Small surface, honest numbers.
Local clients write a new file and never overwrite the source. Hosted clients receive a temporary result link instead. Both 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.