MCP Server

Let your AI agent find and install Netter UI components. npx -y netter-ui@latest mcp starts an MCP server that Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and any other MCP client can talk to.

  1. Quick setup

    Run one command in your project root and the CLI writes the server into that client's config (for Windsurf, whose file is global, it prints the snippet and the path instead). Restart or reload the client afterwards. Any other MCP client takes the same server: command npx, arguments -y netter-ui@latest mcp.

    Pick your client

    claudenpx netter-ui@latest mcp init --client claude
    cursornpx netter-ui@latest mcp init --client cursor
    vscodenpx netter-ui@latest mcp init --client vscode
    windsurfnpx netter-ui@latest mcp init --client windsurf
    anynpx -y netter-ui@latest mcp
  2. What it is

    The Model Context Protocol lets an AI assistant call tools that run on your machine. netter-ui mcp is a small MCP server inside the same CLI you use in the terminal: your assistant starts it on demand over stdio, browses the 379 components in the registry, reads their source and props, and installs them into your project the way netter-ui add does. Nothing to install globally, no account and no API key.

    You ask
    “Add a starry night background from Netter UI to my hero.”
    It searches
    search_components finds candidate slugs, get_component reads the source, props and dependencies.
    It installs
    add_components writes the files into your project, rewrites imports to your aliases and installs the npm packages.
    It wires
    The assistant imports the component where you asked and passes the props it read.
  3. Claude Code

    One command adds the server for you in the current project. Add --scope project to write it to .mcp.json and share it with your team, or --scope user to have it in every project. Then run /mcp in a session to check that it is connected.

    Add the server

    addclaude mcp add netter-ui -- npx -y netter-ui@latest mcp
    teamclaude mcp add --scope project netter-ui -- npx -y netter-ui@latest mcp
    checkclaude mcp list

    Or let the CLI write .mcp.json

    initnpx netter-ui@latest mcp init --client claude
    .mcp.jsonJSON14 lines
    {  "mcpServers": {    "netter-ui": {      "type": "stdio",      "command": "npx",      "args": [        "-y",        "netter-ui@latest",        "mcp"      ],      "env": {}    }  }}
  4. Cursor

    Add the server to .cursor/mcp.json in the project (or ~/.cursor/mcp.json for every project). Cursor lists it under Settings, then MCP, where you can toggle it; the agent in chat uses its tools.

    Write the file

    initnpx netter-ui@latest mcp init --client cursor
    .cursor/mcp.jsonJSON12 lines
    {  "mcpServers": {    "netter-ui": {      "command": "npx",      "args": [        "-y",        "netter-ui@latest",        "mcp"      ]    }  }}
  5. VS Code

    GitHub Copilot uses MCP tools in agent mode. VS Code reads .vscode/mcp.json, whose top-level key is servers rather than mcpServers. Open the file and select Start above the server, or run MCP: List Servers from the command palette.

    Write the file

    initnpx netter-ui@latest mcp init --client vscode
    .vscode/mcp.jsonJSON13 lines
    {  "servers": {    "netter-ui": {      "type": "stdio",      "command": "npx",      "args": [        "-y",        "netter-ui@latest",        "mcp"      ]    }  }}
  6. Claude Desktop

    Open Settings, then Developer, then Edit Config, and merge this into claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\). Restart Claude Desktop. It does not start inside your project, so tell it where to install: “add it to /Users/me/site”.

    claude_desktop_config.jsonJSON12 lines
    {  "mcpServers": {    "netter-ui": {      "command": "npx",      "args": [        "-y",        "netter-ui@latest",        "mcp"      ]    }  }}
  7. Windsurf

    Windsurf reads one global file, ~/.codeium/windsurf/mcp_config.json. Add the server there (or from the MCP panel in Cascade, then refresh). netter-ui mcp init --client windsurf prints the snippet and the path without touching the file.

    mcp_config.jsonJSON12 lines
    {  "mcpServers": {    "netter-ui": {      "command": "npx",      "args": [        "-y",        "netter-ui@latest",        "mcp"      ]    }  }}
  8. Available tools

    Every tool reads the same registry as the CLI. --registry <url> in the server arguments, or the NETTER_REGISTRY_URL environment variable, points it at another one, such as a local build.

    search_components
    Search by plain words and an optional category (query, category, limit). Returns slugs, titles, categories and descriptions.
    list_categories
    Every category with the number of components in it.
    get_component
    One component by slug: description, usage and props, npm and registry dependencies, the full source of each file, install commands for npm, pnpm, yarn and bun, and its page on this site.
    get_install_command
    The netter-ui add command for one or more slugs, for every package manager or the one in packageManager.
    add_components
    Installs slugs into the project at cwd (default: where the server started) without prompting. Existing files you edited are kept unless overwrite is true; path, skipInstall and dryRun are optional. Returns the files written, the packages installed and the import lines.
  9. Try it

    Ask in plain words. Mentioning Netter UI helps the assistant pick these tools over writing a component from scratch.

    Hero
    Add a starry night background from Netter UI to my hero.
    Pricing
    Find a Netter UI pricing table, show me its props, then add it to the pricing page with our three plans.
    Browse
    Which Netter UI categories are there? Show me five animated buttons.
    Folder
    Install the Netter UI faq-accordion-v3 into src/app/_components.
    Manual
    Give me the pnpm command to add kinetic-button and fluid-morph-bg, I will run it myself.
  10. Troubleshooting

    The server logs to stderr, which every client shows in its MCP logs. To see it yourself, run npx -y netter-ui@latest mcp in a terminal: it prints a ready line and waits for messages (Ctrl+C to quit).

    Not listed
    Restart or reload the client after editing its config, and check that the JSON is valid. Project files (.mcp.json, .cursor, .vscode) must be in the folder you opened.
    Windows
    If npx is not found when the client starts the server, wrap it: claude mcp add netter-ui -- cmd /c npx -y netter-ui@latest mcp, or "command": "cmd" with "args": ["/c", "npx", …] in JSON.
    Node
    The server needs Node.js 18 or newer on the PATH the client sees. GUI apps on macOS may not see a version manager; use the full path to npx in command.
    Wrong folder
    The add tool needs the project root with package.json. Ask the assistant to pass the absolute path, which matters most in Claude Desktop and Windsurf.
    Slow first call
    npx downloads the package on first use, and the registry index is fetched once and cached for five minutes.
    Old version
    @latest resolves to the newest release when the client starts the server; restart it after an update. The tools need netter-ui 0.2.0 or newer.

Pair it with the Agent Skill

The MCP server gives your agent tools; the Netter UI Agent Skill teaches it the workflow: which component fits the job, how to size it and how to keep theming, motion and accessibility intact. It works in Codex, Cursor, GitHub Copilot, Gemini CLI, Claude Code and any agent that reads Agent Skills.

  • Agent Skill

    Teaches Codex, Cursor, Copilot, Gemini CLI, Claude Code and every Agent Skills agent how to pick, install and fit components.

    npx netter-ui@latest skill add
    Read the skill docs

Related

Server
npx -y netter-ui@latest mcp
Skill
Agent Skill, workflow guidance that pairs with these tools
Browse components