About sunriseapps/imagesorcery-mcp
sunriseapps/imagesorcery-mcp is an MCP server published by sunriseapps in the Content category: an MCP server providing tools for image processing operations. Conduid read 17 tools from its source: blur, change_color, config, crop, detect, draw_arrows and 11 more. It is published to PyPI as imagesorcery-mcp and runs with uvx.
The repository has 339 stars and 53 forks, is licensed MIT, and its last commit was on 19 May 2026. The latest release is v0.9.0. It follows v0.12.0, and the 5 most recent releases go back to v0.10.0. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Its topics include image-editing, ocr, image-processing, image-manipulation, content and opencv.
Install
uvx imagesorcery-mcppip install imagesorcery-mcpgit clone https://github.com/sunriseapps/imagesorcery-mcpTools (17)
blurBlurs specified rectangular or polygonal areas of an image using OpenCV. Can also invert the provided areas e.g. to blur background.| Parameter | Type | Description |
|---|---|---|
| areas * | array | List of areas to blur. Each area should have: a rectangle ({'x1', 'y1', 'x2', 'y2'}) or a polygon ({'polygon': [[x,y],...]}). Optionally, include 'blur_strength' (int, odd number, default 15) for each area. |
| input_path * | string | Full path to the input image (must be a full path) |
| invert_areas | boolean | If True, blurs everything EXCEPT the specified areas. Useful for background blurring. |
| output_path | string | Full path to save the output image (must be a full path). If not provided, will use input filename with '_blurred' suffix. |
change_colorChanges the color palette of an image| Parameter | Type | Description |
|---|---|---|
| input_path * | string | Full path to the input image (must be a full path) |
| output_path | string | Full path to save the output image (must be a full path). If not provided, will use input filename with a suffix based on the palette (e.g., '_grayscale'). |
| palette * | string | The color palette to apply. Currently supports 'grayscale' and 'sepia'. |
configView and update ImageSorcery MCP configuration settings| Parameter | Type | Description |
|---|---|---|
| action | string | Action to perform: 'get' to view config, 'set' to update config, 'reset' to reset runtime overrides |
| key | string | Configuration key to get/set. Use dot notation for nested values (e.g., 'detection.confidence_threshold', 'blur.strength'). Leave empty to get/set entire config. |
| persist | boolean | Whether to persist changes to config file (only used with action='set') |
| value | any | Value to set (only used with action='set') |
cropCrops an image using OpenCV's NumPy slicing approach| Parameter | Type | Description |
|---|---|---|
| input_path * | string | Full path to the input image (must be a full path) |
| output_path | string | Full path to save the output image (must be a full path). If not provided, will use input filename with '_cropped' suffix. |
| x1 * | integer | X-coordinate of the top-left corner |
| x2 * | integer | X-coordinate of the bottom-right corner |
| y1 * | integer | Y-coordinate of the top-left corner |
| y2 * | integer | Y-coordinate of the bottom-right corner |
detectDetects objects in an image using models from Ultralytics. Can return segmentation masks (as PNG files) or polygons.| Parameter | Type | Description |
|---|---|---|
| confidence | number | Confidence threshold for detection (0.0 to 1.0). If not provided, uses config default. |
| geometry_format | string | Format for returned geometry: 'mask' or 'polygon'. |
| input_path * | string | Full path to the input image (must be a full path) |
| model_name | string | Model name to use for detection (e.g., 'yoloe-11l-seg-pf.pt', 'yolov8m.pt'). If not provided, uses config default. |
| return_geometry | boolean | If True, returns segmentation masks or polygons for detected objects. |
draw_arrowsDraws arrows on an image using OpenCV| Parameter | Type | Description |
|---|---|---|
| arrows * | array | List of arrow items to draw. Each item should have: 'x1' (int), 'y1' (int) - start point, 'x2' (int), 'y2' (int) - end point, and optionally 'color' (list of 3 ints [B,G,R]), 'thickness' (int), 'tip_length' (float, relative to arrow length) |
| input_path * | string | Full path to the input image (must be a full path) |
| output_path | string | Full path to save the output image (must be a full path). If not provided, will use input filename with '_with_arrows' suffix. |
draw_circlesDraws circles on an image using OpenCV| Parameter | Type | Description |
|---|---|---|
| circles * | array | List of circle items to draw. Each item should have: 'center_x' (int), 'center_y' (int), 'radius' (int), and optionally 'color' (list of 3 ints [B,G,R]), 'thickness' (int), 'filled' (bool) |
| input_path * | string | Full path to the input image (must be a full path) |
| output_path | string | Full path to save the output image (must be a full path). If not provided, will use input filename with '_with_circles' suffix. |
draw_linesDraws lines on an image using OpenCV| Parameter | Type | Description |
|---|---|---|
| input_path * | string | Full path to the input image (must be a full path) |
| lines * | array | List of line items to draw. Each item should have: 'x1' (int), 'y1' (int) - start point, 'x2' (int), 'y2' (int) - end point, and optionally 'color' (list of 3 ints [B,G,R]), 'thickness' (int) |
| output_path | string | Full path to save the output image (must be a full path). If not provided, will use input filename with '_with_lines' suffix. |
draw_rectanglesDraws rectangles on an image using OpenCV| Parameter | Type | Description |
|---|---|---|
| input_path * | string | Full path to the input image (must be a full path) |
| output_path | string | Full path to save the output image (must be a full path). If not provided, will use input filename with '_with_rectangles' suffix. |
| rectangles * | array | List of rectangle items to draw. Each item should have: 'x1' (int), 'y1' (int), 'x2' (int), 'y2' (int), and optionally 'color' (list of 3 ints [B,G,R]), 'thickness' (int), 'filled' (bool) |
draw_textsDraws text on an image using OpenCV| Parameter | Type | Description |
|---|---|---|
| input_path * | string | Full path to the input image (must be a full path) |
| output_path | string | Full path to save the output image (must be a full path). If not provided, will use input filename with '_with_text' suffix. |
| texts * | array | List of text items to draw. Each item should have: 'text' (string), 'x' (int), 'y' (int), and optionally 'font_scale' (float), 'color' (list of 3 ints [B,G,R]), 'thickness' (int), 'font_face' (string) |
fillFills specified rectangular, polygonal, or mask-based areas of an image with a color and opacity, or makes them transparent. Can also invert the provided areas e.g. to remove background.| Parameter | Type | Description |
|---|---|---|
| areas * | array | List of areas to fill. Each area can be a rectangle ({'x1', 'y1', 'x2', 'y2'}), a polygon ({'polygon': [[x,y],...]}), or a mask from a file ({'mask_path': 'path/to/mask.png'}). Optionally, include 'color' (list of 3 ints [B,G,R] or None, default black) and 'opacity' (float 0.0-1.0, default 0.5) INSIDE each area object. Example: [{'polygon': [[0,0], [100,0], [100,100]], 'color': [255,0,0], 'opacity': 0.5}] |
| input_path * | string | Full path to the input image (must be a full path) |
| invert_areas | boolean | If True, fills everything EXCEPT the specified areas. Useful for background removal. |
| output_path | string | Full path to save the output image (must be a full path). If not provided, will use input filename with '_filled' suffix. |
findFinds objects in an image based on a text description. Can return segmentation masks (as PNG files) or polygons.| Parameter | Type | Description |
|---|---|---|
| confidence | number | Confidence threshold for detection (0.0 to 1.0). If not provided, uses config default. |
| description * | string | Text description of the object to find |
| geometry_format | string | Format for returned geometry: 'mask' or 'polygon'. |
| input_path * | string | Full path to the input image (must be a full path) |
| model_name | string | Model name to use for finding objects (must support text prompts). If not provided, uses config default. |
| return_all_matches | boolean | If True, returns all matching objects; if False, returns only the best match |
| return_geometry | boolean | If True, returns segmentation masks or polygons for found objects. |
get_metainfoGets metadata information about an image file| Parameter | Type | Description |
|---|---|---|
| input_path * | string | Full path to the input image (must be a full path) |
ocrPerforms Optical Character Recognition (OCR) on an image using EasyOCR| Parameter | Type | Description |
|---|---|---|
| input_path * | string | Full path to the input image (must be a full path) |
| language | string | Language code for OCR (e.g., 'en', 'ru', 'fr', etc.). If not provided, uses config default. |
overlayOverlays one image on top of another, handling transparency| Parameter | Type | Description |
|---|---|---|
| base_image_path * | string | Full path to the base image (must be a full path) |
| output_path | string | Full path to save the output image (must be a full path). If not provided, will use the base image filename with '_overlaid' suffix. |
| overlay_image_path * | string | Full path to the overlay image (must be a full path). This image can have transparency. |
| x * | integer | X-coordinate of the top-left corner of the overlay image on the base image. |
| y * | integer | Y-coordinate of the top-left corner of the overlay image on the base image. |
resizeResizes an image using OpenCV| Parameter | Type | Description |
|---|---|---|
| height | integer | Target height in pixels. If None, will be calculated based on width and preserve aspect ratio |
| input_path * | string | Full path to the input image (must be a full path) |
| interpolation | string | Interpolation method: 'nearest', 'linear', 'area', 'cubic', 'lanczos'. If not provided, uses config default. |
| output_path | string | Full path to save the output image (must be a full path). If not provided, will use input filename with '_resized' suffix. |
| scale_factor | number | Scale factor to resize the image (e.g., 0.5 for half size, 2.0 for double size). Overrides width and height if provided |
| width | integer | Target width in pixels. If None, will be calculated based on height and preserve aspect ratio |
rotateRotates an image using imutils.rotate_bound function| Parameter | Type | Description |
|---|---|---|
| angle * | number | Angle of rotation in degrees (positive for counterclockwise) |
| input_path * | string | Full path to the input image (must be a full path) |
| output_path | string | Full path to save the output image (must be a full path). If not provided, will use input filename with '_rotated' suffix. |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- ✓No dynamic code executionScanned 33 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEsrc/imagesorcery_mcp/server.py:117, src/imagesorcery_mcp/server.py:117, src/imagesorcery_mcp/server.py:117
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 14 callssrc/imagesorcery_mcp/config.py:149, src/imagesorcery_mcp/logging_config.py:12, src/imagesorcery_mcp/tools/blur.py:120
- Lockfile
- None in the repository
Pattern matches on the source text of 33 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.4K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README