UpscaleX
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@UpscaleX upscale this image to 8K and show the 300 DPI print size"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
UpscaleX MCP/CLI
UpscaleX is a production-grade 8K and 16K image upscaler CLI and Model Context Protocol (MCP) server powered by RealESRGAN, Vulkan GPU hardware acceleration, and Lanczos supersampling.
Engineered for digital print workflows, large-format poster production, fine art reproductions, and autonomous AI coding agents in Claude Desktop, Antigravity, and Cursor.
Looking for quick setup? Read the Installation Guide for a copy-paste AI Agent setup prompt and manual instructions, or provide your AI coding assistant with the UpscaleX Agent Skill.
Table of Contents
Related MCP server: mcp-image-tools
Key Features
Dual-Mode Operation: Interactive command-line interface (
upscalex) and standard Model Context Protocol server (upscalex-mcp).8K and 16K Presets:
16K: Native 4x RealESRGAN deep-learning model upscale producing master files up to 400+ Megapixels.
8K: 4x deep-learning inference followed by Lanczos-3 downsampling (Supersampling Anti-Aliasing / SSAA) for sharp edges and zero noise.
Custom Dimensions: Proportional scaling to arbitrary resolutions or physical print aspect ratios.
Cross-Platform Architecture: Tested and supported across Windows, Linux (Ubuntu, Debian, Fedora), and macOS (Apple Silicon arm64 & Intel x86_64).
GPU Acceleration with Seamless CPU Fallback: Automatically discovers and utilizes discrete Vulkan GPUs (NVIDIA RTX/GeForce, AMD Radeon, Intel Arc/Iris, Apple Silicon via MoltenVK). In headless Docker containers or environments without GPU drivers, the engine falls back to multi-threaded CPU Lanczos super-resolution with zero crashes.
Hardware Diagnostics: Integrated
upscalex doctorcommand inspects system compute devices, Vulkan support, and recommended tile dimensions.Memory-Safe Tiling: Sliding-window spatial tile decomposition (
--tile-size 256) processes ultra-gigapixel images without Out-Of-Memory (OOM) failures on 4GB to 8GB GPUs.Automated Engine Provisioning: Downloads and validates the precompiled platform binary automatically if not found locally.
Print Fidelity Analysis: Automatically calculates physical print dimensions in inches and centimeters at 300 DPI, 150 DPI, and 72 DPI.
Visual Quality Comparison
Below is an empirical comparison demonstrating UpscaleX 4x super-resolution reconstruction on a low-resolution pixelated source (663 × 531 px, 0.35 MP) upscaled to high-definition print fidelity (2,652 × 2,124 px, 5.63 MP) using the realesrgan-x4plus model.
Metric | Original Source | UpscaleX 4x Output |
Pixel Dimensions |
|
|
Total Megapixels | 0.35 MP | 5.63 MP (16× Pixel Multiplication) |
Edge Reconstruction | Heavy block pixelation, ringing | Reconstructed circular spokes, sharp contours |
Max 300 DPI Print Size | 2.2 × 1.8 inches | 8.8 × 7.1 inches |
Model | — |
|
Hardware | — | NVIDIA GeForce RTX 3050 Laptop GPU (10.8s) |
Documentation Directory
Comprehensive technical guides are available in the docs/ directory and repository root:
Installation Guide: AI Agent autonomous copy-paste prompt and manual installation procedures.
AI Agent Skill Specification: Standard agent skill definition for Claude, Cursor, and Antigravity.
CLI Reference Guide: Complete flag documentation, tiling strategies, and execution examples.
Model Context Protocol (MCP) Guide: JSON-RPC tool contracts, parameter schemas, and multi-client configuration.
Architecture & Mathematics Specification: Deep-learning foundations, RRDB networks, Lanczos kernels, and memory bounds.
Error Handling & Troubleshooting: Known failure modes, pre-flight sanitization, and recovery procedures.
Contributing Guide: Code standards, test procedures, and pull request workflow.
Quickstart
Option 1: Install from PyPI (Simplest for CLI & MCP)
pip install upscalexOption 2: Clone and Install from Source (with uv)
git clone https://github.com/The-Open-Source-Founder/upscalex.git
cd upscalex
# Create virtual environment and install package
uv venv
uv pip install -e .Inspect Available Models
upscalex modelsCommand-Line Interface
16K Upscale (Default 4x Model)
upscalex upscale input.png --target 16k8K Supersampled Upscale
upscalex upscale poster.png --target 8k -o poster_8k.png2D Illustration / Anime Artwork
upscalex upscale graphic.png --model realesrgan-x4plus-anime --target 8kImage and Print Sizing Inspection
upscalex info input.pngHardware and Content-Aware Model Recommendation
upscalex recommend input.pngFor complete options and arguments, see the CLI Guide.
Model Context Protocol (MCP) Integration
UpscaleX runs as a native MCP server over stdio, enabling AI agents (Claude Desktop, Cursor, Antigravity, Windsurf, Zed) to inspect image metadata, evaluate print viability, and execute upscaling autonomously.
Server Invocation
# Standalone entrypoint
upscalex-mcp
# Or via CLI
upscalex serveClient Configuration
Method 1: Using Pip (pip install upscalex)
A. Claude Desktop
Configuration file paths:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"upscalex": {
"command": "upscalex-mcp"
}
}
}Note: If your environment does not have global pip binaries in PATH, use explicit Python:
{
"mcpServers": {
"upscalex": {
"command": "python",
"args": ["-m", "upscalex.server"]
}
}
}B. Default / Common MCP Clients (Cursor, Antigravity, Windsurf, Claude Code)
Configuration file: mcp_config.json or .cursor/mcp.json
{
"mcpServers": {
"upscalex": {
"command": "upscalex-mcp"
}
}
}Method 2: Using Git Clone & Source Checkout
A. Claude Desktop (with uv or virtualenv)
{
"mcpServers": {
"upscalex": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/upscalex",
"upscalex-mcp"
]
}
}
}Direct virtual environment alternative (Windows / Linux / macOS):
{
"mcpServers": {
"upscalex": {
"command": "/absolute/path/to/upscalex/.venv/bin/python",
"args": ["-m", "upscalex.server"]
}
}
}(On Windows, use C:\\absolute\\path\\to\\upscalex\\.venv\\Scripts\\python.exe)
B. Default / Common MCP Clients (Cursor, Antigravity, Windsurf)
Configuration file: mcp_config.json or .cursor/mcp.json
{
"mcpServers": {
"upscalex": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/upscalex",
"upscalex-mcp"
]
}
}
}For complete tool schemas and JSON-RPC contracts, see the MCP Guide.
Model Matrix and Catalog
UpscaleX supports both pre-packaged core models and on-demand downloadable community models:
Model ID | Scale | Target Media | VRAM Requirement | Status | Description |
| 4x | Photos / Fine Art | Medium (4GB VRAM) | Installed | Flagship model for high-fidelity photography, art, and exhibition posters. |
| 4x | Anime / Illustration | Medium (4GB VRAM) | Installed | Preserves flat colors, sharp contours, and line definition in 2D illustrations. |
| 4x | Video / Fast Previews | Low (1GB-2GB / CPU) | Installed | Lightweight 4x feed-forward model for fast turnaround and low-spec systems. |
| 2x | Animation / Video | Low (1GB-2GB / CPU) | Installed | Fast 2x model for video frames, icons, and lightweight web assets. |
| 3x | Animation / Video | Low (1GB-2GB / CPU) | Installed | Fast 3x model for intermediate scaling. |
| 4x | General / Compact | Low (2GB VRAM) | Installed | Official compact general model with low memory consumption. |
| 4x | Portraits / Ultra-Detail | Medium-High (4GB-6GB) | Downloadable | Community champion for micro-textures, portraits, fabrics, and skin. |
| 4x | Clean Photorealistic | Medium-High (4GB-6GB) | Downloadable | Trained on clean photography; preserves hair, threads, and foliage. |
| 4x | Anime / Fast | Low (1GB-2GB / CPU) | Downloadable | 6-block lightweight anime model for rapid processing. |
Download Additional Models
Download models through the CLI or via the download_model MCP tool:
# Download 4x UltraSharp for portraits
upscalex download-model 4x-ultrasharp
# Download NMKD clean photo model
upscalex download-model 4x-nmkd-superscaleTesting and Verification
Run the test suite to verify model resolution calculation, CLI exit codes, and live GPU inference:
uv pip install -e ".[dev]"
uv run pytest -vAll tests must pass prior to submitting changes.
Contributing
Contributions to UpscaleX are welcome. Please read CONTRIBUTING.md for coding standards, pull request processes, and development guidelines.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Available Tools
7 toolscalculate_print_dpiCalculate Print DpiA
Calculate print fidelity (DPI) for a given physical print size and recommend whether upscaling to 8K or 16K is required.
Inputs: image_path (required), print_width_inches (required), print_height_inches (required). Returns: object
download_modelDownload ModelB
Download open-weight model files on demand from upstream mirrors into the local models directory.
Inputs: model_id (required). Returns: object
get_image_metadataGet Image MetadataA
Retrieve comprehensive image metadata including resolution, megapixels, aspect ratio, file size, color space, and print sizing at 300 DPI.
Inputs: image_path (required). Returns: object
get_system_diagnosticsGet System DiagnosticsA
Check cross-platform hardware profile, OS, CPU thread count, Vulkan status, and detected GPU acceleration hardware.
Inputs: no named parameters. Returns: object
list_available_modelsList Available ModelsA
List all supported models in the catalog with installation status, VRAM requirements, and ideal media targets.
Inputs: no named parameters. Returns: result
recommend_modelRecommend ModelB
Inspect host GPU specifications, VRAM tier, CPU threads, and image characteristics (photos vs illustrations) to recommend the optimal model, target preset, and tile size.
Inputs: image_path (required), priority. Returns: object
upscale_imageUpscale ImageA
Upscale an image to 8K, 16K, 4x, or custom resolution using UpscaleX. Automatically optimizes between Vulkan GPU acceleration and multi-threaded CPU fallback.
Inputs: image_path (required), tta, model, gpu_id, +3 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a recognizable distinct role: diagnostics, upscaling, recommendation, download, metadata, catalog listing, and DPI math. The only mild overlap is recommend_model vs list_available_models and get_image_metadata's print sizing vs calculate_print_dpi, but the descriptions make the boundaries clear enough.
All seven tools follow a strict snake_case verb_noun pattern (get_, upscale_, recommend_, download_, list_, calculate_), with no mixed conventions or vague names.
Seven tools is well-scoped for an image-upscaling service: one primary action plus the supporting discovery, setup, and inspection steps needed to use it.
The surface covers the full pipeline from hardware detection through model discovery/download and upscaling to metadata and print-fidelity checks. Minor gaps exist: no job status/progress check for long upscales and no way to remove or uninstall a downloaded model despite listing installation status.
Maintenance
Related MCP Connectors
Upscales images 2x to 4x. Apify token needed. 0.0025 USD an image, 0.004 USD a megapixel + start fee
1Image processing for AI agents: resize, convert, compress, crop, and web-ready AI-generated images.
Upscale images 2x or 4x with Real-ESRGAN AI super-resolution
Video, audio, and image processing for AI agents: convert, transcribe, upscale - 150+ operations.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze images from URLs or local files using xAI's Grok API. Provides detailed image descriptions, technical metadata extraction, and optical character recognition (OCR) capabilities.7-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to perform image processing tasks such as sprite sheet splitting, resizing, cropping, and batch operations on local images.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to analyze images and videos, and generate optimized prompts for AI video generation systems.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to remove backgrounds, compress, resize, crop, AI-upscale, and strip metadata from images entirely on the local computer, so files never leave it.MIT