Skip to main content
Glama

MCP Server

by antfu
# vite-plugin-mcp [![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [![JSDocs][jsdocs-src]][jsdocs-href] [![License][license-src]][license-href] Vite plugin that enables a MCP server for your Vite app to provide information about your setup and modules graphs. > [!IMPORTANT] > Experimental. Not ready for production. ```ts import { defineConfig } from 'vite' import { ViteMcp } from 'vite-plugin-mcp' export default defineConfig({ plugins: [ ViteMcp() ], }) ``` Then the MCP server will be available at `http://localhost:5173/__mcp/sse`. > 💡 When using VSCode, Cursor, Windsurf, Claude Code, the module will automatically update the config files for you. > > You can configure that in the options with `updateConfig` and `updateConfigServerName`. ## Sponsors <p align="center"> <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg"> <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/> </a> </p> ## License [MIT](./LICENSE) License © [Anthony Fu](https://github.com/antfu) <!-- Badges --> [npm-version-src]: https://img.shields.io/npm/v/vite-plugin-mcp?style=flat&colorA=080f12&colorB=1fa669 [npm-version-href]: https://npmjs.com/package/vite-plugin-mcp [npm-downloads-src]: https://img.shields.io/npm/dm/vite-plugin-mcp?style=flat&colorA=080f12&colorB=1fa669 [npm-downloads-href]: https://npmjs.com/package/vite-plugin-mcp [bundle-src]: https://img.shields.io/bundlephobia/minzip/vite-plugin-mcp?style=flat&colorA=080f12&colorB=1fa669&label=minzip [bundle-href]: https://bundlephobia.com/result?p=vite-plugin-mcp [license-src]: https://img.shields.io/github/license/antfu/vite-plugin-mcp.svg?style=flat&colorA=080f12&colorB=1fa669 [license-href]: https://github.com/antfu/vite-plugin-mcp/blob/main/LICENSE [jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669 [jsdocs-href]: https://www.jsdocs.io/package/vite-plugin-mcp

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/antfu/nuxt-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server