About Vue MCP Server
Vue MCP Server is an MCP server in the Developer Tools category: a Vue MCP server exposed as a Vite plugin.
Install
claude mcp add vue-mcp-server -- npx -y vue-mcp-servernpx -y vue-mcp-serverThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (2)
getComponentStateReturns the reactive state (refs, computed) of a component
Parameters not published.
getInspectorTreeReturns the full Vue component tree
Parameters not published.
Ask AI
Ask AI about Vue MCP Server
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
vue-mcp-server
A Vite plugin that exposes a Model Context Protocol (MCP) server for Vue applications. It lets AI agents (Cursor, Claude Desktop, etc.) inspect your running Vue app in real time — component tree, component state, and more.
Warning — This project is experimental and not production ready.
Credits
This project is heavily inspired by:
- vite-plugin-vue-mcp by Arlo (@webfansplz)
- vite-plugin-mcp by Anthony Fu (@antfu)
- vite-dev-rpc by Anthony Fu (@antfu)
Install
npm install vue-mcp-server
Setup
Add the plugin to your vite.config.ts:
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import VueMcpPlugin from "vue-mcp-server";
export default defineConfig({
plugins: [vue(), VueMcpPlugin()],
});
Start your dev server as usual (vite / npm run dev). The MCP endpoint is available at http://localhost:5173/__mcp.
Connect your AI agent
Add the MCP server to your agent's configuration. For example, in Cursor (.cursor/mcp.json):
{
"mcpServers": {
"vue-mcp": {
"url": "http://localhost:5173/__mcp"
}
}
}
Adjust the port if your Vite dev server runs on a different one.
MCP Tools
| Tool | Description | Parameters |
|---|---|---|
getInspectorTree |
Returns the full Vue component tree | — |
getComponentState |
Returns the reactive state (refs, computed) of a component | nodeId — the node ID from the inspector tree (e.g. app-1:3) |
Example workflow
- Call
getInspectorTreeto get the component tree and find thenodeIdof the component you're interested in. - Call
getComponentStatewith thatnodeIdto inspect its reactive state.
How it works
The plugin runs only in dev mode (apply: 'serve'). It:
- Injects a client runtime into your app that connects to the Vue DevTools Kit API.
- Exposes a Streamable HTTP MCP endpoint at
/__mcpvia Vite's dev server middleware. - Bridges MCP tool calls to the browser via Vite's WebSocket (HMR) channel.
License
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.