mcp-image-tools
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-image-toolsConvert the image at ./photos/logo.png to JPEG format."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-image-tools
Version 8.0 — completely rewritten and revised.
Image tools for AI assistants: look at a picture, describe it, scale it, convert it, write one. Usable as a Python library or served over the Model Context Protocol.
A picture arrives as a picture.
readandresizeanswer with an image content block, not with a path or a base64 string.Large pictures are scaled down before they are handed out, to a longest edge of 1024 pixels unless the server or a call sets another limit.
Server over stdio or streamable HTTP with the MCP SDK, protocol revision 2026-07-28, OAuth for HTTP.
Installation
Python 3.12 or later.
pip install mcp-image-tools # the library
pip install "mcp-image-tools[server]" # and the MCP serverRelated MCP server: Image Recognition MCP Server
Quick start
A client that starts the server itself, over stdio:
{
"mcpServers": {
"images": {
"command": "mcp-image-tools",
"args": ["--working-dir", "/home/you/pictures"]
}
}
}Over HTTP, with OAuth:
MCP_OAUTH_ENABLED=true \
MCP_OAUTH_SERVER_URL=https://auth.example.org/ \
MCP_PUBLIC_URL=https://mcp.example.org/ \
mcp-image-tools --transport streamable-http --host 0.0.0.0 --port 12205 --path /imagesAs a library:
from pathlib import Path
from mcp_image_tools import Workspace, pictures
space = Workspace(working_dir=Path.cwd(), max_edge=800)
shown = pictures.read(space, "screenshot.png")
print(shown.image_format, shown.width, shown.height)Tools
Tool | What it does |
| Open a picture and return it as a picture, scaled to the limit |
| Format, width, height, colour mode, transparency and file size, without showing it |
| Return a picture scaled to a given longest edge |
| Write a picture in another format: PNG, JPEG, WebP, GIF, BMP |
| Write a picture from base64 data |
convert and write refuse data that is not a picture before anything is
written. Transparency is laid on white where the target format cannot carry it.
Server options
Option | Default | Meaning |
|
|
|
|
| address to bind (HTTP) |
|
| port to bind (HTTP) |
|
| path the endpoint answers on (HTTP) |
| current directory | where relative paths start |
|
| longest edge a picture is scaled to |
Authentication over HTTP is configured with MCP_OAUTH_ENABLED,
MCP_OAUTH_SERVER_URL, MCP_PUBLIC_URL and MCP_AUTH_METHOD; the server
refuses to listen beyond this machine without it.
Development
Setup, checks, release steps and the rules the code keeps: doc/development.md. Changes are listed in CHANGES.md.
License
MIT, see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Resize, convert, compress, crop, thumbnail and watermark images from your AI chat.
Image processing for AI agents: resize, convert, compress, crop, and web-ready AI-generated images.
Generate AI images, videos, music, SFX & speech in any AI assistant. Results appear inline in chat.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables text-to-image generation, style transfer, background removal, and automatic image cropping using Google's Imagen AI models through the Model Context Protocol.-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to analyze and describe images from URLs using OpenAI's vision models through the Model Context Protocol.10 npm5ISC
- AlicenseNot gradedqualityDmaintenanceEnables image generation using OpenAI's DALL-E and GPT-Image models directly through the Model Context Protocol. It allows users to create and save images with fine-grained control over parameters like size, quality, and background transparency.66 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables image processing tasks such as resizing, compressing, converting formats, cropping, and extracting metadata directly within IDEs like Cursor via the Model Context Protocol.13 npm2MIT