storybook-mcp
Integrates with a running Storybook instance to let AI-powered coding tools browse, inspect, and scaffold components from natural language.
README
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 |
|---|---|
storybook_list_components |
List & search every component in your running Storybook |
storybook_get_component |
Get stories, arg types, default args, and Storybook URLs for a component |
storybook_create_component |
Scaffold a component + Storybook story from a plain-English description |
storybook_compose_view |
Compose existing components into a higher-order page/view with layout, state, and wiring |
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 | sh
Note: 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.json - Claude CLI (Linux/macOS):
~/.config/claude/claude_desktop_config.json - Claude 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.