drio
Open app

unplugin-mcp

Source

A unified plugin for developers integrating MCP servers into modern JavaScript build tools, including Webpack, Rollup, Vite, and more.

Catalog onlyCatalog onlySTDIO

Overview

unplugin-mcp is a plugin designed for integrating MCP (Model Context Protocol) Server with Rollup and other build tools, facilitating AI interactions during the build process.

To use unplugin-mcp, install it via npm with pnpm add -D unplugin-mcp, and then add it to your Rollup configuration file (rollup.config.js) as a plugin.

  • 🚀 MCP Server Integration: Creates and manages an MCP server during the build process with minimal configuration. - 🧩 Bi-directional AI Integration: Allows AI to modify and control the build process while providing context about the codebase. - 📊 Rich Module Information: Exposes module dependencies and error diagnostics to AI through Rollup hooks. - 🛠️ Extensible Tool Framework: Enables the creation of custom MCP tools using the UnpluginMcpTool interface. - 🔍 Build Process Integration: Integrates seamlessly at any point in the plugin chain of build tools. - 🔄 Persistent Server: Keeps the server running in watch mode for continuous AI interaction. - 🌐 Standard Transport Layer: Utilizes HTTP and Server-Sent Events for compatibility with AI assistants.
  1. Enhancing build processes with AI-driven modifications.
  2. Providing real-time diagnostics and module information during development.
  3. Creating custom tools for specific project needs using the MCP framework.

Add to your AI client

Use these steps to connect unplugin-mcp in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "unplugin-mcp-situ2001": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-unplugin-mcp-situ2001"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "unplugin-mcp-situ2001": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-unplugin-mcp-situ2001"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "unplugin-mcp-situ2001": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-unplugin-mcp-situ2001"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "unplugin-mcp-situ2001": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-unplugin-mcp-situ2001"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "unplugin-mcp-situ2001": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-unplugin-mcp-situ2001"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "unplugin-mcp-situ2001": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-unplugin-mcp-situ2001"
      ]
    }
  }
}

FAQ

Can unplugin-mcp be used with other build tools?

Currently, it is primarily designed for Rollup, but contributions for other tools are welcome.

Is unplugin-mcp stable for production use?

It is a work in progress, and users are encouraged to contribute and report issues.

How can I contribute to unplugin-mcp?

You can open issues or pull requests on the GitHub repository to contribute.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3740,"uuid":"36472b55-7b24-4765-b48f-151916d61740","name":"unplugin-mcp","title":"unplugin-mcp","description":"A unified plugin for developers integrating MCP servers into modern JavaScript build tools, including Webpack, Rollup, Vite, and more.","avatar_url":"https://avatars.githubusercontent.com/u/28241963?v=4","created_at":"$D2025-03-21T10:38:59.732Z","updated_at":"$D2025-03-21T10:43:57.431Z","status":"created","author_name":"situ2001","author_avatar_url":"https://avatars.githubusercontent.com/u/28241963?v=4","tags":"webpack-plugin,mcp,rollup,rollup-plugin,unplugin,mcp-server,modelcontextprotocol","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/situ2001/unplugin-mcp","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/1ab0541e47ddc77a50b2a44504871acb9b5f48f4d8b138119c399c93feb7c84a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4769744875622d7265706f2d3038306631323f7374796c653d666c6174266c6f676f3d676974687562266c6f676f436f6c6f723d7768697465","type":null,"metadata":"{\"star\":\"28\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-04-24 10:44:21\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]