Feedback

Vite React MCP

@jazelly Claim

Basic information

Runtime
TypeScript
Category
License
MIT
Transports
stdio
Author
jazelly
Submitted by
Community
Quality
10
Stars
261

About Vite React MCP Server

# vite-react-mcp

Vite React MCP is a MCP server in the Other category listed in the AddMCP.net directory, published by jazelly. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 261 GitHub stars. Source code is hosted on github.com. Related topics: mcp, plugin, react, vite.

Setup

claude mcp add vite-react-mcp --transport http http://localhost:3000/sse

Vite React MCP config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "vite-react-mcp": {
            "type": "http",
            "url": "http://localhost:3000/sse"
        }
    }
}

Vite React MCP tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Vite React MCP?

Vite React MCP is a Vite plugin that creates an MCP (Model Context Protocol) server to help LLMs understand your React app’s component structure, states, and performance. It is designed for developers using Vite and React who want to give AI assistants live insight into their application.

How to use Vite React MCP?

Install it as a dev dependency with pnpm install vite-react-mcp -D and also install @babel/preset-react. Add ReactMCP() to your Vite config’s plugins array. For MCP integration, configure your client: in Cursor, create ./cursor/mcp.json with a url property pointing to http://localhost:3000/sse. In Claude Desktop, a workaround script is needed because it expects command‑based execution. You can also access the tools directly via window.VITE_REACT_MCP_TOOLS in the browser console.

Key features of Vite React MCP

  • Highlight a React component by its name on the page.
  • Get component props, states, and contexts as JSON.
  • Display the component tree of the current page in ASCII format.
  • Report wasted re‑renders (unnecessary re‑renders) with a time filter.
  • Works without the React DevTools extension.

Use cases of Vite React MCP

  • Debug a complex component’s current props and state during a chat session.
  • Identify and fix performance issues by listing unnecessary re‑renders.
  • Let an LLM explore your app’s component hierarchy without reading the source code.
  • Visually pinpoint a specific component on the page to verify its render state.

Frequently asked questions

1 What dependencies are required?

You need @babel/preset-react installed because the plugin traverses the AST to collect React component names.

2 How does it work without React DevTools?

It uses bippy to inject a REACT_GLOBAL_DEVTOOLS_HOOK into the window, which provides access to React’s internal state without needing the DevTools extension.

3 What transport does the MCP server use?

The server exposes an HTTP endpoint via SSE at http://localhost:3000/sse (the same port as your Vite dev server).

4 Can I use this with Claude Desktop?

Yes, but it requires a custom bridge script because Claude Desktop expects command‑based execution, while this MCP server is HTTP‑based. See this discussion for details.

5 Does the component tree include all components by default?

No. By default it shows only self‑defined components. Pass allComponent: true to get the full tree.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬