Skip to main content
Glama
TOBYCAI

image-mcp

by TOBYCAI

image-mcp

中文 | English

GitHub stars Downloads Downloads@latest License MCP

A local image processing MCP Server based on Pillow (offline, no API key required). It exposes a set of image tools to DeepSeek Harness (or other stdio MCP-compatible clients) via MCP: info / resize / crop / convert / compress / rotate / flip / thumbnail / watermark / effects / placeholder / overlay12 tools in total, visible to the model as mcp__images__*.

Features

  • Offline & zero cost: Pure local Pillow processing, no online API/keys needed.

  • 12 image tools: info / resize / crop / convert / compress / rotate / flip / thumbnail / watermark / effects / placeholder / overlay.

  • Standard protocol: JSON-RPC 2.0, line-delimited stdio MCP; all logs go to stderr (stdout is reserved for the protocol).

  • Easy integration: Plug into a DSH profile with a one-line config via @deepseek-ai/dsh-mcp-client.

Related MCP server: media-mcp

Installation & Integration (DSH)

pip install -r requirements.txt   # 或 pip install Pillow

Add the following to your DSH profile patch (e.g. cordis.patch.yml):

- id: mcp-images
  name: '@deepseek-ai/dsh-mcp-client'
  config:
    serverName: images
    transport: stdio
    command: python3
    args: ['<PATH-TO>/image_mcp.py']

After restarting DSH, the agent can call the mcp__images__* tools.

Standalone Run (without DSH)

echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | python3 image_mcp.py
# 返回 12 个工具的 schema

Tools Overview

Tool

Description

info

View image format / dimensions / mode / size

resize

Resize by width/height or ratio (contain / cover / fill / stretch)

crop

Crop a rectangular region

convert

Convert format (PNG/JPEG/WEBP/GIF/BMP/TIFF)

compress

Re-encode and compress by quality

rotate

Rotate (canvas can be expanded)

flip

Mirror horizontally/vertically

thumbnail

Thumbnail with the long edge not exceeding a given size

watermark

Text watermark (position / color / opacity / font size)

effects

Effects: grayscale / sepia / invert / blur / sharpen / contrast / brightness

placeholder

Generate a solid-color placeholder (optionally with text)

overlay

Overlay another image on the base image (supports opacity)

Protocol

  • Transport: stdio, one JSON object per line.

  • Version: JSON-RPC 2.0, Protocol 2025-03-26.

  • SERVER_NAME=dsh-image-mcp, SERVER_VERSION=0.1.0.

License

MIT © TOBYCAI

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • MCP server for Midjourney AI image generation and editing

  • MCP server for Tinify image optimization — one tool, max optimization

  • MCP server for NanoBanana AI image generation and editing

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TOBYCAI/image-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server