SuperAPI AI Directory

image-tiler-mcp-server

Tile large images and web page captures (via Chrome CDP) so vision models see full resolution, with model-specific token estimates and HTML tile previews.

Open website

About this tool

image-tiler-mcp-server is a local MCP server designed to solve the problem of detail loss caused by automatic downsampling when large language model vision capabilities process large images. It splits images or webpage screenshots into tiles, enabling the model to analyze each part at native resolution.

Purpose

  • Prevent LLM vision downsampling: When the long edge of an image exceeds a certain number of pixels (e.g., about 1568px for Claude), the model automatically compresses the image, losing a large amount of detail. This tool splits large images into multiple tiles, each kept within the model's optimal resolution range.
  • Webpage visual QA: Capture full webpage screenshots and split them, allowing the LLM to inspect layout misalignment, color errors, broken styles, and other issues at full resolution.
  • Mobile responsive testing: Capture pages with a mobile device viewport, retina scaling, and a mobile user agent, and review the mobile layout tile by tile.
  • Full-resolution image analysis: Suitable for charts, infographics, design mockups, and other images where detail must be preserved.

Main capabilities

  • Image splitting: Read image dimensions and the target model's vision configuration, calculate the optimal grid, split the image into individual tiles (WebP by default, PNG optional), and save them to disk.
  • Webpage capture: Launch via headless Chrome, scroll the page to trigger lazy-loaded images, capture a full-page screenshot (with scroll stitching when exceeding 16384px), and then feed it into the splitting process.
  • Model-specific token estimation: Provide tile count and token cost estimates for models such as Claude, GPT-4o, and Gemini, and generate an interactive HTML preview with grid overlay and tile numbering.
  • Entropy-based content classification: Each tile is classified as blank, low-detail, mixed, or high-detail, allowing the LLM to skip blank tiles and save tokens.
  • Iterative workflow: Repeatedly splitting the same source creates versioned output directories such as _v1, _v2, etc., for easy comparison.
  • On-demand tile retrieval: Retrieve up to 5 tiles in batches via the tilesDir + start/end parameters.
  • Automatic downsampling: Images whose long edge exceeds 10000px are automatically downsampled before splitting (configurable via maxDimension; set to 0 to disable).

Usage

  • Installation: Download and run via the npm package image-tiler-mcp-server, with an optional custom local alias (e.g., image-tiler).
  • Configuration: Supports Claude Code, CodeMCP clients such as x CLI, VS Code, Cursor, and Claude Desktop. You need to add the server configuration to the corresponding configuration file, and it takes effect after restarting the client.
  • Basic workflow: when calling the tool, provide only the image source, and it returns a comparison table of tile counts and token estimates for each model along with an HTML preview; then select a model preset and output directory and call it again to perform the splitting. You can also provide preset and outputDir directly on the first call to skip the comparison step.
  • Image source: supports parameters such as filePath, sourceUrl, dataUrl, and imageBase64.
  • Web page capture: providing the url parameter is enough to capture and split; if you only need a screenshot without splitting, you can stop after the comparison step.
  • Mobile testing: use the mobile: true parameter to set a 390px viewport, 2x retina scaling, and a mobile Safari user agent.
  • Docker running: the official image includes Chromium and enables --no-sandbox by default (because containers do not provide user namespaces); the sandbox can be re-enabled via -e CHROME_NO_SANDBOX=0. You need to use the -i flag (stdio transport), mount a volume, and set TILER_ALLOWED_DIRS to restrict file access.
  • Disable URL capture: setting an environment variable can completely disable Chrome and network access.

Use cases

  • Web visual QA: capture a URL, split it, let the LLM find layout issues at full resolution, fix the code, and re-capture to verify.
  • Mobile responsive testing: capture with a mobile viewport, review tile by tile, and find breakpoint issues that appear only on small screens.
  • Full-resolution image analysis: for example, a 3600x20220px full-page screenshot, which Claude would originally compress to about 279x1568, becomes 76 analyzable tiles after splitting, each maintaining its native resolution.
  • Iterative visual workflow: capture, analyze, fix, re-capture, with versioned output directories preserving the results of each iteration.

Limitations

  • Transport: only stdio is supported; the server is a single-session local process and does not listen on a network port.
  • The OpenAI configuration targets the GPT-4o / o-series vision pipeline (512px tile patches); GPT-4.1 uses a different 32x32 pixel patch pipeline and is not currently supported.
  • Gemini 3 Each image has a fixed token budget (1120 tokens); splitting increases the total token cost but preserves detail; if detail is not important, consider sending a single image.
  • URL download protection: https sources use request-filtering-agent to block requests to private IP ranges, support up to 5 redirects with SSRF filtering reapplied, and block https-to-http downgrades; http downloads bypass SSRF filtering and are for local development only. DNS rebinding is mitigated at the application layer but not fully prevented.
  • Path restrictions: TILER_ALLOWED_DIRS can optionally restrict file I/O to specified directories; when unset, there is no restriction.
  • Chrome URL capture can be completely disabled, suitable for cloud deployments with no network policy.
  • Supported formats: PNG, JPEG, WebP, TIFF, GIF.
  • Requires Node.js 20+, and Chrome must be installed or CHROME_PATH must be set.
  • Common issues: command not found, file not found (absolute path required), MCP tool unavailable (client restart required), Chrome not found, etc.