home / mcp / mcp screenshot server
Provides a server to capture screenshots and annotate images with versatile tools for automation and integration.
Configuration
View docs{
"mcpServers": {
"aamar-shahzad-mcp-screenshot-server": {
"url": "http://localhost:8000/mcp",
"headers": {
"MCP_HOST": "0.0.0.0",
"MCP_PORT": "8000"
}
}
}
}You run the MCP Screenshot Server to capture screenshots and annotate them with a rich set of tools. It supports smart annotations, AI-assisted placement, image loading, editing, and easy exporting. This guide walks you through using it with an MCP client, installing it, and configuring common options so you can start annotating images right away.
Connect an MCP client to the server and start a session to capture screenshots and load existing images for annotation. Use the unified annotation tool to add boxes, arrows, lines, circles, text, highlights, and borders. Take advantage of flexible positioning by choosing named positions (like top-left or center), percentages, or exact pixel coordinates. Adjust anchors and offsets to precisely align annotations, and enable automatic boundary adjustments so annotations stay within the image.
Perform multiple annotations in a single operation with batch capabilities, and label regions quickly when you need to describe several areas at once. For exact, coordinate-based work, switch to pixel-perfect mode to place elements with exact x/y coordinates. You can combine AI vision models to suggest coordinates and then confirm with precise annotations for pinpoint accuracy.
Capture new screenshots in full screen, a defined region, or a specific window, and you can also load existing image files to annotate them. Once your annotations are complete, export the final image in PNG, JPG, WebP, or other supported formats, or copy the result to the clipboard for quick sharing.
Prerequisites: you should have Python and a working network environment. You may also install via alternative tooling if you prefer the container or a packaging tool.
Install using Pythonβs package manager.
pip install mcp-screenshot-serverInstall using the uv runtime (recommended for fast startup and development). Use uv add to install the package.
uv add mcp-screenshot-serverAlternatively, clone the project and install in editable mode to work with the source directly.
git clone https://github.com/aamar-shahzad/mcp-screenshot-server.git
cd mcp-screenshot-server
pip install -e .Configuration and runtime options let you run the server in different transports. The default stdio transport is suitable for Cursor AI and similar desktop workflows. You can also enable HTTP transport on port 8000 or switch to SSE transport as needed. Environment variables control the HTTP transport host and port, and you can pass these to the server as you start it.
Recommended startup commands from common usage are shown here for quick reference.
If you run into permission issues on macOS, make sure screen recording is enabled for your terminal or IDE in System Preferences. On Linux, ensure clipboard tools are installed if clipboard operations fail. When running in Docker, remember that headless mode may affect screenshot capture, and you may need to run natively for full functionality.
Capture a screenshot with the server and obtain an image identifier for further edits.
Load an existing image file into the current session for annotation.
Apply pixel-perfect annotations at exact coordinates or dimensions.
Unified annotation tool with flexible positioning and auto-adjustment.
Apply multiple annotations in a single call for efficiency.
Label multiple regions with a single command for organization.
Draw rectangular boxes with customizable colors and fill.
Draw straight lines on the image.
Draw arrows with adjustable head size and direction.
Overlay text with options for font and background.
Draw circles or ellipses on the image.
Create semi-transparent highlight regions.
Add auto-numbered callouts for step-by-step guides.
Add borders around the image.
Blur or pixelate regions to redact information.
Crop the image to a specified region.
Resize the image by scale or exact dimensions.
Rotate the image by 90/180/270 degrees.
Flip the image horizontally or vertically.
Adjust brightness for appearance tuning.
Adjust contrast for emphasis.
Add a text watermark to the image.
Undo the last annotation (up to 10 levels).
Check how many undo steps remain.
Reset auto-numbering for callouts.
List all images in the current session.
Retrieve a specific image by ID.
Create a copy of an existing image.
Remove an image from the session.
Save the image to disk in PNG, JPG, WebP, and other formats.
Quickly save to common locations like Desktop.
Copy the image to the system clipboard.
Get the image as a base64-encoded string.
Open the image in the default viewer (macOS Preview or similar).
Open any image file in the default viewer.