mcp-image-tools
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Image & PDF tools for AI agents: compress, convert, resize, PDF, AI vision, pipeline.
Image and video AI tools and your own pipelines, run from any AI assistant.
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.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables text-to-image generation, style transfer, background removal, and automatic image cropping using Google's Imagen AI models through the Model Context Protocol.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze and describe images from URLs using OpenAI's vision models through the Model Context Protocol.14 npm5ISC
- AlicenseNot gradedqualityCmaintenanceEnables image processing tasks such as resizing, compressing, converting formats, cropping, and extracting metadata directly within IDEs like Cursor via the Model Context Protocol.25 npm4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to generate and edit images using Azure OpenAI's gpt-image-1 model through the Model Context Protocol.3MIT