
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.
概览
一个 MCP 服务器,用于审计公开网页上的图片,报告原始尺寸与渲染尺寸、过大图片以及格式分布。
- 可以做什么
- 扫描公开页面 URL,获得文本报告和结构化结果,并可用可选阈值标记过大图片。查看图片总数、可见图片数、CSS 背景图数量、现代格式占比和格式分布。列出过大图片的原始与渲染尺寸、超出比例、格式和来源,并附完整可视化报告链接。
- 适用场景
- 适合在前端或性能优化工作中,让助手检查页面图片是否过大或格式不佳,例如排查最大内容绘制(LCP)问题时使用。
- 运行要求
- 通过 npx 在本地运行,需要 Node.js。扫描由 imagedimensions.com 在服务端完成,因此需要网络访问,无需本地浏览器。可选变量 IMAGEDIMENSIONS_API_BASE 可覆盖 API 地址。
安装
在 SourceWeft 中
- 打开 控制台中的 Imagedimensions Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
Tool
scan_image_dimensions
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 (defaulthttps://imagedimensions.com).
License
MIT
来源:README.md,提交 832a88c
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
