sunriseapps/imagesorcery-mcp
An MCP server providing tools for image processing operations
2f77957a0671imagesorcery-mcp0.12.0 in pyproject.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 2 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 19 of 38 tools, prompts and resources could not be followed through the code
- Supply Chain: the dependency files state no exact versions the scanner could check, so it has no number
Top risks in plain words
- HIGHTool
get_metainforeads or writes any file path by design: an agent steered by prompt injection can use it that way.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it only the folder it needs
get_metainfocan read or write any file path. Mount a single project folder, read-only where you can. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
get_metainfo, switch them off. - Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 34 tools, 2 prompts, 2 resources. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
config, get_metainfo, list_modelsdetect, findNo tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files3 tools · config, get_metainfo, list_models
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (38: 34 tools, 2 prompts, 2 resources)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
get_metainfotool Get metadata information about an image file.Filesoutside textReads/writes files
Get metadata information about an image file.
Returns:
Dictionary containing metadata about the image (size, dimensions,
format, etc.)mcpprompt
No description.
remove-backgroundprompt Guides the AI through a comprehensive background removal workflow.
Guides the AI through a comprehensive background removal workflow.
This prompt provides a step-by-step approach to remove backgrounds from images
using object detection and masking tools. It's designed to work with the
ImageSorcery MCP server's detect and fill tools.
The workflow includes:
1. Object detection to identify the target object
2. Mask generation for precise selection
3. Background removal using fill operations
4. Optional refinement steps
Args:
image_path: Full path to the input image
target_objects: Description of what to keep (default: empty for auto-detection)
output_path: Where to save the result (auto-generated if empty)
Returns:
A detailed prompt guiding the AI through the background removal processlist_modelsresource List all available models in the models directory.Filesoutside text
List all available models in the models directory.
This resource provides information about all available models,
including their names and descriptions.mcpresource
No description.
blurtool Blur specified rectangular or polygonal areas of an image using OpenCV.
Blur specified rectangular or polygonal areas of an image using OpenCV.
This tool allows blurring multiple rectangular or polygonal areas of an image with customizable
blur strength. Each area can be a rectangle defined by a bounding box
[x1, y1, x2, y2] or a polygon defined by a list of points.
The blur_strength parameter controls the intensity of the blur effect. Higher values
result in stronger blur. It must be an odd number (default is 15).
If `invert_areas` is True, the tool will blur everything EXCEPT the specified areas.
Returns:
Path to the image with blurred areaschange_colortool Change the color palette of an image.
Change the color palette of an image.
This tool applies a predefined color transformation to an image.
Currently supported palettes are 'grayscale' and 'sepia'.
Returns:
Path to the image with the new color palette.configtool Configuration tool - docstring will be set dynamically.Filesoutside text
Configuration tool - docstring will be set dynamically.
croptool Crop an image using OpenCV's NumPy slicing approach
Crop an image using OpenCV's NumPy slicing approach
with OpenMCP's bounding box annotations.
Returns:
Path to the cropped imagedetecttool Detect objects in an image using models from Ultralytics.Env vars
Detect objects in an image using models from Ultralytics.
This tool requires pre-downloaded models. Use the download-yolo-models
command to download models before using this tool.
If objects aren't common, consider using a specialized model.
This tool can optionally return segmentation masks or polygons if a segmentation
model (e.g., one ending in '-seg.pt') is used.
When 'mask' is chosen for geometry_format, a PNG file is created for each
detected object's mask. The file path is returned in the 'mask_path' field.
Returns:
Dictionary containing the input image path and a list of detected objects.
Each object includes its class name, confidence score, and bounding box.
If return_geometry is True, it also includes a 'mask_path' (path to a PNG file) or
'polygon' (list of points).draw_arrowstool Draw arrows on an image using OpenCV.
Draw arrows on an image using OpenCV.
This tool allows adding multiple arrows to an image with customizable
start and end points, color, thickness, and tip length.
Each arrow is defined by its start point (x1, y1) and end point (x2, y2).
The 'tip_length' is relative to the arrow's length (e.g., 0.1 means 10%).
Returns:
Path to the image with drawn arrowsdraw_circlestool Draw circles on an image using OpenCV.
Draw circles on an image using OpenCV.
This tool allows adding multiple circles to an image with customizable
center, radius, color, thickness, and fill option.
Each circle is defined by its center coordinates (center_x, center_y) and radius.
Returns:
Path to the image with drawn circlesdraw_linestool Draw lines on an image using OpenCV.
Draw lines on an image using OpenCV.
This tool allows adding multiple lines to an image with customizable
start and end points, color, and thickness.
Each line is defined by its start point (x1, y1) and end point (x2, y2).
Returns:
Path to the image with drawn linesdraw_rectanglestool Draw rectangles on an image using OpenCV.
Draw rectangles on an image using OpenCV.
This tool allows adding multiple rectangles to an image with customizable
position, color, thickness, and fill option.
Each rectangle is defined by two points: (x1, y1) for the top-left corner
and (x2, y2) for the bottom-right corner.
Returns:
Path to the image with drawn rectanglesdraw_textstool Draw text on an image using OpenCV.
Draw text on an image using OpenCV.
This tool allows adding multiple text elements to an image with customizable
position, font, size, color, and thickness.
Available font_face options:
- 'FONT_HERSHEY_SIMPLEX' (default)
- 'FONT_HERSHEY_PLAIN'
- 'FONT_HERSHEY_DUPLEX'
- 'FONT_HERSHEY_COMPLEX'
- 'FONT_HERSHEY_TRIPLEX'
- 'FONT_HERSHEY_COMPLEX_SMALL'
- 'FONT_HERSHEY_SCRIPT_SIMPLEX'
- 'FONT_HERSHEY_SCRIPT_COMPLEX'
Returns:
Path to the image with drawn textfilltool Fill specified areas of an image with a color and opacity.
Fill specified areas of an image with a color and opacity.
This tool allows filling multiple areas of an image with a customizable
color and opacity. Each area can be a rectangle, a polygon, or a mask from a PNG file.
The 'opacity' parameter controls the transparency of the fill. 1.0 is fully opaque,
0.0 is fully transparent. Default is 0.5.
The 'color' is in BGR format, e.g., [255, 0, 0] for blue. Default is black.
If the `color` is set to `None`, the specified area will be made fully transparent,
effectively deleting it (similar to ImageMagick). In this case, the `opacity`
parameter is ignored.
If `invert_areas` is True, the tool will fill everything EXCEPT the specified areas.
Example usage:
{
"input_path": "/path/to/image.jpg",
"areas": [
{
"polygon": [[0, 0], [100, 0], [100, 100], [0, 100]],
"color": null, // Makes area transparent
"opacity": 1.0
}
],
"invert_areas": true, // Removes background, keeps only the polygon area
"output_path": "/path/to/output.png"
}
Returns:
Path to the image with filled areasfindtool Find objects in an image based on a text description.Env vars
Find objects in an image based on a text description.
This tool uses open-vocabulary detection models to find objects matching a text description.
It requires pre-downloaded YOLOE models that support text prompts (e.g. yoloe-11l-seg.pt).
This tool can optionally return segmentation masks or polygons.
When 'mask' is chosen for geometry_format, a PNG file is created for each
found object's mask. The file path is returned in the 'mask_path' field.
Returns:
Dictionary containing the input image path and a list of found objects.
Each object includes its confidence score and bounding box. If return_geometry
is True, it also includes a 'mask_path' (path to a PNG file) or
'polygon' (list of points).mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
mcptool
No description.
ocrtool Performs Optical Character Recognition (OCR) on an image using EasyOCR.
Performs Optical Character Recognition (OCR) on an image using EasyOCR.
This tool extracts text from images in various languages. The default language is English,
but you can specify other languages using their language codes (e.g., 'en', 'ru', 'fr', etc.).
Returns:
Dictionary containing the input image path and a list of detected text segments
with their text content, confidence scores, and bounding box coordinates.overlaytool Overlays one image on top of another, handling transparency.
Overlays one image on top of another, handling transparency.
This tool places an overlay image onto a base image at a specified (x, y)
coordinate. If the overlay image has an alpha channel (e.g., a transparent PNG),
it will be blended correctly with the base image. If the overlay extends
beyond the boundaries of the base image, it will be cropped.
Returns:
Path to the resulting image.resizetool Resize an image using OpenCV.
Resize an image using OpenCV.
The function can resize an image in three ways:
1. By specifying both width and height
2. By specifying either width or height (preserving aspect ratio)
3. By specifying a scale factor
Returns:
Path to the resized imagerotatetool Rotate an image using imutils.rotate_bound function.
Rotate an image using imutils.rotate_bound function.
The function rotates the image by the specified angle in degrees.
Positive angles represent counterclockwise rotation.
The rotate_bound function ensures the entire rotated image is visible
by automatically adjusting the output image size.
Returns:
Path to the rotated imageText the model reads (38)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
mcp tool
mcp tool
mcp tool
mcp tool
mcp tool
mcp tool
mcp tool
mcp tool
mcp tool
mcp tool
mcp tool
mcp tool
mcp tool
mcp tool
mcp tool
mcp tool
mcp tool
blur tool
Blur specified rectangular or polygonal areas of an image using OpenCV.
This tool allows blurring multiple rectangular or polygonal areas of an image with customizable
blur strength. Each area can be a rectangle defined by a bounding box
[x1, y1, x2, y2] or a polygon defined by a list of points.
The blur_strength parameter controls the intensity of the blur effect. Higher values
result in stronger blur. It must be an odd number (default is 15).
If `invert_areas` is True, the tool will blur everything EXCEPT the specified areas.
Returns:
Path to the image with blurred areaschange_color tool
Change the color palette of an image.
This tool applies a predefined color transformation to an image.
Currently supported palettes are 'grayscale' and 'sepia'.
Returns:
Path to the image with the new color palette.config tool
Configuration tool - docstring will be set dynamically.
crop tool
Crop an image using OpenCV's NumPy slicing approach
with OpenMCP's bounding box annotations.
Returns:
Path to the cropped imagedetect tool
Detect objects in an image using models from Ultralytics.
This tool requires pre-downloaded models. Use the download-yolo-models
command to download models before using this tool.
If objects aren't common, consider using a specialized model.
This tool can optionally return segmentation masks or polygons if a segmentation
model (e.g., one ending in '-seg.pt') is used.
When 'mask' is chosen for geometry_format, a PNG file is created for each
detected object's mask. The file path is returned in the 'mask_path' field.
Returns:
Dictionary containing the input image path and a list of detected objects.
Each object includes its class name, confidence score, and bounding box.
If return_geometry is True, it also includes a 'mask_path' (path to a PNG file) or
'polygon' (list of points).draw_arrows tool
Draw arrows on an image using OpenCV.
This tool allows adding multiple arrows to an image with customizable
start and end points, color, thickness, and tip length.
Each arrow is defined by its start point (x1, y1) and end point (x2, y2).
The 'tip_length' is relative to the arrow's length (e.g., 0.1 means 10%).
Returns:
Path to the image with drawn arrowsdraw_circles tool
Draw circles on an image using OpenCV.
This tool allows adding multiple circles to an image with customizable
center, radius, color, thickness, and fill option.
Each circle is defined by its center coordinates (center_x, center_y) and radius.
Returns:
Path to the image with drawn circlesdraw_lines tool
Draw lines on an image using OpenCV.
This tool allows adding multiple lines to an image with customizable
start and end points, color, and thickness.
Each line is defined by its start point (x1, y1) and end point (x2, y2).
Returns:
Path to the image with drawn linesdraw_rectangles tool
Draw rectangles on an image using OpenCV.
This tool allows adding multiple rectangles to an image with customizable
position, color, thickness, and fill option.
Each rectangle is defined by two points: (x1, y1) for the top-left corner
and (x2, y2) for the bottom-right corner.
Returns:
Path to the image with drawn rectanglesdraw_texts tool
Draw text on an image using OpenCV.
This tool allows adding multiple text elements to an image with customizable
position, font, size, color, and thickness.
Available font_face options:
- 'FONT_HERSHEY_SIMPLEX' (default)
- 'FONT_HERSHEY_PLAIN'
- 'FONT_HERSHEY_DUPLEX'
- 'FONT_HERSHEY_COMPLEX'
- 'FONT_HERSHEY_TRIPLEX'
- 'FONT_HERSHEY_COMPLEX_SMALL'
- 'FONT_HERSHEY_SCRIPT_SIMPLEX'
- 'FONT_HERSHEY_SCRIPT_COMPLEX'
Returns:
Path to the image with drawn textfill tool
Fill specified areas of an image with a color and opacity.
This tool allows filling multiple areas of an image with a customizable
color and opacity. Each area can be a rectangle, a polygon, or a mask from a PNG file.
The 'opacity' parameter controls the transparency of the fill. 1.0 is fully opaque,
0.0 is fully transparent. Default is 0.5.
The 'color' is in BGR format, e.g., [255, 0, 0] for blue. Default is black.
If the `color` is set to `None`, the specified area will be made fully transparent,
effectively deleting it (similar to ImageMagick). In this case, the `opacity`
parameter is ignored.
If `invert_areas` is True, the tool will fill everything EXCEPT the specified areas.
Example usage:
{
"input_path": "/path/to/image.jpg",
"areas": [
{
"polygon": [[0, 0], [100, 0], [100, 100], [0, 100]],
"color": null, // Makes area transparent
"opacity": 1.0
}
],
"invert_areas": true, // Removes background, keeps only the polygon area
"output_path": "/path/to/output.png"
}
Returns:
Path to the image with filled areasfind tool
Find objects in an image based on a text description.
This tool uses open-vocabulary detection models to find objects matching a text description.
It requires pre-downloaded YOLOE models that support text prompts (e.g. yoloe-11l-seg.pt).
This tool can optionally return segmentation masks or polygons.
When 'mask' is chosen for geometry_format, a PNG file is created for each
found object's mask. The file path is returned in the 'mask_path' field.
Returns:
Dictionary containing the input image path and a list of found objects.
Each object includes its confidence score and bounding box. If return_geometry
is True, it also includes a 'mask_path' (path to a PNG file) or
'polygon' (list of points).get_metainfo tool
Get metadata information about an image file.
Returns:
Dictionary containing metadata about the image (size, dimensions,
format, etc.)ocr tool
Performs Optical Character Recognition (OCR) on an image using EasyOCR.
This tool extracts text from images in various languages. The default language is English,
but you can specify other languages using their language codes (e.g., 'en', 'ru', 'fr', etc.).
Returns:
Dictionary containing the input image path and a list of detected text segments
with their text content, confidence scores, and bounding box coordinates.overlay tool
Overlays one image on top of another, handling transparency.
This tool places an overlay image onto a base image at a specified (x, y)
coordinate. If the overlay image has an alpha channel (e.g., a transparent PNG),
it will be blended correctly with the base image. If the overlay extends
beyond the boundaries of the base image, it will be cropped.
Returns:
Path to the resulting image.resize tool
Resize an image using OpenCV.
The function can resize an image in three ways:
1. By specifying both width and height
2. By specifying either width or height (preserving aspect ratio)
3. By specifying a scale factor
Returns:
Path to the resized imagerotate tool
Rotate an image using imutils.rotate_bound function.
The function rotates the image by the specified angle in degrees.
Positive angles represent counterclockwise rotation.
The rotate_bound function ensures the entire rotated image is visible
by automatically adjusting the output image size.
Returns:
Path to the rotated imageremove-background prompt
Guides the AI through a comprehensive background removal workflow.
This prompt provides a step-by-step approach to remove backgrounds from images
using object detection and masking tools. It's designed to work with the
ImageSorcery MCP server's detect and fill tools.
The workflow includes:
1. Object detection to identify the target object
2. Mask generation for precise selection
3. Background removal using fill operations
4. Optional refinement steps
Args:
image_path: Full path to the input image
target_objects: Description of what to keep (default: empty for auto-detection)
output_path: Where to save the result (auto-generated if empty)
Returns:
A detailed prompt guiding the AI through the background removal processmcp prompt
list_models resource
List all available models in the models directory.
This resource provides information about all available models,
including their names and descriptions.mcp resource
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 19 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 19 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file path HIGH1 finding in get_metainfo
- Requests any addressNo tool sends a request to an address the caller supplies — 19 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 19 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 38 capabilities; 19 more call code the scanner could not follow, where it may happen
- Tools that touch files3 of 38 capabilities touch files; 16 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 38 capabilities; 19 more call code the scanner could not follow, where it may happen
Where the code is: 38 handlers in 20 files at commit 2f77957a0671
src/imagesorcery_mcp/prompts/remove_background.pyremove-backgroundsrc/imagesorcery_mcp/resources/models.pylist_modelssrc/imagesorcery_mcp/server.pymcp, mcp, mcp, mcp, mcp, mcp, mcp, mcp, mcp, mcp, mcp, mcp +7src/imagesorcery_mcp/tools/blur.pyblursrc/imagesorcery_mcp/tools/change_color.pychange_colorsrc/imagesorcery_mcp/tools/config.pyconfigsrc/imagesorcery_mcp/tools/crop.pycropsrc/imagesorcery_mcp/tools/detect.pydetectsrc/imagesorcery_mcp/tools/draw_arrows.pydraw_arrowssrc/imagesorcery_mcp/tools/draw_circle.pydraw_circlessrc/imagesorcery_mcp/tools/draw_lines.pydraw_linessrc/imagesorcery_mcp/tools/draw_rectangle.pydraw_rectanglessrc/imagesorcery_mcp/tools/draw_text.pydraw_textssrc/imagesorcery_mcp/tools/fill.pyfillsrc/imagesorcery_mcp/tools/find.pyfindsrc/imagesorcery_mcp/tools/metainfo.pyget_metainfosrc/imagesorcery_mcp/tools/ocr.pyocrsrc/imagesorcery_mcp/tools/overlay.pyoverlaysrc/imagesorcery_mcp/tools/resize.pyresizesrc/imagesorcery_mcp/tools/rotate.pyrotate
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: pyproject.toml
- Lockfiles checked against OSVNothing could be resolved to exact versions; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- MCP SDK versionfastmcp >=2.10.0,<3.0.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 38 capabilities; 19 more call code the scanner could not follow, where it may happen
- Environment variables2 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | fastmcp >=2.10.0,<3.0.0 |
| Servers in the code | 1 (imagesorcery-mcp) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-05-19 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 6 catalogs (awesome_habitoai, awesome_wong2, github_search, glama, mcp_toplist, mcpservers_org) |
|---|---|
| License | MIT |
| Created | 2025-05-12 |
| Topics | computer-vision image-editing image-manipulation image-processing mcp mcp-server ocr opencv |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.