storybook-mcp

storybook-mcp

8

The Storybook MCP Server is designed to interact with Storybook by retrieving and listing stories from a specified configuration. It is built using the Model Context Protocol SDK and employs stdio for communication while caching data locally.

Storybook MCP Server

A Model Context Protocol server for interacting with Storybook.

Tools

get-stories

Retrieves a list of stories from a Storybook configuration.

  • Parameters:
    • configDir (string): Absolute path to directory containing the .storybook config folder
  • Returns:
    • List of stories in title/name format

Technical Details

  • Built using @modelcontextprotocol/sdk
  • Uses stdio transport for communication
  • Caches data in ./cache relative to script location