Purpose
Storybook MCP Addon is designed to enable AI agents (such as Claude Code, Codex, etc.) to collaborate with Storybook more efficiently. Through an MCP (Model Context Protocol) server, it provides UI component information and development workflows to AI agents, enabling them to understand and operate components in Storybook.
Key Capabilities
This monorepo contains four main packages:
- @storybook/mcp: A standalone MCP library for providing Storybook component knowledge, usable independently.
- @storybook/addon-mcp: A Storybook addon that runs an MCP server within the Storybook development server and includes the functionality of @storybook/mcp.
- @storybook/claude-code-plugin: A Claude Code plugin that includes Storybook setup skills and MCP configuration.
- @storybook/codex-plugin: A Codex plugin that includes Storybook setup skills and MCP configuration.
Usage
- The development environment requires Node.js 24+ and pnpm 10.19.0+.
- Running the Storybook command starts an internal test Storybook instance (http://localhost:6006),插件以监听模式运行,MCP server located at http://localhost:6006/mcp。
- You can use MCP Inspector to debug the MCP server, or check it via curl commands.
- External testers can install the plugin marketplace directly from the repository's main branch without cloning locally.
- Enable the chat.mcp.apps.enabled setting in VSCode Insiders and configure .vscode/mcp.json to connect to Storybook MCP, and you can then invoke tools in chat.
Use Cases
Suitable for development teams that want AI agents to understand UI components and assist with component development, testing, and documentation work, especially frontend projects using Storybook.
Limitations
- The project is experimental, and its API and architecture may change.
- The repository has been moved to storybookjs/storybook (as of Storybook v10.6.0); go to the new address for updated documentation.
- Requires Node.js 24+ and pnpm 10.19.0+.
- Some features (such as MCP App debugging) require VSCode Insiders with specific settings enabled.
- No detailed information on pricing, cost, or platform support is provided.