ruah
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ruah-mcp
Image tools for AI agents, as an MCP server. Background removal, compression, resizing, cropping, AI upscaling and metadata removal all run on your own computer. Images never leave it.
It is the engine of ruah.tools: the same models, encoders and settings, packaged for an agent to call.
Tools
Tool | What it does |
| Cuts the main subject out of a photo and saves a transparent PNG (AI). |
| Makes an image file smaller with little visible loss, or converts it: WebP, AVIF, JPEG, PNG. |
| Changes the pixel dimensions, keeping proportions (by longest side or percent). |
| Crops to an aspect ratio or exact region, rotates by quarter turns, flips. Pixels are moved, never resampled. |
| Enlarges 2× or 4× with AI super-resolution. Keeps transparency. |
| Removes EXIF (GPS location, camera, date), XMP, IPTC, comments and embedded thumbnails. JPEG and PNG are cleaned without re-encoding. |
Files in, files out: every tool writes a new file next to the original (or to the path you give) and returns its path with a small preview. Existing files, the original included, are never overwritten. Images up to 12000×12000 pixels (144 MP) and 512 MB are accepted; upscale results are capped at 4096×4096.
Related MCP server: roundcut-mcp
Install
Requires Node.js 20 or newer.
Claude Code
claude mcp add ruah -- npx -y ruah-mcpAny other MCP client (Claude Desktop, Cursor, …): add this to its MCP server config.
{
"mcpServers": {
"ruah": {
"command": "npx",
"args": ["-y", "ruah-mcp"]
}
}
}Then ask your agent things like "remove the background from ~/Desktop/shoe.jpg" or "convert these screenshots to WebP".
What goes over the network
Only the AI model weights, once, from Ruah's model mirror (models.ruah.tools). Each file is checked against a SHA-256 hash pinned in this package before it is used, then kept in a local cache:
Model | Used by | Size | When |
BiRefNet lite (512²) |
| 98 MB | Fetched in the background when the server first starts |
BiRefNet (512²) |
| 473 MB | Only if the lite model finds no subject |
Swin2SR ×2 |
| 8 MB | First 2× upscale |
Swin2SR ×4 |
| 55 MB | First 4× upscale |
Compression, resizing, cropping and metadata removal need no download at all.
The cache lives in ~/.cache/ruah/models (or $XDG_CACHE_HOME/ruah/models). Set RUAH_CACHE_DIR to put it elsewhere.
Platforms
macOS (Apple Silicon): tested. Upscaling runs on the GPU (WebGPU via Metal) and falls back to the CPU if that fails.
Linux, Windows: upscaling runs on the CPU. The full test suite runs on both (x64) for every change; arm64 builds exist but are untested.
Intel Macs are not supported: the ONNX runtime the AI tools run on ships no build for them.
HEIC (iPhone photos) can be read on macOS only. HEVC is a patent-licensed codec and only macOS provides one here.
Licenses
ruah-mcp is MIT licensed (see LICENSE). The models it downloads keep their own licenses: BiRefNet (MIT) and Swin2SR (Apache-2.0). Lossy PNG compression uses libimagequant through the imagequant package, which is GPL-3.0 licensed and installed by npm as a separate dependency.
This repository
The source the npm package is built from, mirrored from Ruah's main repository. packages/ruah-mcp is the
server; src/lib holds the image modules it shares with ruah.tools, kept at the
same paths so the imports read the same here. The root package.json only installs what src/lib
imports, for the tests and the type check.
npm ci
cd packages/ruah-mcp && npm ci && npm testIssues and pull requests are welcome. Accepted changes are made in the main repository and arrive here with the next sync.
This server cannot be deployed
Maintenance
Related MCP Connectors
Image processing for AI agents: resize, convert, compress, crop, and web-ready AI-generated images.
Compress, convert, resize, crop, upscale, OCR and remove backgrounds from images.
Image & PDF tools for AI agents: compress, convert, resize, PDF, AI vision, pipeline.
Video, audio, and image processing for AI agents: convert, transcribe, upscale - 150+ operations.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to process images locally via file paths—converting, resizing, removing backgrounds, smart cropping, upscaling, reading or stripping metadata, and batch processing—without files ever leaving the device.MIT
- AlicenseAqualityBmaintenanceEnables AI agents to perform local image operations such as circle cropping, cropping, resizing, compressing, converting, and inspecting images without uploading files or making network calls.747 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to perform local computer-vision-based image recognition and editing, including cropping, resizing, rotating, background removal, drawing text and shapes, object detection, OCR, overlays, and metadata inspection without sending images to external servers.MIT
- AlicenseAqualityCmaintenanceEnables AI agents to perform detailed local image analysis, including pixel-level queries, cropping, grid coordinates, comparisons, and zero-shot classification, all without cloud APIs, keys, or payments.1MIT