draw_rectangles
Draws rectangles on an image using OpenCV
How to use it
draw_rectangles is exposed by the Imagesorcery MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the draw_rectangles tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Imagesorcery MCP
pip install --user pipxOther tools in Imagesorcery MCP (15)
Blurs specified rectangular or polygonal areas of an image using OpenCV. Can also invert the provided areas e.g. to blur background.
Changes the color palette of an image
Crops an image using OpenCV's NumPy slicing approach
Detects objects in an image using models from Ultralytics. Can return segmentation masks (as PNG files) or polygons.
Draws arrows on an image using OpenCV
Draws circles on an image using OpenCV
Draws lines on an image using OpenCV
Draws text on an image using OpenCV
Fills 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.
Finds objects in an image based on a text description. Can return segmentation masks (as PNG files) or polygons.
Gets metadata information about an image file
Performs Optical Character Recognition (OCR) on an image using EasyOCR
Overlays one image on top of another, handling transparency
Resizes an image using OpenCV
Rotates an image using imutils.rotatebound function