Skip to content

Connect Storybook to Cline

Workshop for building and documenting UI components in isolation. Its MCP addon lets agents look up documented components, preview stories and run component tests.

MCP serverOfficialChecked 2026-11-16

Before you start

  • Cline installed (see its MCP documentation (opens in a new tab)).
  • Storybook is available on macOS, Windows and Linux. Keep its desktop app open while you work.
  • Add the addon with npx storybook add @storybook/addon-mcp, then start Storybook; the server runs at http://localhost:6006/mcp (change the port if yours differs). The docs tools need features: { componentsManifest: true } in .storybook/main.ts and a React, Angular (Vite) or Vue (Vite) framework. Storybook's AI features are in preview.
  1. Step 1: Add Storybook to Cline

    Add it in your editor

    In Cline, open the MCP Servers panel, choose Configure, click Configure MCP Servers and add this to the file that opens.

    cline_mcp_settings.json
    {
      "mcpServers": {
        "storybook": {
          "type": "streamableHttp",
          "url": "http://localhost:6006/mcp"
        }
      }
    }

    Or add it to the Cline CLI

    Saves the server to the Cline CLI's own settings. The editor extension keeps a separate list.

    Terminal
    cline mcp add storybook http://localhost:6006/mcp --transport http --yes
    Good to know
    • The desktop app must be open for the server to respond.
  2. Step 2: Check it's connected

    Terminal
    cline config mcp

    In VS Code or JetBrains, open the MCP Servers panel in Cline and check the server is listed with its tools.

  3. Step 3: Try a first request

    Ask Cline something that only works with Storybook connected:

    Say to Cline
    List the components documented in our Storybook and show me the props of the Button component.

If it doesn't work

  • In the editor, open the MCP Servers panel, choose Configure and click Configure MCP Servers to edit cline_mcp_settings.json.
  • The Cline CLI keeps its own list in ~/.cline/data/settings/cline_mcp_settings.json, separate from the editor's.
  • Remote servers need "type": "streamableHttp". Without it, Cline falls back to the older SSE transport.