Rollup MCP Server

Visualize and analyze your bundle to quickly see which modules are taking up space.

Local serverstdioTypeScript

What is the Rollup MCP server?

Most developer tooling work still happens through a UI a human drives. Rollup MCP server moves it into the conversation instead. Visualize and analyze your bundle to quickly see which modules are taking up space.

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

The tools it exposes

The server publishes 6 tools. What each one is for:

  • Sunburst — The circular view is useful for spotting large chunks of code. Clicking an arc zooms into that section and enlarges nested arcs for inspection
  • Flamegraph — This is a top-down version of the sunburst view and should feel familiar if you use other JavaScript performance tooling
  • Treemap — This rectangular hierarchical view makes large modules easy to find quickly. It can also reveal repeated modules, because repeated content tends to
  • Network — Use this view to answer, "Why is this included?" After the force layout stabilizes, you can drag nodes around. Gray circles are tree-shaken files
  • List — Produces a YAML file with report data. This is useful to commit and track bundle changes over time
  • Markdown — Produces a Markdown report with summary tables and notes about config and size precision

What it needs from you

This package requires Node.js >= 22.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Rollup's toolset — Sunburst, Flamegraph, Treemap and 3 more — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Rollup's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
SunburstThe circular view is useful for spotting large chunks of code. Clicking an arc zooms into that section and enlarges nested arcs for inspection.
FlamegraphThis is a top-down version of the sunburst view and should feel familiar if you use other JavaScript performance tooling.
TreemapThis rectangular hierarchical view makes large modules easy to find quickly. It can also reveal repeated modules, because repeated content tends to show similar structure and relative size.
NetworkUse this view to answer, "Why is this included?" After the force layout stabilizes, you can drag nodes around. Gray circles are tree-shaken files.
ListProduces a YAML file with report data. This is useful to commit and track bundle changes over time.
MarkdownProduces a Markdown report with summary tables and notes about config and size precision.

Configuration

This package requires Node.js >= 22.

Example prompts to try

  • Use Rollup to Sunburst.
  • Use Rollup to Flamegraph.
  • Use Rollup to Treemap.

Frequently asked questions

It connects Rollup to MCP-compatible AI assistants such as Claude and Cursor, exposing 6 tools (Sunburst, Flamegraph, Treemap, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Rollup directly.