drio
Open app

rollup-plugin-mcp

Source

MCP Server integration for Rollup.

Catalog onlyCatalog onlySTDIO

Overview

rollup-plugin-mcp is a plugin for Rollup that integrates an MCP (Model Context Protocol) server, allowing for enhanced interactions between AI and the build process.

To use rollup-plugin-mcp, install it via npm and add it to your Rollup configuration file (rollup.config.js) to manage an MCP server during the build process.

  • 🚀 MCP Server Integration: Easily creates and manages an MCP server during the Rollup build process. - 🧩 Bi-directional AI Integration: Enables AI to interact with and modify the build process. - 📊 Rich Module Information: Provides detailed module dependencies and error diagnostics to AI. - 🛠️ Extensible Tool Framework: Allows for the creation of custom tools to expose project-specific information. - 🔍 Build Process Integration: Integrates seamlessly at any point in the Rollup plugin chain. - 🔄 Persistent Server: Keeps the server running for continuous AI interaction even after builds. - 🌐 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 information during builds.
  3. Creating custom tools for specific project needs.

Add to your AI client

Use these steps to connect rollup-plugin-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": {
    "rollup-plugin-mcp-situ2001": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rollup-plugin-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": {
    "rollup-plugin-mcp-situ2001": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rollup-plugin-mcp-situ2001"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

{
  "mcpServers": {
    "rollup-plugin-mcp-situ2001": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rollup-plugin-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": {
    "rollup-plugin-mcp-situ2001": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rollup-plugin-mcp-situ2001"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

Can rollup-plugin-mcp be used with any Rollup project?

Yes! It can be integrated into any Rollup project with minimal configuration.

Is rollup-plugin-mcp actively maintained?

Yes! It is a work in progress and welcomes contributions.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3621,"uuid":"81f4a91d-eb84-4587-b0ed-593c610935f8","name":"rollup-plugin-mcp","title":"rollup-plugin-mcp","description":"MCP Server integration for Rollup.","avatar_url":"https://avatars.githubusercontent.com/u/28241963?v=4","created_at":"2025-03-20T16:39:17.445Z","updated_at":"2025-03-20T17:03:04.504Z","status":"created","author_name":"situ2001","author_avatar_url":"https://avatars.githubusercontent.com/u/28241963?v=4","tags":"mcp,rollup,rollup-plugin,mcp-server,modelcontextprotocol","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/situ2001/rollup-plugin-mcp","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"5\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-21 15:16:33\"}","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"}]]}]