nook
Browse the docs

MCP server and skill

Two small things make an AI coding assistant good at Nook. The MCP server lets it look things up: what exists, how an item is used, and the exact command that adds it. The skill tells it how to work: add with the CLI, use tokens, keep things accessible.

Both ship inside the CLI. There is nothing else to install.

Set up both

Run these in your project:

npx nook-ui@latest mcp init
npx nook-ui@latest skill

Then restart your assistant.

The MCP server

nook mcp init registers the server with the clients it knows. Servers you already have in those files are kept.

ClientFile it writes
Claude Code.mcp.json
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json

Choose clients with --client claude,cursor. For any other client, register this command as a stdio server:

npx -y nook-ui@latest mcp
{
  "mcpServers": {
    "nook": { "command": "npx", "args": ["-y", "nook-ui@latest", "mcp"] }
  }
}

Tools

ToolWhat the assistant gets
searchComponents, blocks, icons and themes that match plain words such as "date range" or "pricing"
getOne item in full: the add command for your package manager, what it depends on, parts and props, accessibility notes and an example. The source too, when asked
projectWhether Nook is set up here, your import aliases, and what is already installed
rulesThe tokens, style variables and accessibility bar that Nook code keeps

The server only reads. It never changes your files: the assistant runs nook add itself, so you see and approve the command.

Try it

Ask your assistant something like:

  • "Add a sign in page with Nook."
  • "Which Nook component fits a date range filter? Add it to the reports page."
  • "Find a Nook icon for 'archive' and use it in the toolbar."

Options

OptionUse
--cwd <path>The project folder, when the client starts the server somewhere else
--registry <url>Read from your own registry instead of the Nook registry

The skill

nook skill writes two things:

  • .claude/skills/nook/SKILL.md, loaded by assistants that support skills when they build UI in your project.
  • A short Nook section in AGENTS.md (between nook:start and nook:end markers), for assistants that read that file. Pass --no-agents-file to skip it.

Run it again after you update Nook to refresh both. Your own text in AGENTS.md is left alone.

The skill covers the working loop (look, add with the CLI, compose, check), the commands, import paths, the styling rules and the accessibility bar. It is plain Markdown, so read it and edit it to fit your team.

Without MCP

Tools that cannot run an MCP server can still use the docs for AI: llms.txt, the registry files and a ready prompt for every component and block.