Skip to content
smallPict

Model Context Protocol (MCP) für KI

Integration von SmallPict in Claude Desktop, Cursor, Google Antigravity und KI-Agenten.

SmallPict unterstützt nativ den von Anthropic definierten offenen Standard Model Context Protocol (MCP), wodurch KI-Entwicklungswerkzeuge per Sprachbefehl Bildoptimierungen steuern können.

End-to-End Image Processing & Edge CDN Flow

Sub-50ms image optimization lifecycle from client upload to global edge delivery.

  1. 01

    Client Application

    WordPress / SDK / API

    Uploads raw image binary with HMAC-SHA256 signature and UUID v4 idempotency key.

    Origin Request

  2. 02

    smallPict Edge CDN

    Global Edge PoPs

    Checks global edge cache. On cache HIT, delivers AVIF/WebP in <20ms worldwide.

    Cache & Delivery

  3. 03

    SmallPict API Gateway

    Authentication & Quotas

    Validates HMAC credentials, verifies quota limits, and scopes access to customer_id.

    Auth & Scoping

  4. 04

    Optimization Engine

    High-Speed Native Encoder

    Multi-threaded quantization transcode to AVIF & WebP with no visible quality loss and much smaller files.

    Transcoding

  5. 05

    Secure Storage & Sync

    Encrypted Cloud Storage

    Stores optimized output, invalidates outdated cache tags, and warms the edge cache.

    Persistent Sync

Zero Data Interception: End-to-end HMAC validation & SHA256 integrity check

Engine: smallPict


Verfügbare MCP-Werkzeuge

ToolBeschreibungWichtigste Parameter
smallpict_optimizeOptimiert lokale oder entfernte Bilder in AVIF/WebP.path, url, format, quality, max_width
smallpict_get_quotaFragt das verbleibende Kontingent und den Verbrauch ab.Keine (nutzt konfigurierten Schlüssel)
smallpict_purge_cdnInvalidiert Assets im globalen SmallPict Edge-Cache.urls (Liste von URLs)

Konfiguration für KI-Clients

1. Claude Desktop

In Ihrer Datei claude_desktop_config.json:

JSON
{  "mcpServers": {    "smallpict": {      "command": "npx",      "args": [        "-y",        "@smallpict/mcp"      ],      "env": {        "SMALLPICT_API_KEY": "sp_sdk_your_key_here"      }    }  }}

2. Cursor IDE

Unter Cursor Settings > Features > MCP:

  • Name: SmallPict
  • Typ: command
  • Befehl: npx -y @smallpict/mcp
  • Variable: SMALLPICT_API_KEY=sp_sdk_your_key_here

3. Google Antigravity

In der Konfigurationsdatei (~/.gemini/antigravity/mcp/smallpict.json):

JSON
{  "command": "npx",  "args": [    "-y",    "@smallpict/mcp"  ],  "env": {    "SMALLPICT_API_KEY": "sp_sdk_your_key_here"  }}