simple-storybook-preview-mcp
Provides live preview of Storybook components directly in the IDE, allowing AI agents to view component renders as they edit.
Click on "Deploy 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., "@simple-storybook-preview-mcpedit the Button component and preview live"
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.
Simple Storybook Preview MCP
See your components render live inside the IDE as the AI edits them. No switching windows.
Quick Start
Add to .cursor/mcp.json:
{
"mcpServers": {
"storybook-preview": {
"command": "npx",
"args": ["-y", "simple-storybook-preview-mcp"],
"env": {
"STORYBOOK_URL": "http://localhost:6006"
}
}
}
}Start your Storybook dev server (npm run storybook), then ask the AI to edit a component — the preview appears automatically.
Related MCP server: Storybook MCP
Configuration
Env Variable | Default | Description |
|
| Base URL of your running Storybook dev server |
|
| Set to |
How Story IDs Work
The AI derives story IDs from your Storybook file structure:
title segments lowercased, joined by dashes + double-dash + story export name
"Components/Button" + "Primary" → components-button--primary
"Forms/Input" + "WithLabel" → forms-input--withlabelRequirements
Node.js 18+
Storybook 7+ dev server running
IDE with MCP Apps support (e.g. Cursor)
Works with any framework Storybook supports (React, Vue, Angular, Svelte, etc.).
Links
License
MIT
Available Tools
1 toolrender_componentRender ComponentA
Renders a Storybook story in an inline preview panel. Use after editing a component file to show the updated result. The storyId follows Storybook convention: title segments joined by dashes, double-dash before story name (e.g. "example-button--primary" for title "Example/Button", export "Primary").
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Preview color scheme. Defaults to the user's OS preference when omitted. | |
| storyId | Yes | Storybook story ID, e.g. "example-button--primary". Derived from the story title and export name: title segments lowercased and joined by dashes, double-dash before the story export name lowercased. |
Output Schema
| Name | Required | Description |
|---|---|---|
| url | Yes | |
| story | No | |
| theme | No | |
| storyId | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It clearly describes the visible behavior (rendering into an inline preview panel) and implies non-persistent preview behavior. It does not explicitly state side-effect-freeness, but the wording is strong enough for a simple render operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two focused sentences with no filler. The primary purpose and usage trigger are front-loaded, followed by the parameter convention and example. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple, has only two fully documented parameters, and an output schema is present. The description covers what the tool does, when to use it, and the key parameter format. Nothing essential is missing for an agent to invoke it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the baseline is 3. The description adds value by explaining the Storybook storyId convention in plain language with an example, and the schema also documents the theme default. This goes beyond what the raw schema alone provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Renders') and names both the resource (a Storybook story) and the delivery mechanism (inline preview panel). It clearly explains what the tool does and includes a concrete example for the storyId format.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description states when to use the tool: 'Use after editing a component file to show the updated result.' There are no sibling tools to contrast against, so the absence of explicit alternatives is reasonable.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v1.0.2- First observed
render_component
TDQS
Scored across 1 tool
With only one tool there is no possibility of confusion or overlap with other tools. The single purpose of rendering a Storybook story is clearly defined.
The tool name 'render_component' follows a clear verb_noun pattern, which is consistent and predictable. Even as a lone tool, the naming convention is clear and readable.
A single tool for a very narrow 'simple storybook preview' purpose is borderline. It is not trivial, but the surface feels thin and lacks supplementary functionality that might be expected in a fuller server.
The tool fully covers the core rendering action, and the convention-based storyId allows agents to target stories. A notable gap is the absence of a discovery mechanism to list available stories or validate storyIds, but for a 'simple' preview server this is a minor limitation.
Maintenance
Related MCP Connectors
- AuroraOAuthbuild.aurora
Create, edit, preview, and deploy full-stack web apps to a live URL from any MCP client.
Live browser debugging for AI assistants — DOM, console, network via MCP.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Give any MCP-compatible AI assistant a builder for live, hosted web tools and workflows.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to browse Storybook components, manage stories, inspect props, and capture screenshots of components.191 npm14AGPL 3.0

Storybook MCPofficial
AlicenseNot gradedqualityFmaintenanceEnables AI agents to interact with Storybook by exposing UI component information and development workflows through the Model Context Protocol.270MIT- AlicenseAqualityDmaintenanceIntegrates with a running Storybook instance to let AI-powered coding tools browse, inspect, and scaffold components from natural language.4MIT
- AlicenseAqualityCmaintenanceEnables an AI assistant to author algorithm storyboards, workflow maps, and UI styling through MCP, serving a local web app for visualizing and reviewing them.25MIT