Skip to content
← All MCP servers

Is the Storybook MCP server safe? What it can reach

What the Storybook MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Storybook’s official addon-mcp runs inside your Storybook dev server and serves MCP at localhost:6006/mcp with no sign-in. It reads stories and component docs and can run tests. Its docs describe it as a preview and do not say any tool writes files. Turn off toolsets you don’t need in .storybook/main.ts.

Who maintains it

ImplementationKindStatus
@storybook/addon-mcp (official, Storybook docs)Officialactive
storybookjs/mcp (official standalone repo, archived)Officialarchived

It runs as a local process on your machine.

How it signs in

No credential. The server is part of your local Storybook dev server and uses its host validation, so requests from other hostnames need core.allowedHosts.

What its tools can do

KindTools
Readstories-changed, get-storybook-story-instructions, stories-preview, stories-find-by-component, docs-show, docs-show-story, docs-list
Writereview-create, test-run
Can’t be undonenone documented

Docs toolset needs a components manifest and works for React frameworks, @storybook/angular-vite and @storybook/vue3-vite. test-run needs @storybook/addon-vitest, and review-create needs the review feature. The docs say the AI features are in preview and the API may change. Whether review-create or test-run write files is not documented, so they are listed under write for caution. The standalone storybookjs/mcp repo is archived.

Built-in limits

OptionWhat it does
toolsets optionIn .storybook/main.ts, set addon options toolsets: { dev: false } (or docs, or test) to turn a toolset off. All are on by default.
core.allowedHostsHost validation applies; add a hostname only if your agent reaches Storybook through a proxy.
Feature requirementsTools only appear when their features are enabled, such as the components manifest, Storybook Test or change detection.

The risks

  • There is no sign-in, so any local process or page that can reach the dev server port can call the tools; keep it bound to localhost.
  • Component docs and story code come from your repo, so an injected instruction in a comment or docs file could steer the agent to act on your codebase through other tools.
  • test-run executes your stories’ tests, which run your own code on your machine.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --transport http storybook http://localhost:6006/mcp

Claude Code names MCP tools mcp__storybook__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "ask": [
      "mcp__storybook__test-run",
      "mcp__storybook__review-create"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.storybook]
url = "http://localhost:6006/mcp"

Checklist

  • Run Storybook only on localhost.
  • Disable toolsets you don’t use with the toolsets option.
  • Don’t add allowedHosts for hostnames you don’t control.
  • Treat story and docs text as untrusted input.
  • Review addon updates while the feature is in preview.

Checked against the vendor documentation on November 25, 2026. Storybook MCP overview · Storybook MCP API

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing