unplugin-mcp
by situ2001·★ 31·Score 41
A unified plugin for integrating MCP servers into JavaScript build tools like Webpack, Rollup, and Vite.
Overview
unplugin-mcp creates and manages an MCP server within build tools, enabling AI assistants to understand and control the build process. It provides bi-directional integration where AI can both receive context about the codebase and actively modify build configurations. The plugin offers several built-in tools for analyzing module dependencies, inspecting build configurations, and debugging errors, while also allowing developers to create custom tools through a simple interface.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this when you want AI assistants to understand and interact with your JavaScript build process and you're already using tools like Rollup or Webpack.
When NOT to choose this
Don't choose this if you need a production-ready solution (currently marked as work in progress), or if you're using build tools not yet supported like Vite.
Tools this server exposes
4 tools extracted from the READMEModuleToolAnalyze module dependencies and imports
BuildConfigToolInspect build configuration
BuildErrorToolDebug build errors
BundleSizeToolInspect size of bundle and its modules
Comparable tools
Installation
# Install the plugin
pnpm add -D unplugin-mcp
# or install bundler-specific one
pnpm add -D rollup-plugin-mcpFor Claude Desktop, add to your claude_desktop_config.json:
{
"mcpServers": {
"rollup": {
"url": "http://localhost:14514/mcp/sse"
}
}
}FAQ
- Which build tools are supported?
- Currently supports Rollup, Webpack, Vite, ESBuild, Rspack, and Rolldown. More are planned.
- Can I create custom MCP tools?
- Yes, you can implement the UnpluginMcpTool interface to create custom tools that expose project-specific functionality.
Compare unplugin-mcp with
Last updated · Auto-generated from public README + GitHub signals.