Skip to main content
Glama

Image Processing MCP Server

by duke0317

extract_colors

Extract dominant colors from an image to identify key color themes. Specify the number of colors to be extracted and the output format (PNG, JPEG, WEBP) for analysis or design purposes.

Instructions

提取图片主要颜色

Input Schema

NameRequiredDescriptionDefault
image_sourceYes图片源,可以是文件路径或base64编码的图片数据
num_colorsNo要提取的主要颜色数量
output_formatNo输出格式:PNG、JPEG、WEBP 等PNG

Input Schema (JSON Schema)

{ "properties": { "image_source": { "description": "图片源,可以是文件路径或base64编码的图片数据", "title": "Image Source", "type": "string" }, "num_colors": { "default": 5, "description": "要提取的主要颜色数量", "maximum": 20, "minimum": 1, "title": "Num Colors", "type": "integer" }, "output_format": { "default": "PNG", "description": "输出格式:PNG、JPEG、WEBP 等", "title": "Output Format", "type": "string" } }, "required": [ "image_source" ], "title": "extract_colorsArguments", "type": "object" }

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/duke0317/ps-mcp'

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