io.github.Bishop81/imagedimensions-mcp

Registre officiel Recherche et web

Audit a web page's images: natural vs rendered sizes, oversized detection, and formats.

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

NPM package imagedimensions-mcp
Claude Code
claude mcp add imagedimensions-mcp -e 'IMAGEDIMENSIONS_API_BASE=<IMAGEDIMENSIONS_API_BASE>' -- npx -y imagedimensions-mcp@0.1.2
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "imagedimensions-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "imagedimensions-mcp@0.1.2"
            ],
            "env": {
                "IMAGEDIMENSIONS_API_BASE": "<IMAGEDIMENSIONS_API_BASE>"
            }
        }
    }
}

Variables d'environnement

  • IMAGEDIMENSIONS_API_BASE Override the scan API base. Defaults to https://imagedimensions.com.

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. imagedimensions-mcp
  2. Install / run
  3. Tool
  4. Why "oversized" matters
  5. Config
  6. License

imagedimensions-mcp

An MCP server that audits the images on any public web page — natural vs. rendered dimensions, oversized-image detection, and format breakdown — so AI agents (Claude, Cursor, Windsurf, etc.) can check image performance during development.

Powered by imagedimensions.com. The scan runs server-side, so no local browser or Chrome install is required.

Install / run

// Claude Desktop / any MCP client config
{
  "mcpServers": {
    "imagedimensions": {
      "command": "npx",
      "args": ["-y", "imagedimensions-mcp"]
    }
  }
}

Tool

scan_image_dimensions
ParamTypeDescription
urlstring (required)Public URL of the page to audit.
oversizedThresholdnumber (optional)Area-overshoot ratio to flag as oversized. Default 4 (≈2× per dimension).

Returns a text report plus structured content:

  • total / visible image counts and CSS-background count
  • modern-format share (WebP + AVIF)
  • format breakdown
  • the list of oversized images (natural → rendered, overshoot ratio, format, src)
  • a link to the full visual report on imagedimensions.com

Example agent uses: "Audit the images on https://example.com,"; "Which images on this page are oversized and hurting LCP?", "What % of this site's images use modern formats?"

Why "oversized" matters

An image downloaded much larger than the box it renders into wastes bandwidth and slows Largest Contentful Paint — the most common image-performance mistake on the web. See the writeup.

Config

  • IMAGEDIMENSIONS_API_BASE — override the API base (default https://imagedimensions.com).

License

MIT

Questions fréquentes

Qu'est-ce que io.github.Bishop81/imagedimensions-mcp ?

Audit a web page's images: natural vs rendered sizes, oversized detection, and formats.

Comment installer io.github.Bishop81/imagedimensions-mcp ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add imagedimensions-mcp -e 'IMAGEDIMENSIONS_API_BASE=<IMAGEDIMENSIONS_API_BASE>' -- npx -y imagedimensions-mcp@0.1.2. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour io.github.Bishop81/imagedimensions-mcp ?

Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.

io.github.Bishop81/imagedimensions-mcp est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient io.github.Bishop81/imagedimensions-mcp ?

Il est publié par Bishop81. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.