image-mcp
image-mcp
中文 | English
基于 Pillow 的本地图片处理 MCP Server(离线、无需 API key)。通过 MCP 暴露一组图片工具给 DeepSeek Harness(或其他支持 stdio MCP 的客户端):info / resize / crop / convert / compress / rotate / flip / thumbnail / watermark / effects / placeholder / overlay,共 12 个工具,模型可见工具名为 mcp__images__*。
特性
离线零成本:纯本地 Pillow 处理,不需要任何线上 API/密钥。
12 个图片工具:信息 / 缩放 / 裁剪 / 转换 / 压缩 / 旋转 / 翻转 / 缩略图 / 水印 / 特效 / 占位图 / 叠加。
协议标准:JSON-RPC 2.0、按行分隔的 stdio MCP;所有日志走 stderr(stdout 专用于协议)。
易于接入:经
@deepseek-ai/dsh-mcp-client一行配置即可挂进 DSH profile。
Related MCP server: media-mcp
安装与接入(DSH)
pip install -r requirements.txt # 或 pip install Pillow在 DSH profile 的补丁(如 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']重启 DSH 后,agent 即可调用 mcp__images__* 工具。
独立运行(无 DSH)
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | python3 image_mcp.py
# 返回 12 个工具的 schema工具一览
工具 | 说明 |
| 查看图片格式 / 尺寸 / 模式 / 大小 |
| 按宽高/比例缩放(contain / cover / fill / stretch) |
| 裁剪矩形区域 |
| 转换格式(PNG/JPEG/WEBP/GIF/BMP/TIFF) |
| 按质量重新编码压缩 |
| 旋转(可扩展画布) |
| 水平/垂直镜像 |
| 长边不超过指定尺寸的缩略图 |
| 文字水印(位置/颜色/透明度/字号) |
| 特效:灰度/棕褐/反相/模糊/锐化/对比/亮度 |
| 生成纯色占位图(可带文字) |
| 在底图上叠加另一张图(支持透明度) |
协议
传输:stdio,一行一个 JSON 对象。
版本:JSON-RPC 2.0,Protocol
2025-03-26。SERVER_NAME=dsh-image-mcp,SERVER_VERSION=0.1.0。
License
MIT © TOBYCAI
This server cannot be installed
Maintenance
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
- AlicenseNot gradedqualityCmaintenanceAn MCP server providing tools for image processing operations325PythonMIT
- AlicenseAqualityCmaintenanceAn MCP server for image and video processing that allows AI assistants to resize, convert, compress, and analyze media files locally without API keys. It supports a wide range of formats and provides tools for tasks such as metadata removal, frame extraction, and video conversion.134MIT
- AlicenseBqualityDmaintenanceA local MCP server for generating and editing images using OpenAI-compatible APIs. It provides text-to-image generation and image editing capabilities with configurable endpoints and saves output directly to local files.211MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for generating, editing, and processing images via multiple providers including Kilo, OpenRouter, OpenAI, and Gemini, with local tools for background removal, resizing, and cropping.372MIT
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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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