Skip to content

Connect Storybook to Zed

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

  • Zed 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 Zed

    Add it to your settings

    Run zed: open settings file from the command palette and add this inside the top-level object, next to your other settings.

    ~/.config/zed/settings.json
    {
      "context_servers": {
        "storybook": {
          "url": "http://localhost:6006/mcp"
        }
      }
    }
    Good to know
    • The desktop app must be open for the server to respond.
  2. Step 2: Check it's connected

    Open Settings → AI → MCP Servers. A green dot next to the server means it is running.

  3. Step 3: Try a first request

    Ask Zed something that only works with Storybook connected:

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

If it doesn't work

  • Zed reads MCP servers from the context_servers key, not mcpServers. Servers under any other key are ignored.
  • Run zed: open settings file from the command palette to edit your settings.
  • Zed asks before running each tool. Change this with agent.tool_permissions in your settings.