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.
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 claudecursornpx netter-ui@latest mcp init --client cursorvscodenpx netter-ui@latest mcp init --client vscodewindsurfnpx netter-ui@latest mcp init --client windsurfanynpx -y netter-ui@latest mcpWhat it is
The Model Context Protocol lets an AI assistant call tools that run on your machine.
netter-ui mcpis 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 waynetter-ui adddoes. 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_componentsfinds candidate slugs,get_componentreads the source, props and dependencies.- It installs
add_componentswrites 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.
Claude Code
One command adds the server for you in the current project. Add
--scope projectto write it to.mcp.jsonand share it with your team, or--scope userto have it in every project. Then run/mcpin a session to check that it is connected.Add the server
addclaude mcp add netter-ui -- npx -y netter-ui@latest mcpteamclaude mcp add --scope project netter-ui -- npx -y netter-ui@latest mcpcheckclaude mcp listOr let the CLI write .mcp.json
initnpx netter-ui@latest mcp init --client claude{ "mcpServers": { "netter-ui": { "type": "stdio", "command": "npx", "args": [ "-y", "netter-ui@latest", "mcp" ], "env": {} } }}Cursor
Add the server to
.cursor/mcp.jsonin the project (or~/.cursor/mcp.jsonfor 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{ "mcpServers": { "netter-ui": { "command": "npx", "args": [ "-y", "netter-ui@latest", "mcp" ] } }}VS Code
GitHub Copilot uses MCP tools in agent mode. VS Code reads
.vscode/mcp.json, whose top-level key isserversrather thanmcpServers. 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{ "servers": { "netter-ui": { "type": "stdio", "command": "npx", "args": [ "-y", "netter-ui@latest", "mcp" ] } }}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”.{ "mcpServers": { "netter-ui": { "command": "npx", "args": [ "-y", "netter-ui@latest", "mcp" ] } }}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 windsurfprints the snippet and the path without touching the file.{ "mcpServers": { "netter-ui": { "command": "npx", "args": [ "-y", "netter-ui@latest", "mcp" ] } }}Available tools
Every tool reads the same registry as the CLI.
--registry <url>in the server arguments, or theNETTER_REGISTRY_URLenvironment 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 addcommand for one or moreslugs, for every package manager or the one inpackageManager. add_components- Installs
slugsinto the project atcwd(default: where the server started) without prompting. Existing files you edited are kept unlessoverwriteis true;path,skipInstallanddryRunare optional. Returns the files written, the packages installed and the import lines.
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.
Troubleshooting
The server logs to stderr, which every client shows in its MCP logs. To see it yourself, run
npx -y netter-ui@latest mcpin 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
npxis 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
PATHthe client sees. GUI apps on macOS may not see a version manager; use the full path tonpxincommand. - 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
npxdownloads the package on first use, and the registry index is fetched once and cached for five minutes.- Old version
@latestresolves 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.
Read the skill docsnpx netter-ui@latest skill add
Related
- Server
- npx -y netter-ui@latest mcp
- CLI
- Installation
- Skill
- Agent Skill, workflow guidance that pairs with these tools