Vite MCP Plugin

v1.0.0Developer Toolsstable

Pluggable Vite MCP plugin that brings client-side tools to your existing Vite setup

vite-plugin-mcp-client-toolsmcpai-integration
Share:
16
Stars
0
Downloads
0
Weekly
0/5

What is Vite MCP Plugin?

Vite MCP Plugin is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to pluggable vite mcp plugin that brings client-side tools to your existing vite setup

Pluggable Vite MCP plugin that brings client-side tools to your existing Vite setup

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Pluggable Vite MCP plugin that brings client-side tools to y

Use Cases

Add client-side MCP tools to your existing Vite setup.
atesgoral

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMar 27, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx vite-plugin-mcp-client-tools

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Vite MCP Plugin

vite-plugin-mcp-client-tools is a Vite plugin that exposes client-side browser tools to AI assistants through the Model Context Protocol, turning your running Vite dev server into an MCP endpoint. It ships two built-in tools: one for capturing screenshots of the browser tab and one for reading the browser console log, enabling AI agents to see your UI and debug frontend issues in real time. Frontend developers use it to give AI coding assistants live visibility into what the app looks like and what errors are appearing in the browser without manual copy-paste.

Prerequisites

  • Node.js 16+ installed
  • Vite 4.0+ configured in your project
  • A modern browser supporting the Screen Capture API (Chrome or Edge recommended)
  • An MCP-compatible client that supports HTTP/SSE connections (Claude Code, VS Code)
1

Install the plugin

Install vite-plugin-mcp-client-tools as a development dependency in your Vite project.

npm install vite-plugin-mcp-client-tools
2

Add the plugin to vite.config.js

Import viteMcpPlugin and the tools you want to expose, then add the plugin to your Vite config. Both readConsoleTool and takeScreenshotTool are included.

import { defineConfig } from "vite";
import { viteMcpPlugin } from "vite-plugin-mcp-client-tools";
import { readConsoleTool } from "vite-plugin-mcp-client-tools/tools/read-console";
import { takeScreenshotTool } from "vite-plugin-mcp-client-tools/tools/take-screenshot";

export default defineConfig({
  plugins: [
    viteMcpPlugin({
      tools: [readConsoleTool, takeScreenshotTool],
    }),
  ],
});
3

Start your Vite dev server

Run the Vite dev server as usual. The MCP endpoint is automatically served at http://localhost:5173/mcp (adjust the port to match your Vite config).

npm run dev
4

Configure your MCP client to connect

Point your MCP client (e.g., Claude Code) at the Vite dev server MCP endpoint using the HTTP URL.

5

Grant screen capture permission in the browser

When the AI assistant first calls take-screenshot, your browser will prompt you to select a tab to share. Select the tab running your Vite app. The permission persists for the session.

Vite MCP Plugin Examples

Client configuration

Claude Code configuration to connect to the Vite dev server MCP endpoint. Adjust the port number to match your project.

{
  "mcpServers": {
    "vite-dev": {
      "url": "http://localhost:5173/mcp"
    }
  }
}

Prompts to try

Example prompts once the plugin is running and your AI client is connected.

- "Take a screenshot of my app and tell me if the layout looks correct"
- "Read the browser console and show me any errors or warnings"
- "Check the console logs from the last 20 entries for any React warnings"
- "Screenshot the current state of the page and describe the UI components you see"

Troubleshooting Vite MCP Plugin

The MCP endpoint at http://localhost:5173/mcp returns a 404

Confirm the viteMcpPlugin is correctly added to the plugins array in vite.config.js and the dev server was restarted after the config change. Also verify the port number matches your actual Vite dev server port.

take-screenshot fails or returns a blank image

The Screen Capture API requires a browser permission prompt. Make sure you are using Chrome or Edge (Firefox has limited support). If the prompt was dismissed, reload the page and try again to trigger the permission dialog.

read-console returns no entries even though errors are visible in DevTools

The plugin intercepts console calls made after it is initialized. Console messages that occurred before the page loaded will not appear. Reproduce the error after the connection is established, or use the tail parameter to limit the window of captured logs.

Frequently Asked Questions about Vite MCP Plugin

What is Vite MCP Plugin?

Vite MCP Plugin is a Model Context Protocol (MCP) server that pluggable vite mcp plugin that brings client-side tools to your existing vite setup It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Vite MCP Plugin?

Follow the installation instructions on the Vite MCP Plugin GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Vite MCP Plugin?

Vite MCP Plugin works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Vite MCP Plugin free to use?

Yes, Vite MCP Plugin is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "vite-plugin-mcp-client-tools": { "command": "npx", "args": ["-y", "vite-plugin-mcp-client-tools"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Vite MCP Plugin?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides