Skip to main content
Glama
Storybook MCP Server

Storybook MCP Server

by m-yoshiro

Storybook MCP Server

⚠️ This tool was created for testing purposes and is not recommended for use in production environments.


Getting Started

Before you begin, you need to prepare your Storybook static files. https://storybook.js.org/docs/sharing/publish-storybook

1. Clone the repository

git clone https://github.com/m-yoshiro/storybook-mcp.git
cd storybook-mcp

2. Install dependencies

We recommend using Bun

bun install
# or
npm install

3. Build

bun run build
# or
npm run build

4. Set up

{
  "mcpServers": {
    "storybook-mcp": {
      "command": "node",
      "args": [
        "/< your path>/index.js",
        // Optional: path to your Storybook static json file
        "/< your path>/index.json"
      ]
    }
  }
}

The server will load your Storybook data and expose MCP tools to external agents.


Related MCP server: MCP Boilerplate

🔧 Available Tools

Tool Name

Description

Parameters

list-components

Lists all available components from Storybook

path (optional): Path to the index.json or stories.json file (optional if default path is provided)

find-components-by-name

Finds components based on a keyword (partial match supported)

name: Component name or keyword to search forpath (optional): Path to the index.json or stories.json file (optional if default path is provided)


Available Tools

2 tools
find-components-by-nameC

Search components by name/keyword

Inputs: name (required), path.

list-componentsC

Returns all available components

Inputs: path.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: 'find-components-by-name' searches for specific components based on a name or keyword, while 'list-components' returns all available components without filtering. There is no overlap or ambiguity between these operations.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern with hyphen-separated words: 'find-components-by-name' and 'list-components'. The naming is predictable and readable throughout the set.

    Tool Count2/5

    With only 2 tools, the server feels thin for a Storybook domain, which typically involves browsing, testing, and managing UI components. This limited set may not cover common workflows like viewing component details, running tests, or interacting with stories.

    Completeness2/5

    The tool surface is severely incomplete for a Storybook server. It lacks essential operations such as getting component details, listing or running stories, viewing documentation, or managing component states. Agents will face dead ends when trying to perform basic Storybook tasks.

    Related MCP Connectors

    Related MCP Servers