Let Cursor or Claude Code inspect your running Vue app via MCP
Capture page screenshots and DOM trees during local Vite development
Read Pinia store state and Vue component trees from an AI client
Stream console logs and network requests into an MCP-aware editor
Drop into your Vite plugins array and an MCP-aware AI tool config is auto-written if its folder exists.
vite-plugin-vue-mcp-next is a Vite plugin that turns a running Vite dev server into a Model Context Protocol endpoint, so AI tools can inspect the Vue app you are building. When the plugin is active, the Vite dev server exposes an SSE address at /__mcp/sse and a streamable HTTP address at /__mcp/mcp, and it injects browser-side hooks that report runtime information back through those endpoints. The plugin is for local development only and is not bundled into production builds. The data the AI client can read includes the list of open pages, a trimmed DOM tree, results of DOM selector queries, a page screenshot saved to disk or returned as base64, console logs at log, info, warn, error, and debug level, captured network requests with URL, query, body, status, headers, and response body, the Vue component tree, individual component state with read and edit, current router information, and the Pinia inspector tree plus store state. Running arbitrary JavaScript through an Evaluate tool is off by default and must be turned on explicitly. Install with pnpm add -D @xiaou66/vite-plugin-vue-mcp-next and add vueMcpNext() to your Vite plugins array next to the Vue plugin. After Vite starts, the plugin auto-writes project-level MCP configuration into .cursor/mcp.json for Cursor.codex/config.toml for Codex.mcp.json for Claude Code, and .trae/mcp.json for Trae, but only when the matching tool folder already exists in the project. The npm package also ships a static SKILL.md guidance file. When the plugin sees one of the supported AI tool directories, it copies that file into the right subdirectory so the AI has a usage guide describing the recommended tool order: list_pages, then get_dom_tree or query_dom, then take_screenshot, then get_console_logs, then network inspection, then the Vue-specific tools. Many behaviours are configurable through the plugin options, including the MCP path, host, server name, network capture limits, masked headers, DOM depth, console buffer, and screenshot mode (file path or base64).
Generated 2026-05-22 · Model: sonnet-4-6 · Verify against the repo before relying on details.