Image Tools - Background Removal, Upscaling & Face Restoration

Background removal, 4x upscaling, and face restoration via GPU

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
83%
命名质量
90%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~1,048token 数(工具定义)
~789 B典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 0.82%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "image-tools": {
      "url": "https://image-mcp.thankfulfield-a7857897.eastus.azurecontainerapps.io/mcp"
    }
  }
}

远程端点

https://image-mcp.thankfulfield-a7857897.eastus.azurecontainerapps.io/mcpstreamable-http
https://apim-ai-apis.azure-api.net/mcp/image/mcpstreamable-http

它能做什么

工具清单

工具(4)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢remove_background(image_base64, output_format)

Remove the background from an image. Uses BiRefNet segmentation to precisely separate foreground from background. Returns a base64-encoded image with transparent background (PNG) or white background (WebP). Sub-500ms latency on GPU. Args: image_base64: Base64-encoded image data (PNG, JPEG, or WebP). output_format: Output format -- 'png' (with transparency) or 'webp'. Returns: dict with keys: - image_base64 (str): Base64-encoded result image - format (str): Output image format - original_size (dict): Original width and height - processing_ms (int): Processing time in milliseconds

输入模式

{
  "type": "object",
  "properties": {
    "image_base64": {
      "description": "Base64-encoded image data. Supports PNG, JPEG, and WebP formats.",
      "maxLength": 20000000,
      "type": "string"
    },
    "output_format": {
      "default": "png",
      "description": "Output image format: 'png' (default, with transparency) or 'webp'",
      "type": "string"
    }
  },
  "required": [
    "image_base64"
  ]
}
🟢upscale_image(image_base64, scale)

Upscale image resolution using Real-ESRGAN. Enhances image resolution by 2x or 4x using GPU-accelerated Real-ESRGAN super-resolution. Processes in tiles (256x256) to manage VRAM. Maximum output dimension: 8192x8192. Args: image_base64: Base64-encoded image data (PNG, JPEG, or WebP). scale: Upscale factor -- 2 or 4 (default: 4). Returns: dict with keys: - image (str): Base64-encoded upscaled image - format (str): Output image format - width (int): Output width - height (int): Output height - scale (int): Scale factor applied - processing_time_ms (float): Processing time in milliseconds

输入模式

{
  "type": "object",
  "properties": {
    "image_base64": {
      "description": "Base64-encoded image data. Supports PNG, JPEG, and WebP formats.",
      "maxLength": 20000000,
      "type": "string"
    },
    "scale": {
      "default": 4,
      "description": "Upscale factor: 2 or 4 (default: 4)",
      "type": "integer"
    }
  },
  "required": [
    "image_base64"
  ]
}
🟢restore_face(image_base64, upscale, enhance_background)

Restore and enhance faces in an image using GFPGAN. Detects all faces via RetinaFace, restores quality (fixes blur, noise, compression artifacts), and pastes them back. Optionally enhances the background using Real-ESRGAN. GPU-accelerated, sub-3s latency. Args: image_base64: Base64-encoded image data containing faces (PNG, JPEG, WebP). upscale: Output upscale factor -- 1 to 4 (default: 2). enhance_background: Whether to enhance background with Real-ESRGAN (default: true). Returns: dict with keys: - image (str): Base64-encoded restored image - format (str): Output image format - width (int): Output width - height (int): Output height - upscale (int): Scale factor applied - processing_time_ms (float): Processing time in milliseconds

输入模式

{
  "type": "object",
  "properties": {
    "image_base64": {
      "description": "Base64-encoded image data containing one or more faces.",
      "maxLength": 20000000,
      "type": "string"
    },
    "upscale": {
      "default": 2,
      "description": "Output upscale factor: 1-4 (default: 2)",
      "type": "integer"
    },
    "enhance_background": {
      "default": true,
      "description": "Enhance background with Real-ESRGAN (default: true)",
      "type": "boolean"
    }
  },
  "required": [
    "image_base64"
  ]
}
🟢check_image_service

Check health status of Image API services and loaded models. Returns: dict with keys: - status (str): 'healthy' or error state - models (dict): Loaded model status per capability - version (str): API version

输入模式

{
  "type": "object",
  "properties": {}
}

社区

评价此服务器

证据

最近观测

已验证未记录版本4 个工具
已验证未记录版本4 个工具
已验证未记录版本4 个工具
已验证未记录版本4 个工具