Resize & crop
Scale by width, height, percentage, or fit mode. Crop by coordinates, dimensions, or gravity with a single tool call.
img-mcp is an MCP server that lets agents resize, crop, convert, compress, and edit images locally with Node.js — plus generate images when you want AI. No Docker, no shared keys, no friction.
From fast local edits to AI-powered generation — one MCP server, zero setup.
Scale by width, height, percentage, or fit mode. Crop by coordinates, dimensions, or gravity with a single tool call.
Switch between JPEG, PNG, WebP, AVIF, GIF, and more. Optimize quality and file size for any channel.
Apply the same transform to multiple images in one call. Perfect for thumbnails, exports, and asset pipelines.
Read, write, and strip image metadata. Keep or remove EXIF, IPTC, and XMP data on demand.
Generate high-quality images from natural language prompts with full control over aspect ratio and resolution.
Guide AI generation with base64 reference images and produce clean transparent assets for overlays.
img-mcp translates your agent's instructions into local image operations or generation calls.
No API key is needed for local manipulation. Add a Google API key only if you want AI image generation.
Run one command to register img-mcp as an MCP server in Claude Code. It also works in Cursor, Windsurf, Kimi, and other MCP hosts.
Tell your agent what to do. img-mcp resizes, converts, crops, or generates images and returns the result.
No JSON files, no Docker, no manual config. Just run the CLI.
# Local image manipulation only (no API key needed) $ claude mcp add --transport stdio img-mcp -- npx -y img-mcp # With AI image generation enabled $ claude mcp add --env GOOGLE_API_KEY=YOUR_KEY --transport stdio img-mcp -- npx -y img-mcp
AI generation brought us here. The future is fast, local, non-AI image manipulation built on Node.js.
Generate images from prompts with size, ratio, and output controls.
Use existing images to guide style, subject, and composition.
Automatic background removal for clean asset generation.
Scale images and switch formats locally with no API call.
Coordinate-based cropping, rotation, mirroring, and EXIF auto-orient.
Quality tuning and target file-size optimization for any format.
Apply transforms to multiple images in a single tool call.
Read, write, and strip image metadata on demand.
Add text or image watermarks with positioning and opacity.
Increase resolution and recover detail when quality matters.
Edit parts of an image or extend the canvas beyond its edges.
Support for more image models beyond Google Nano Banana.
Join the open-source community and start manipulating and generating images with img-mcp today.