# sharp-mcp

Source: https://glimind.com/server/npm%2Fsharp-mcp
Registry id: `npm/sharp-mcp`
Status: unknown

## Install

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

Claude Code:

```sh
claude mcp add sharp-mcp -- npx -y sharp-mcp
```

## Tools (8)

- `compress_image`: Compresses images with format conversion (JPEG, PNG, WebP).
- `create_session`: Creates a new session with the provided base64 image payload and returns a unique session ID.
- `create_session_by_path`: Creates a new session by reading an image from the specified absolute file path, automatically converting to base64.
- `extract_region`: Crops a rectangular region from an image.
- `get_dimensions`: Gets the dimensions and MIME type of an image stored in a session.
- `list_session`: Lists all active sessions with their session IDs, image payloads, and descriptions.
- `pick_color`: Picks the average color from a square region centered at the specified coordinates.
- `remove_background`: Removes the background from an image using ML-based segmentation, returning PNG with transparency.

Measured by Glimind (https://glimind.com): MCP handshake + tool list only, no tool is ever called. CC BY 4.0.
