GS

greatsumini/sharp-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

11 stars 6 forks 品質 74 トレンド 18MIT

Image processing 🖼️ MCP server

概要

MCP (Model Context Protocol) server for image session management and processing. Provides tools for storing images in sessions and extracting image metadata and colors. - : Store base64 images in memory sessions with unique IDs - : Create sessions from image file paths (auto base64 conversion) - : List all active image sessions - : Get image dimensions and MIME type - : Extract average color from a specified region - : Remove background from images using ML-based segmentation - : Crop a rectangular region from an image - : Compress images with format conversion (JPEG, PNG, WebP) - Built with TypeScript for type safety - Uses sharp for high-performance image processing To install Sharp MCP for any client automatically via Smithery: Available clients: cursor, claude, vscode, windsurf, cline, zed, etc. Sharp MCP can be integrated with various AI coding assistants and IDEs that support the Model Context Protocol (MCP). - Node.js >= v18.0.

README

以下は原文 README の抜粋です。原文を見る。

Sharp MCP

MCP (Model Context Protocol) server for image session management and processing. Provides tools for storing images in sessions and extracting image metadata and colors.

Features

  • create_session: Store base64 images in memory sessions with unique IDs
  • create_session_by_path: Create sessions from image file paths (auto base64 conversion)
  • list_session: List all active image sessions
  • get_dimensions: Get image dimensions and MIME type
  • pick_color: Extract average color from a specified region
  • remove_background: Remove background from images using ML-based segmentation
  • extract_region: Crop a rectangular region from an image
  • compress_image: Compress images with format conversion (JPEG, PNG, WebP)
  • Built with TypeScript for type safety
  • Uses sharp for high-performance image processing

Installation

NPM

npm install -g sharp-mcp

Smithery

To install Sharp MCP for any client automatically via Smithery:

npx -y @smithery/cli@latest install sharp-mcp --client 

Available clients: cursor, claude, vscode, windsurf, cline, zed, etc.

MCP Client Integration

Sharp MCP can be integrated with various AI coding assistants and IDEs that support the Model Context Protocol (MCP).

Requirements

  • Node.js >= v18.0.0
  • An MCP-compatible client (Cursor, Claude Code, VS Code, Windsurf, etc.)

Add this to your Windsurf MCP config file:

{
  "mcpServers": {
    "sharp": {
      "command": "npx",
GitHub で README 全文を見る

インストール

npx -y sharp-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "sharp": { "command": "npx", "args": ["-y", "sharp-mcp"] } } }