Storybook logo

Storybook

by storybookjs

Adds an MCP endpoint to Storybook so agents can write and test UI component stories.

Install Storybook

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for storybookjs/storybook, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

storybookjs/storybook adds an MCP server to Storybook through the `@storybook/addon-mcp` addon. Agents can use it for UI development workflows that involve writing and testing Storybook stories for components. The addon serves MCP at `/mcp` by default, with a configurable pathname for projects that need a different endpoint.

Use cases

  • Write Storybook stories for UI components with an agent
  • Test component stories through an MCP-powered workflow
  • Expose Storybook's MCP endpoint at a project-specific pathname
  • Connect Claude Code to a Storybook UI development workflow

Key features

  • Storybook addon-based MCP server
  • Agent assistance for writing component stories
  • Agent assistance for testing stories
  • Default `/mcp` endpoint
  • Configurable endpoint pathname

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

34/34 checks healthy over the last 24d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars91kStargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Storybook works

What storybookjs/storybook does

storybookjs/storybook extends a Storybook project with an MCP endpoint for agent-assisted UI development. Its focus is working with Storybook stories for UI components: agents can help create stories and test them as part of a Storybook-based workflow.

The server is delivered as the @storybook/addon-mcp addon rather than as a separate application described independently from Storybook. This makes it a fit for teams already using Storybook who want an MCP-connected development workflow around their component stories.

How it works

After the addon is configured in Storybook, it exposes the MCP server through an HTTP-style URL pathname. The default endpoint is /mcp. MCP-capable tooling can use that endpoint to interact with the Storybook addon for supported UI development tasks, including writing and testing stories.

The endpoint is configured in .storybook/main.ts alongside the other Storybook addons. A project can retain the default path or provide a custom pathname such as /custom-mcp or /tools/mcp.

Setup and configuration

Add @storybook/addon-mcp to the Storybook addon configuration in .storybook/main.ts:

server.ts
export default {
  addons: [
    {
      name: '@storybook/addon-mcp',
      options: {
        endpoint: '/custom-mcp',
      },
    },
  ],
};

The endpoint option accepts a literal URL pathname. Use a leading slash and provide a path such as /custom-mcp or /tools/mcp. If the option is omitted, the addon uses /mcp.

Tools and capabilities

  • Exposes an MCP server from a Storybook addon
  • Helps agents write stories for UI components
  • Supports testing Storybook stories in agent-driven UI workflows
  • Allows projects to choose a custom MCP endpoint pathname

Limitations and notes

The endpoint setting is a pathname, not a complete URL. The addon uses /mcp unless a different literal path is configured. The repository includes a Claude Code showcase, making Claude Code a documented client context for the addon. Installation instructions, usage examples, and API details are maintained in the Storybook MCP documentation.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Storybook

storybookjs/storybook is an MCP server that connects AI agents to Storybook through the Storybook MCP addon. Its main capabilities are helping agents write stories for UI components and test those stories in MCP-powered UI development workflows. It exposes the server at `/mcp` by default.

Install it by adding the `@storybook/addon-mcp` addon to the `addons` array in `.storybook/main.ts`. The addon then exposes the MCP endpoint from Storybook, using `/mcp` unless a custom pathname is configured.

Change it by setting the `endpoint` option in the `@storybook/addon-mcp` configuration. Use a literal URL pathname such as `/custom-mcp` or `/tools/mcp`; the default is `/mcp`.

Yes, Claude Code is shown as a client context for the addon. Configure `@storybook/addon-mcp` in Storybook, then use the addon’s MCP endpoint for the UI development workflow.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewStorybook AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/storybookjs-storybook?style=directory)](https://allmcps.com/mcp/storybookjs-storybook)
HTML Embed
<a href="https://allmcps.com/mcp/storybookjs-storybook"><img src="https://allmcps.com/api/badge/storybookjs-storybook?style=directory" alt="Storybook on AllMCPs" /></a>