Vite MCP Server
Requires Node.js 20 or higher to run the MCP server and connect to Vite development environments.
Leverages Puppeteer for browser automation to capture screenshots, monitor console logs, inspect element properties, track network requests, and create checkpoints for visual verification during Vite development.
Integrates with Vite's Hot Module Replacement (HMR) system to enable real-time code updates. Allows monitoring HMR events, connecting to a running Vite dev server, and observing live updates when code is modified.
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., "@Vite MCP Server capture a screenshot of the homepage and check the HMR status"
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.
Blowback
Vite MCP Server is now Blowback
Blowback aims to support various FE development servers, not only Vite
A Model Context Protocol (MCP) server that integrates FE development servers with AI tools like Claude Desktop and Cursor.
How to Use
Command (Claude Code):
claude mcp add blowback -s project -e PROJECT_ROOT=/path/to/your/project -- npx -y blowback-contextOr use json configuration:
Claude Code:
{PROJECT_ROOT}/.mcp.jsonCursor:
{PROJECT_ROOT}/.cursor/mcp.json
{
"mcpServers": {
"blowback": {
"command": "npx",
"args": ["-y", "blowback-context"],
"env": {
"PROJECT_ROOT": "/path/to/your/project"
}
}
}
}Environment Variables
PROJECT_ROOT: Project root path (optional, defaults to current working directory)ENABLE_BASE64: Include base64 encoded images in tool responses (default: false / affects token usage and context window when enabled)
Related MCP server: Blowback
Key Features
Integration of local development server with MCP server
Browser console log capture and transmission via MCP
Checkpoint-based log management
Screenshot capture and SQLite database management
HMR (Hot Module Replacement) event monitoring
Browser automation and element inspection
init Prompt
The init prompt provides guidance to AI assistants on how to effectively use the following features:
Cursor Chat does not support MCP prompt functionality, so this feature is not available. (Claude Code recommended) If needed, manually input the following prompt:
You can use checkpoint features by inserting
<meta name="__mcp_checkpoint" data-id="">into the head to create a named snapshot of the current state. The data-id attribute is a unique identifier for the checkpoint.Console logs generated in the browser while a checkpoint is active are tagged with the checkpoint ID and can be queried individually.
Note: In some development environments, hot reload is triggered when files are saved, so carefully consider the sequence between meta tag changes and the changes you want to observe. Make sure to set the checkpoint meta tag before making the changes you want to track.
You can use the capture-screenshot tool to take screenshots. The captured screenshots are stored in the @.mcp_screenshot/ directory.
Tools
HMR Tools
Tool Name | Description |
| Retrieves recent HMR events |
| Checks the HMR status |
Note: HMR connection is optional, not required. HMR event monitoring starts automatically when the browser is launched.
Browser Tools
Tool Name | Description |
| Starts a browser instance and navigates to the development server. HMR monitoring starts automatically |
| Captures a screenshot of the current page or a specific element. Returns screenshot ID and resource URI |
| Retrieves properties and state information of a specific element |
| Retrieves style information of a specific element |
| Retrieves dimension and position information of a specific element |
| Monitors network requests in the browser for a specified duration |
| Retrieves the HTML content of a specific element and its children |
| Retrieves console logs from the browser session with optional filtering |
| Safely executes predefined browser commands |
Help Tools
Tool Name | Description |
| Provides instructions on how to use specific features of the server |
Resources
screenshots
A resource for querying all captured screenshots. You can query screenshot reference IDs captured by the capture-screenshot tool using various criteria.
Images corresponding to reference IDs are managed in the {PROJECT_ROOT}/.mcp_screenshot/ directory.
URI:
screenshot://Returns a list of all screenshots
screenshot-by-url
A resource for querying specific screenshots based on URL path.
Note: Starting from version 1.0, Blob responses through resources are disabled by default, and file reference information is returned instead
URI template:
screenshot://{+path}Example:
screenshot://localhost:5173/aboutUse URL paths without protocol (http://, https://)
Data Storage Structure
Screenshot Storage
Screenshot images: Stored in
{PROJECT_ROOT}/.mcp_screenshot/directoryMetadata: Managed in SQLite database in temporary directory
It's recommended to add
.mcp_screenshot/directory to.gitignore
Log Management System
Captures browser console logs and saves them to files for querying
Checkpoint logs are only saved when checkpoints are active
Checkpoint System
How Checkpoints Work
Checkpoints are used to manage snapshots, logs, screenshots, etc. of specific versions
When
<meta name="__mcp_checkpoint" data-id="">is inserted into thehead, data is recorded separately using the data-id attribute as an identifier
Architecture and Data Flow
Core Components
MCP Server: Central module that exposes tools and resources to AI tools using the Model Context Protocol SDK.
Browser Automation: Uses Playwright to control Chrome for visual inspection, screenshot capture, and DOM manipulation.
Checkpoint System: Maintains snapshots of browser states for comparison and testing.
SQLite Database: Efficiently manages screenshot metadata and enables quick URL-based queries.
Data Sources and State Management
The server maintains several important data stores:
HMR Event Records: Tracks recent HMR events (updates, errors) from development server.
Console Message Logs: Captures browser console output for debugging.
Checkpoint Storage: Stores named snapshots of browser states including DOM snapshots.
Screenshot Storage: Saves images in project directory and manages metadata with SQLite.
Communication Flow
MCP Client → Development Server:
MCP Client changes the source code and development server detects the change
Development server automatically updates the browser or emits HMR events
Web Browser → MCP Server:
HMR events and console logs are captured through Playwright
MCP Server queries the current state of the browser or captures screenshots
MCP Server → MCP Client:
The server converts HMR events into structured responses
Provides tools for MCP Client to query HMR status, capture screenshots, and more
State Maintenance
The server maintains reference objects for:
Current browser and page instances
Recent HMR events
Available Tools
16 toolsbrowser-evaluateB
Evaluates JavaScript code directly in the browser context and returns the result. Supports expressions, function strings, and complex code with automatic execution handling. Can target the entire page or work with element handles for precise DOM manipulation.
Examples:
Simple expression: "document.title"
Arrow function: "() => document.querySelectorAll('a').length"
Regular function: "function() { return document.body.children.length; }"
Function with arguments: "(tag) => document.getElementsByTagName(tag).length"
Complex code: "() => { const divs = document.querySelectorAll('div'); return { count: divs.length, hasClass: divs[0]?.className }; }"
Async function: "async () => { const res = await fetch('/api'); return res.json(); }"
Inputs: function (required), args, element, contextId, +2 more.
capture-screenshotA
Captures a screenshot of the current page or a specific element. Stores the screenshot in the MCP resource system and returns a resource URI. If ENABLE_BASE64 environment variable is set to 'true', also includes base64 encoded image in the response.
Inputs: selector, url, contextId.
close-browserB
Closes a specific browser instance
Inputs: contextId (required).
execute-browser-commandsB
Executes a sequence of predefined browser commands safely. Available commands:
click: Clicks on an element matching the selector or at specified coordinates
type: Types text into an input element
wait: Waits for an element, a specified time period, or a condition
navigate: Navigates to a specified URL
select: Selects an option in a dropdown
check: Checks or unchecks a checkbox
hover: Hovers over an element
focus: Focuses an element
blur: Removes focus from an element
keypress: Simulates pressing a keyboard key
scroll: Scrolls the page or an element
getAttribute: Gets an attribute value from an element
getProperty: Gets a property value from an element
drag: Performs a drag operation from one position to another
refresh: Refreshes the current page
Note on coordinates: For all mouse-related commands (click, drag, etc.), coordinates are relative to the browser viewport where (0,0) is the top-left corner. X increases to the right, Y increases downward.
Examples are available in the schema definition.
Inputs: commands (required), timeout, contextId.
get-console-logsB
Retrieves console logs from the development server
Inputs: checkpoint, limit.
get-context-infoC
Gets detailed information about a specific browser instance
Inputs: contextId (required).
get-context-statsC
Gets usage statistics for browsers
Inputs: contextId.
get-element-dimensionsB
Retrieves dimension and position information of a specific element
Inputs: selector (required).
get-element-htmlA
Retrieves the HTML content of a specific element and its children with optional depth control
Inputs: selector (required), includeOuter, depth.
get-element-propertiesB
Retrieves properties and state information of a specific element
Inputs: selector (required), properties (required).
get-element-stylesC
Retrieves style information of a specific element
Inputs: selector (required), styleProperties (required).
get-hmr-eventsC
Retrieves recent HMR events
Inputs: limit.
how-to-useD
Description of how to use the server
Inputs: section (required).
list-browsersA
Lists all active browser instances
Inputs: type, tags, includeStats.
monitor-networkA
Monitors network requests in the browser for a specified duration
Inputs: urlPattern, duration.
start-browserB
Creates a new browser context with an auto-generated unique ID
Inputs: type, displayName, targetUrl, headless, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool has a clearly distinct purpose: browser lifecycle (start, close, list), interaction (evaluate, screenshot, command sequence), inspection (element dimensions, HTML, properties, styles), and Vite-specific (console logs, HMR events, network monitor). No ambiguous overlap.
All tool names use a consistent hyphenated lowercase verb-noun pattern (e.g., get-element-html, list-browsers, start-browser). Naming is predictable and uniform.
16 tools is slightly above the ideal range of 3-15, but the set is well-scoped for the server's dual purpose of Vite dev server interaction and browser automation, without feeling bloated.
The tool set covers the full lifecycle (start, close, list), interactions (evaluate, screenshot, command sequences), element inspection, and Vite-specific diagnostics (console logs, HMR events, network monitoring). No obvious gaps for the intended use case.
Maintenance
Related MCP Connectors
Give AI coding agents access to your Vynix visual feedback, bug reports, and AI diagnosis.
Let your AI agent build, preview and update web apps, download source and publish when you allow it.
Multiplayer AI rooms: bring your AI (Claude, ChatGPT, Cursor) into one shared room with your team.
Your AI mind directs coding agents; work reviewed against your memories: Claude Code, Codex, Cursor
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceFacilitates integration with the Cursor code editor by enabling real-time code indexing, analysis, and bi-directional communication with Claude, supporting concurrent sessions and automatic reconnection.6 npm39MIT
- AlicenseBqualityDmaintenanceIntegrates front-end development servers with AI tools, enabling browser automation, console log capture, screenshot management, and HMR event monitoring.1688 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables interactive feedback sessions in Cursor with support for multiple chat tabs, clipboard (copy/paste images), and robust connection management across multiple windows.15 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to delegate tasks to Cursor's headless agent, run adversarial reviews, and verify findings with prosecutor/advocate roles.77 npmMIT