loading…
Search for a command to run...
loading…
Provides local image analysis tools using Pillow for dimensions, colors, metadata, and format conversion without external APIs.
Provides local image analysis tools using Pillow for dimensions, colors, metadata, and format conversion without external APIs.
An MCP (Model Context Protocol) server that provides image analysis tools using Pillow (PIL) — no external APIs required. All processing is done locally.
mcp>=1.0.0Pillow>=10.0.0cd image-analyzer-mcp
pip install -r requirements.txt
python server.py
This starts the server over stdio, suitable for integration with MCP clients (e.g., Claude Desktop, Cursor, etc.).
python server.py --transport sse --host 0.0.0.0 --port 8080
Requires uvicorn (pip install uvicorn).
Add to your MCP client config:
{
"mcpServers": {
"image-analyzer": {
"command": "python",
"args": ["/path/to/image-analyzer-mcp/server.py"],
"transport": "stdio"
}
}
}
analyze_imageAnalyze an image file.
| Parameter | Type | Required | Description |
|---|---|---|---|
image_path |
string | yes | Path to image file |
Returns: dimensions, format, mode, file size, aspect ratio, DPI.
analyze_image_base64Analyze an image from base64-encoded data.
| Parameter | Type | Required | Description |
|---|---|---|---|
base64_data |
string | yes | Base64-encoded image data |
Returns: Same as analyze_image, but without the file path.
get_dominant_colorsExtract dominant colors from an image.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
image_path |
string | yes | — | Path to image file |
count |
integer | no | 5 | Number of dominant colors (max 128) |
Returns: List of dominant colors with hex values, RGB components, and approximate percentage coverage.
get_image_metadataExtract EXIF metadata from an image.
| Parameter | Type | Required | Description |
|---|---|---|---|
image_path |
string | yes | Path to image file |
Returns: EXIF data including GPS coordinates, camera info, date taken, orientation, etc.
convert_imageConvert an image to a different format.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
image_path |
string | yes | — | Path to image file |
target_format |
string | yes | — | PNG, JPEG, WEBP, or GIF |
quality |
integer | no | 85 | Output quality (1-100, JPEG/WEBP only) |
Returns: Base64-encoded converted image data.
MIT
Выполни в терминале:
claude mcp add image-analyzer-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.