frameshot
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@frameshot Screenshot this React button component"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
frameshot
Give your AI agent eyes. Render components with real Vite imports, Tailwind, and CSS Modules — right in your terminal or AI chat. No story files required.
Claude Code
claude mcp add frameshot -- npx frameshot-mcp@latest{
"mcpServers": {
"frameshot": {
"command": "npx",
"args": ["frameshot-mcp@latest"]
}
}
}Watch mode — live AI feedback loop
The AI edits a file, saves it, and immediately sees how it looks — without you calling anything.
watch_start({ patterns: ["src/components/Button.tsx"] })
→ renders on every save → call watch_get_latest("watch-1") to see itThe agent fixes → saves → sees → fixes again. You just watch.
Related MCP server: rendex-mcp
GitHub Action — free Chromatic alternative
Two lines. Auto-detects changed components. Posts before/after/diff screenshots directly in the PR comment.
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: kamegoro/frameshot@v0.8.0Changed .tsx, .jsx, .vue, .svelte, .astro, .mdx files detected automatically. No Storybook. No signup. Free forever.
- uses: kamegoro/frameshot@v0.8.0
with:
paths: "./src/components/*.tsx" # default: auto-detect
extensions: ".jsx,.tsx,.vue" # default: .jsx,.tsx,.vue,.svelte,.astro,.mdx
exclude: "*.test.*,*.spec.*" # default: *.test.*,*.spec.*,*.stories.*Render any component
Point to a file. Get a screenshot. Full Vite pipeline.
render_file("src/components/Dashboard.tsx")Resolves your project's real imports, Tailwind config, CSS Modules, and path aliases — not a CDN polyfill.
Using with Claude
After installing, just describe what you want:
"Render src/components/PricingCard.tsx — does it look right?"
"Refactor the layout to CSS grid and show me before/after"
"Watch Button.tsx while I edit — tell me when something looks off"Claude calls render_file, diff_component, watch_start, or any other tool automatically.
Try it without an AI client
Works standalone on any React / Vue / Svelte project:
npx frameshot render src/components/Button.tsx
npx frameshot diff src/components/Header.tsx
npx frameshot catalog src/components/ --recursiveImages display inline in iTerm2, Kitty, and Sixel terminals. Saved to .frameshot/ by default.
First run installs Playwright's Chromium (~150MB). Subsequent renders are fast.
Tools
Tool | What it does |
| Render a file via Vite — real imports, Tailwind, CSS Modules |
| Pixel diff before/after — % changed, highlighted pixels |
| Watch files — auto-render on every save |
| Get the latest render from a watch session |
| Render every component in a directory at once |
| Screenshot any URL — localhost, staging, prod |
| Mobile + tablet + desktop in one call |
| Light + dark mode side by side |
| axe-core accessibility audit (WCAG violations) |
| Render a self-contained code snippet |
Tool | What it does |
| Render a project file with full Vite dependency resolution |
| Render a self-contained snippet → screenshot |
| Screenshot any URL with retry and network idle wait |
| Mobile + tablet + desktop in one call |
| Multiple prop/state variants at once |
| Light + dark mode side by side |
| Simulate click/hover/type, then screenshot |
| Multiple snippets in a labeled grid |
| Viewport × theme matrix in one call |
| Multi-frame CSS animation capture |
| Before/after pixel diff with % changed |
| Compare render against a reference image (Figma QA) |
| axe-core accessibility audit |
| DOM count, depth, render timing |
| Render all components in a directory |
| Save a render as named baseline |
| Compare current render against saved baseline |
| List all saved snapshots |
| Start watching files — renders on every save |
| Stop a watch session |
| Get the latest rendered screenshot from a session |
| List active watch sessions |
Performance
Scenario | Time |
Warm render (Vite server cached) | ~200–500ms |
CDN fallback (no Vite) | ~120ms |
Cold start (first render) | ~1–3s |
Subsequent renders (same session) | ~200ms |
Vite server is cached per project root. Browser pool stays warm between MCP calls.
vs. alternatives
Storybook | Chromatic | Browser MCP | frameshot | |
Setup | Stories + config | SaaS signup | Browser install |
|
Speed | Dev server startup | Cloud round-trip | 2–5s | ~200ms warm |
Cost | Free (labor cost) | $149–800+/mo | Free | Free forever |
Story files needed | Yes | Yes | No | No |
Real imports resolved | Via Storybook | Via Storybook | No | Via Vite |
Works offline | Yes | No | Yes | Yes |
Watch mode | No | No | No | Yes |
AI-native (MCP) | No | No | Full-page only | Component-level |
Development
git clone https://github.com/kamegoro/frameshot.git
cd frameshot && npm install
npx playwright install chromium
npm run build && npm testSee CONTRIBUTING.md for architecture details.
MIT © kamegoro
Available Tools
22 toolsaudit_a11yA
Run an accessibility audit (axe-core) on a rendered component. Returns WCAG violations with impact level, description, and affected HTML nodes. Use this to catch a11y issues before shipping.
Inputs: code (required), framework, width, height.
capture_animationB
Capture multiple frames of a CSS animation or transition over time. Returns sequential screenshots to verify animation behavior, timing, and smoothness.
Inputs: code (required), framework, frames, duration, +2 more.
diff_componentA
Visual regression test: render before/after code and return a pixel diff image with percentage changed. Use this during refactoring to catch unintended visual changes.
Inputs: before (required), after (required), framework, width, +1 more.
diff_referenceA
Compare rendered component output against a reference image (e.g. from Figma export or previous snapshot). Returns pixel diff percentage and pass/fail status. Use this for design QA — verify your component matches the design.
Inputs: code (required), referenceImage (required), framework, width, +4 more.
perf_auditA
Analyze component performance: DOM element count, tree depth, render time, script/stylesheet count. Use this to catch bloated components before they ship.
Inputs: code (required), framework, width, height.
render_catalogA
Scan a directory for component files (.jsx/.tsx/.vue/.svelte/.html) and render a screenshot of each. Returns a visual catalog — like Storybook but zero-config. Use this to quickly audit all components in a folder.
Inputs: directory (required), recursive, width, height, +2 more.
render_componentA
Instantly render a React/Vue/HTML component and return screenshots across browser engines. Zero setup needed — just pass your code. Tailwind CSS is built-in. Use this to visually verify UI code without starting a dev server.
Inputs: code (required), framework, engines, width, +7 more.
render_fileA
Render a component file with full dependency resolution. Uses your project's Vite config to resolve imports, path aliases, CSS modules, and node_modules. Falls back to CDN-based rendering if Vite is unavailable. Auto-detects framework from file extension.
Inputs: path (required), props, width, height, +5 more.
render_gridA
Render multiple code snippets in a grid layout and return a single combined image. Use this to compare components side-by-side (e.g. design system overview, theme comparison).
Inputs: cells (required), framework, columns, cellWidth, +1 more.
render_interactionA
Render a component, simulate user interactions (click, hover, focus, type), then screenshot the result. Use this to verify hover states, dropdowns, modals, form inputs.
Inputs: code (required), interactions (required), framework, width, +1 more.
render_matrixB
Render a component across multiple viewports AND themes in one call. Returns a grid of screenshots (viewports x themes) for comprehensive responsive + theme verification.
Inputs: code (required), framework, viewports, themes, +2 more.
render_responsiveA
Render a component at mobile, tablet, and desktop sizes in one call. Returns 3 screenshots for responsive verification.
Inputs: code (required), framework, devices.
render_themeA
Render a component in both light and dark mode side-by-side. Returns 2 labeled screenshots for quick theme verification.
Inputs: code (required), framework, width, height.
render_variantsA
Render multiple variants of a component (different props/states) in one call. Returns a screenshot for each variant. Use this to verify buttons in all states, theme variations, etc.
Inputs: code (required), variants (required), framework, width, +1 more.
screenshot_urlA
Take a screenshot of a URL (e.g. localhost:3000) across multiple browser engines in parallel. Supports waiting for specific elements and retry with exponential backoff for dev servers that may be slow to start.
Inputs: url (required), engines, width, height, +4 more.
snapshot_checkA
Render a component and compare against a previously saved snapshot. Returns pixel diff and pass/fail. Use this after making changes to verify no visual regression.
Inputs: name (required), code (required), framework, width, +3 more.
snapshot_listA
List all saved snapshots with their names and timestamps.
Inputs: no named parameters.
snapshot_saveA
Render a component and save the screenshot as a named snapshot. Use this to establish a baseline before making changes. Later use snapshot_check to detect visual regressions.
Inputs: name (required), code (required), framework, width, +3 more.
watch_get_latestA
Get the latest rendered screenshot from a watch session. Call this after receiving a watch notification to see the current state of the component.
Inputs: id (required).
watch_listA
List all currently active file watch sessions.
Inputs: no named parameters.
watch_startA
Start watching component files for changes. On every save, the component is automatically rendered and you will receive a notification — call watch_get_latest(id) to retrieve the rendered screenshot. Use this to create a live feedback loop while editing UI — the AI sees each change without you needing to call render_file manually.
Inputs: patterns (required), props.
watch_stopA
Stop a running file watcher started with watch_start.
Inputs: id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Most tools have distinct responsibilities (render vs diff vs snapshot vs watch), and the render_* variants are separated by output type. However, render_component and render_file overlap as ways to render component code, and render_grid/render_matrix could be confused when comparing multiple views.
Tools overwhelmingly follow a predictable verb_noun pattern (render_, snapshot_, watch_, diff_). The main deviation is perf_audit, which reverses the verb_noun order used by audit_a11y, but the pattern remains readable.
22 tools is on the heavy side. While each tool has a plausible purpose, many render_* variants (responsive, theme, variants, grid, matrix) could be consolidated into a single parameterized render tool.
The surface covers the full visual QA loop: render, interact, compare, snapshot, audit, and watch. Minor gaps exist—there is no snapshot deletion or management beyond listing, and no way to control browser engines—but these do not create dead ends.
Maintenance
Related MCP Connectors
Hosted browser for AI agents: screenshots, post-JS DOM, console, WCAG. No install, no API key.
Cloud browser, web extraction, screenshots, and remote CDP tools for AI agents.
Screenshot, PDF and Open Graph image API for AI agents: capture pages, render PDFs, make OG images.
Generate images, GIFs, videos, and PDFs from HTML, URLs, or templates — from your AI agent.
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceEnables AI tools to interact with browsers for enhanced frontend development, providing context to LLMs through tools like API call analysis, screenshots, element selection, and documentation ingestion.99 npm10-
- AlicenseAqualityBmaintenanceCapture screenshots, generate PDFs, and render HTML to images via AI agents. Supports batch capture, geo-targeting, async webhooks, and CSS/JS injection.1144 npm6MIT
- AlicenseNot gradedqualityBmaintenanceProvides AI agents with isolated virtual desktops containing a real Chromium browser, enabling them to see, click, type, and navigate like a human, with features like snapshots and remote control.26AGPL 3.0
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to automate and debug real Chromium browsers with capabilities like screenshots, video recording, performance analysis, visual regression testing, and OCR text extraction.13-