Image Analyzer MCP Server
Provides local image analysis tools using Pillow for dimensions, colors, metadata, and format conversion without external APIs.
README
Image Analyzer MCP Server
An MCP (Model Context Protocol) server that provides image analysis tools using Pillow (PIL) — no external APIs required. All processing is done locally.
Features
- analyze_image — Get dimensions, format, color mode, file size, aspect ratio, and DPI from an image file
- analyze_image_base64 — Same analysis from a base64-encoded image string
- get_dominant_colors — Extract dominant colors as hex values with RGB components and approximate coverage percentages
- get_image_metadata — Read EXIF data including GPS coordinates, camera make/model, date taken, orientation, and more
- convert_image — Convert between PNG, JPEG, WEBP, and GIF formats, returned as base64
Requirements
- Python 3.10+
mcp>=1.0.0Pillow>=10.0.0
Installation
cd image-analyzer-mcp
pip install -r requirements.txt
Usage
Run with stdio transport (default — for MCP clients)
python server.py
This starts the server over stdio, suitable for integration with MCP clients (e.g., Claude Desktop, Cursor, etc.).
Run with SSE transport (HTTP)
python server.py --transport sse --host 0.0.0.0 --port 8080
Requires uvicorn (pip install uvicorn).
MCP Client Configuration
Add to your MCP client config:
{
"mcpServers": {
"image-analyzer": {
"command": "python",
"args": ["/path/to/image-analyzer-mcp/server.py"],
"transport": "stdio"
}
}
}
Tool Reference
analyze_image
Analyze 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_base64
Analyze 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_colors
Extract 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_metadata
Extract 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_image
Convert 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.
License
MIT
Pricing
$19/mo — https://buy.stripe.com/dRm6oJ4Hd2Jugek0wz1oI0m
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.