How to set up the Storybook MCP Server in Claude
- Install the addon from an existing Storybook project and start its dev server.
- Run the registration command with the actual localhost port printed by Storybook, then choose a project-specific server name.
- Ask Claude to list documented components. If that tool is missing, verify your Storybook manifest configuration.
npx storybook add @storybook/addon-mcpnpx mcp-add --type http --url "http://localhost:6006/mcp" --scope projectRead the stories that actually ship
Connect an existing Storybook when Claude needs your team's component examples rather than generic examples from a framework. The server can return direct story links. Component-documentation tools depend on a generated component manifest, and test execution requires the Vitest addon.
Check the empty state of a component
Ask Claude for the story links and documented controls for the empty state of a SearchResults component. Open the returned story in your browser and check that its controls and fixture match the project. If the story link works but no component description appears, check the project’s manifest before assuming the story is missing.
Keep the dev server running
The addon runs inside the Storybook development server. Use the actual local port reported by your project. You can open the local /mcp page to inspect the available tools and find the manifest debugger.