Server facts
vite-plugin-vue-mcp
GitHub stars
578
Last commit
Apr 20, 2025
Runtime
vue
License
MIT
Project
- Author
- webfansplz
- License
- MIT
- Category
- Developer Tools
Tech
- Runtime
- vue
- Transports
- stdio
- Remote access
- No
Activity
- GitHub stars
- 578
- Last commit
- Data as of
Tags
- Component Inspection
- Pinia
- State Editing
- Vite
- Vue
Overview
vite-plugin-vue-mcp adds an MCP interface to a Vue application through its Vite configuration. It is aimed at assistants that need information from the running application, not just static project files. Its tools expose the component tree, state for a named component, router information, and the Pinia store tree and store state. A state-editing tool accepts a component name, property path, value, and value type. Another tool highlights a component, linking the inspected component structure with the browser view. The README explicitly requires the application to be running in the browser before these features are used.
Installation is shown as a development dependency added with pnpm. Users then import VueMcp and register it in the Vite plugin list; the MCP endpoint appears under the development server's configured port using an SSE path. Cursor integration can update the project's MCP configuration, with options to control that behavior and the server name. Other options customize the listening host, endpoint path, and URL logging. Advanced integrations can modify server setup or replace the default server entirely, in which case the built-in tools are ignored. A special module-import option supports projects without an HTML entry point and carries a caution in the README. No environment-variable configuration or independent stdio launch command is supplied.
Install & configure
Requirements
- A Vue app using Vite
- pnpm
- The application running in a browser
pnpm install vite-plugin-vue-mcp -DThis command installs the plugin; it is not a standalone MCP launch. Register VueMcp() in vite.config.ts. The README endpoint template is http://localhost:[port]/__mcp/sse; replace the port with the running Vite port.
Tools
Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.
| Tool | What it does |
|---|---|
| get-component-tree | Inspect the Vue component hierarchy. |
| get-component-state | Read state for a named component. |
| edit-component-state | Change a component state value at a selected path. |
| highlight-component | Visually highlight a named component in the running app. |
| get-router-info | Inspect the application router information. |
| get-pinia-tree | Inspect the Pinia store hierarchy. |
| get-pinia-state | Read state from a named Pinia store. |
Use cases
- Inspect a running Vue app’s component hierarchy
- Read or edit a component’s state from an assistant
- Review routing information and Pinia store state
- Highlight components during browser-based debugging
Strengths
- Exposes live Vue and Pinia state alongside component structure
- Includes state editing and component highlighting
- Can update Cursor configuration automatically
Limitations
- The app must be running in a browser
- A custom server replacement disables the built-in tools
- Requires Vite plugin registration, not just package installation
vite-plugin-vue-mcp setup notes
- vite-plugin-vue-mcp records stdio only; confirm a network transport upstream before planning remote access.