storybook-mcp
Allows browsing, inspecting, creating, and composing components in a running Storybook instance.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@storybook-mcpList all components in Storybook"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Storybook MCP Server
An MCP (Model Context Protocol) server that integrates with a running Storybook instance. It lets AI-powered coding tools browse your component library, inspect individual components, and scaffold brand-new components from natural language.
Features
Tool | Description |
| List & search every component in your running Storybook |
| Get stories, arg types, default args, and Storybook URLs for a component |
| Scaffold a component + Storybook story from a plain-English description |
| Compose existing components into a higher-order page/view with layout, state, and wiring |
Related MCP server: MCP Design System Extractor
Quick Start
Prerequisites
Python ≥ 3.10
A running Storybook instance (v7+)
uvinstalled
1. Install uv if needed (Python Package Manager)
# Install via Homebrew
brew install uv
# Or via curl
curl -LsSf https://astral.sh/uv/install.sh | shNote: The storybook-mcp package itself does NOT need to be installed separately. The MCP configuration uses uvx which automatically downloads and runs the package when needed.
Configuration by Editor
Configuration Format A: Project-Relative Paths
Use this configuration for Cursor, Windsurf, Roo Code, and Kilo Code.
{
"mcpServers": {
"storybook": {
"command": "uvx",
"args": ["storybook-mcp"],
"env": {
"STORYBOOK_URL": "http://localhost:6006",
"STORYBOOK_COMPONENTS_DIR": "relative/path/to/your/storybook/components",
"STORYBOOK_FRAMEWORK": "react",
"STORYBOOK_STYLE_TECH": "tailwind",
"STORYBOOK_TYPESCRIPT": "true"
}
}
}
}Configuration File Locations:
Cursor:
.cursor/mcp.json(project root - already created in this project)Windsurf:
.windsurf/mcp.json(project root)Roo Code:
.roo/mcp.json(project root)Kilo Code:
.kilocode/mcp.json(project root)
Configuration Format B: Absolute Paths
Use this configuration for Claude Desktop and Claude CLI.
{
"mcpServers": {
"storybook": {
"command": "uvx",
"args": ["storybook-mcp"],
"env": {
"STORYBOOK_URL": "http://localhost:6006",
"STORYBOOK_COMPONENTS_DIR": "/absolute/path/to/frontend/src/apps/core/shared/core-components",
"STORYBOOK_FRAMEWORK": "react",
"STORYBOOK_STYLE_TECH": "tailwind",
"STORYBOOK_TYPESCRIPT": "true"
}
}
}
}Configuration File Locations:
Claude Desktop (macOS):
~/Library/Application Support/Claude/claude_desktop_config.jsonClaude CLI (Linux/macOS):
~/.config/claude/claude_desktop_config.jsonClaude CLI (Windows):
%APPDATA%\Claude\claude_desktop_config.json
Note: Claude Desktop and Claude CLI require absolute paths for STORYBOOK_COMPONENTS_DIR.
Usage Examples
Once configured, you can use natural language commands:
List Components
"List all components in Storybook"
"Show me all button components"Inspect Component
"Show me the details for the Core/UI/Button component"
"What props does the DataTable accept?"Create Component
"Create a new AlertBanner component with info, warning, and error variants"
"Build a StatusIndicator component with online/offline/away states"Compose Page
"Compose a SettingsPage using Sidebar, Tabs, TextInput, Toggle, and Button"
"Build a DashboardView with Card, Chart, DataTable, and Badge components"Troubleshooting
MCP Server Not Connecting
✅ Ensure Storybook is running at http://localhost:6006
✅ Restart your editor/CLI after creating/modifying the MCP configuration file
✅ Verify
uvis installed:uv --version✅ Check that the configuration file is in the correct location for your tool
Components Not Found
✅ Check that Storybook is fully loaded in browser
✅ Component titles are case-sensitive
✅ Use
storybook_list_componentsto see available components
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that integrates with Storybook to help AI tools query UI components and retrieve usage examples from static Storybook files.248621MIT
- AlicenseAqualityBmaintenanceServer that enables AI assistants to interact with Storybook design systems. Extract component HTML, analyze styles, and help with design system adoption and refactoring.910369MIT
- Alicense-qualityCmaintenanceAn MCP server that enables AI assistants to browse Storybook components, manage stories, inspect props, and capture screenshots of components.5,80814AGPL 3.0

Storybook MCPofficial
Alicense-qualityBmaintenanceEnables AI agents to interact with Storybook by exposing UI component information and development workflows through the Model Context Protocol.265MIT
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/stevebrownlee/storybook-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server