Imagedimensions Mcp

io.github.Bishop81由 GitHub 帳號 Bishop81 發布v0.1.2更新於 Oct 25, 2026

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

概覽

AI 產生的概覽

一個 MCP 伺服器,用來稽核公開網頁上的圖片,回報原始尺寸與呈現尺寸、過大圖片以及格式分布。

可以做什麼
掃描公開頁面網址,取得文字報告與結構化結果,並可用選用門檻標記過大圖片。檢視圖片總數、可見圖片數、CSS 背景圖數量、現代格式占比和格式分布。列出過大圖片的原始與呈現尺寸、超出比例、格式和來源,並附完整視覺化報告連結。
適用情境
適合在前端或效能調校工作中,讓助理檢查頁面圖片是否過大或格式不佳,例如排查最大內容繪製(LCP)問題時使用。
執行需求
透過 npx 在本機執行,需要 Node.js。掃描由 imagedimensions.com 在伺服器端完成,因此需要網路存取,不需本機瀏覽器。選用變數 IMAGEDIMENSIONS_API_BASE 可覆寫 API 位址。
安裝前請注意
送出的頁面網址會傳給第三方服務 imagedimensions.com 進行掃描,應避免稽核私有或內部頁面。此工具只讀取公開頁面,不會修改內容。選用的 API 位址覆寫會把伺服器指向其他端點,應確認其可信。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Imagedimensions Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

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

jsonc
// 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

來源:README.md,提交 832a88c

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分