Vite Plugin Vue

Docs and learning

Vite plugin that enables a MCP server helping models to understand your Vue app better.

Your AI app calls the Vite Plugin Vue MCP server, which does the docs and learning work and sends the result back to the chat.

About Vite Plugin Vue

Vite Plugin Vue is a community MCP server from webfansplz, filed in our directory under docs and learning. Vite plugin that enables a MCP server helping models to understand your Vue app better.

At a glance

Publisher
webfansplz (community)
Runs
See the README for setup
Written in
Vue
License
MIT
GitHub stars
579

How to set up Vite Plugin Vue

  1. Follow the install steps in the Vite Plugin Vue README; it is written in Vue, so have that toolchain ready.
  2. Check the Vite Plugin Vue README for keys or settings; the registry lists none that Vite Plugin Vue requires.
  3. Add Vite Plugin Vue to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Vite Plugin Vue tools to confirm the connection.
  5. Run one read-only task with Vite Plugin Vue first, and keep your app asking before each tool call until the results look right.

Vite Plugin Vue compared with similar servers

  • Oracle3 prediction-market agent tools by YichengYang-Ethan has fewer GitHub stars than Vite Plugin Vue (574 against 579); both are community servers, and both run locally.
  • Anki by ankimcp has more GitHub stars than Vite Plugin Vue (589 against 579); both are community servers, and both run locally.
  • Polymarket Paper Trader by agent-next has fewer GitHub stars than Vite Plugin Vue (506 against 579); both are community servers, and both run locally.

Before you connect Vite Plugin Vue

  • Give Vite Plugin Vue its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Vite Plugin Vue tool call until you trust what it does with them.
  • Treat text that Vite Plugin Vue fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Vite Plugin Vue on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Vite Plugin Vue

How marketing and sales teams put Vite Plugin Vue to work, by company size. Pick the size closest to yours and start Vite Plugin Vue on one use case.

Small business

  • A small business can use Vite Plugin Vue to keep help docs and how-tos current, answering customer questions before they become tickets.
  • Owners can ask Vite Plugin Vue for up-to-date docs while setting up a tool, instead of trusting an old tutorial.
  • Vite Plugin Vue runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can connect Vite Plugin Vue so agents write from current product docs, keeping launch copy accurate.
  • Enablement teams can use Vite Plugin Vue to turn docs into training and battlecards sales actually uses.
  • Start Vite Plugin Vue on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can serve approved docs through Vite Plugin Vue, so every agent answers from the same source of truth.
  • Large orgs can use Vite Plugin Vue to keep documentation in sync across products and regions as features ship.
  • Vite Plugin Vue is a community server, so have security review the code and pin a version before Vite Plugin Vue touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Vite Plugin Vue README

From webfansplz/vite-plugin-vue-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

vite-plugin-vue-mcp

Vite plugin that enables a MCP server for your Vue app to provide information about the component tree, state, routes, and pinia tree and state.

Installation 📦

pnpm install vite-plugin-vue-mcp -D

Usage 🔨

// vite.config.ts
import { VueMcp } from 'vite-plugin-vue-mcp'

export default defineConfig({
  plugins: [VueMcp()],
})

Then the MCP server will be available at http://localhost:[port]/__mcp/sse.

If you are using Cursor, create a .cursor/mcp.json file in your project root, this plugin will automatically update it for you. For more details about the MCP, check the official Cursor documentation.

Options
export interface VueMcpOptions {
  /**
   * The host to listen on, default is `localhost`
   */
  host?: string

  /**
   * Print the MCP server URL in the console
   *
   * @default true
   */
  printUrl?: boolean

  /**
   * The MCP server info. Ingored when `mcpServer` is provided
   */
  mcpServerInfo?: McpServerInfo

  /**
   * Custom MCP server, when this is provided, the built-in MCP tools will be ignored
   */
  mcpServer?: (viteServer: ViteDevServer) => Awaitable<McpServer>

  /**
   * Setup the MCP server, this is called when the MCP server is created
   * You may also return a new MCP server to replace the default one
   */
  mcpServerSetup?: (server: McpServer, viteServer: ViteDevServer) => Awaitable<void | McpServer>

  /**
   * The path to the MCP server, default is `/__mcp`
   */
  mcpPath?: string

  /**
   * Update the address of the MCP server in the cursor config file `.cursor/mcp.json`,
   * if `.cursor` folder exists.
   *
   * @default true
   */
  updateCursorMcpJson?: boolean | {
    enabled: boolean
    /**
     * The name of the MCP server, default is `vue-mcp`
     */
    serverName?: string
  }

  /**
   * append an import to the module id ending with `appendTo` instead of adding a script into body
   * useful for projects that do not use html file as an entry
   *
   * WARNING: only set this if you know exactly what it does.
   * @default ''
   */
  appendTo?: string | RegExp
}

Features/Tools ✨

Get Component Tree

get-component-tree: Get the Vue component tree.

Get Component State

get-component-state: Get the state of a component (input: componentName).

Edit Component State

edit-component-state: Edit the state of a component (input: componentName, path, value, valueType).

Highlight Component

highlight-component: Highlight a component (input: componentName).

Get Routes

get-router-info: Get the Vue router info of the application.

Get Pinia Tree

get-pinia-tree: Get the Pinia tree of the application.

Get Pinia State

get-pinia-state: Get the Pinia state of the application (input: storeName).

Architecture ⚡️

Notice 💡

Please ensure the application is running in your browser before using the features.

Credits 💖

This project is inspired by vite-plugin-mcp. Thanks to @antfu for the great work.

License 📖

MIT License © Arlo

Questions about Vite Plugin Vue

What is the Vite Plugin Vue MCP server?

Vite plugin that enables a MCP server helping models to understand your Vue app better. Vite Plugin Vue is maintained by webfansplz on GitHub at webfansplz/vite-plugin-vue-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Vite Plugin Vue MCP server?

Vite Plugin Vue doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (webfansplz/vite-plugin-vue-mcp). Like most servers, Vite Plugin Vue ends with a command or URL you paste into your AI app's MCP config.

Does Vite Plugin Vue need an API key?

The registry lists no required keys for Vite Plugin Vue. Check the Vite Plugin Vue README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Vite Plugin Vue an official MCP server?

No. Vite Plugin Vue is a community server maintained by webfansplz. Community servers can be excellent; read the code and the open issues before you give Vite Plugin Vue access to company data.

What license is Vite Plugin Vue under?

Vite Plugin Vue is released under the MIT license, according to its GitHub repository. The license covers the code of Vite Plugin Vue; the service it connects to has its own terms.