Skip to main content

MCP Image Zoom-In Tool

A Model Context Protocol (MCP) server that provides image zoom-in capabilities for AI models.

Features

  • Image Cropping: Crop specific regions from images using bounding box coordinates
  • Smart Resizing: Automatically resize cropped images for Vision Transformer compatibility
  • Multiple Input Sources: Support for URLs, local files, and base64 encoded images
  • Relative Coordinates: Use normalized [0, 1000] coordinate system

Installation

# Using uvx (recommended for MCP)
uvx mcp-image-zoom

# Using pip
pip install mcp-image-zoom

Usage

As MCP Server

Run the server directly:

mcp-image-zoom

MCP Configuration

Add to your MCP client configuration:

{
  "mcpServers": {
    "image-zoom": {
      "command": "uvx",
      "args": ["mcp-image-zoom"]
    }
  }
}

Available Tools

image_zoom_in

Zoom in on a specific region of an image.

Parameters:

  • image_source (string): Image URL, file path, or base64 string
  • bbox_x1 (number): Left edge (0-1000)
  • bbox_y1 (number): Top edge (0-1000)
  • bbox_x2 (number): Right edge (0-1000)
  • bbox_y2 (number): Bottom edge (0-1000)
  • label (string, optional): Region label

Returns:

  • cropped_image: Base64 encoded cropped image
  • original_size: [width, height]
  • crop_region: [x1, y1, x2, y2] in pixels
  • output_size: [width, height] of output

get_image_info

Get basic information about an image.

Parameters:

  • image_source (string): Image URL, file path, or base64 string

Returns:

  • width, height: Image dimensions
  • format: Image format
  • mode: Color mode

Coordinate System

The tool uses relative coordinates [0, 1000]:

  • (0, 0) = top-left corner
  • (1000, 1000) = bottom-right corner

Example: To crop the center-right region:

{
  "bbox_x1": 500,
  "bbox_y1": 250,
  "bbox_x2": 1000,
  "bbox_y2": 750
}

License

Apache-2.0

Metadata

Release files for mcp-image-zoom 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-image-zoom 0.1.1
File Size Uploaded Provenance
mcp_image_zoom-0.1.1.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-image-zoom 0.1.1
File Interpreter ABI Platform
mcp_image_zoom-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / mcp_image_zoom-0.1.1.tar.gz

Download URL mcp_image_zoom-0.1.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b73a1d9c44d10f5db8f4c1f7acef8aeae47d42be1b8f701557648263fa569a63
BLAKE2b-256 checksum
How to use checksums
3b03098fa89b3539d21f5aa6694ff79a0475d165f3e0b357e76da0b3d9e63b77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / mcp_image_zoom-0.1.1-py3-none-any.whl

Download URL mcp_image_zoom-0.1.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e27a60ccb58b6d6fc81e491a478b49ec090c3577d2412e3b8a82a40a7fa54c42
BLAKE2b-256 checksum
How to use checksums
d711ef047ab19457aff0e5f13861696281537b71a9dc8456e875f55b4b6eda86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for mcp-image-zoom 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page