Storybook MCP Server

MCP server that connects to any Storybook. Browse components, fetch docs and examples, search stories, and capture screenshots.

Local serverstdio

What is the Storybook MCP MCP server?

Connect Storybook MCP to Claude, Cursor or any other MCP client and it stops being a tab you switch to. MCP server that connects to any Storybook. Browse components, fetch docs and examples, search stories, and capture screenshots. The storybook mcp mcp server is what makes that connection.

What the server does

A universal MCP server that connects to any Storybook site and extracts documentation in real-time using Playwright.

  • Works with any Storybook — - Auto-detects format and version
  • Live browsing — - Real-time Playwright-based extraction
  • Auto-detection — - Detects Storybook format automatically
  • Single file — - Just index.js, no build step

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • connect — Connect to a Storybook URL and get connection status. Required before other tools
  • list — List components and stories in the navigation. Optional: category, full (hierarchy)
  • search — Search for components by name or path. Required: query
  • get_docs — Get documentation, code examples, and content for a component or story. Required: path. Optional: full, format (markdown/structured)
  • screenshot — Take a screenshot of a component or story. Required: path

Credentials and setup notes

Configuration is passed through the environment: STORYBOOK_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Where it fits

This sits in the browser automation group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Storybook MCP's toolset — connect, list, search and 2 more — is a fair guide to whether it matches your workflow. It is maintained by raksbisht; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Storybook MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
connectConnect to a Storybook URL and get connection status. Required before other tools.
listList components and stories in the navigation. Optional: category, full (hierarchy).
searchSearch for components by name or path. Required: query.
get_docsGet documentation, code examples, and content for a component or story. Required: path. Optional: full, format (markdown/structured).
screenshotTake a screenshot of a component or story. Required: path.

How to install the Storybook MCP MCP server

{
  "mcpServers": {
    "storybook-mcp": {
      "command": "npx",
      "args": ["-y", "@raksbisht/storybook-mcp"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
STORYBOOK_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Storybook MCP to connect.
  • Use Storybook MCP to list.
  • Use Storybook MCP to search.

Frequently asked questions

It connects Storybook MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (connect, list, search, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Storybook MCP directly.