Skip to main content

Starwind UI v3.7 is here with stable Vue and Svelte, the new Chart component, and full RTL support. Read the release notes

MCP Server

Use the Starwind UI MCP server to search Starwind UI, read current documentation, and generate validated CLI commands from an MCP-compatible assistant. It supports Starwind UI v3 projects using Astro, React, Vue, or Svelte.

The server is published as @starwind-ui/mcp and runs locally through your MCP client.

Quick Start

Select your MCP client and add the configuration.

After you add the configuration, reload the MCP server when your client requires it. Use the client’s MCP status view or list command to confirm that Starwind UI connected.

What You Can Do

With the MCP server, an assistant can:

  • Prepare a validated Starwind UI v3 initialization command for an Astro, React, Vue, or Svelte project.
  • Search styled components, Primitives, and Starwind Pro blocks.
  • Generate validated install commands for the selected framework and project.
  • Fetch exact component, Primitive, Runtime, migration, and framework documentation.
  • Check a legacy Astro project and prepare a safe Starwind UI v3 migration command.

The server inspects local project context when available. It detects Astro, React, Vue, and Svelte projects, including Nuxt, Quasar, Laravel with Inertia and Vue, SvelteKit, and Astro projects with Vue or Svelte islands. It also reads framework from starwind.config.json. Tools that accept a framework take astro, react, vue, or svelte. starwind_search also accepts all, which is its default.

When the assistant passes your project folder as cwd, commands use your project’s package manager, and styled results show the import path for your project, such as ~/components/starwind/button in Nuxt or $lib/starwind/button in SvelteKit 2.

The server returns commands for the assistant to review with you. It does not run those commands.

Package Docs

Starwind packages 1.6.0 and newer include docs in node_modules/@starwind-ui/<package>/docs/. When the assistant passes your project folder as cwd, the server points it to the page for the version that you installed.

Starwind Pro

Pro search, install commands, and setup work in every framework. Pro blocks are Astro components. When a React, Vue, or Svelte result includes Pro blocks, it carries a warning. To use a block there, run an Astro host or port the block to your framework. Free blocks need no license key. Premium blocks need Pro access.

Available Tools

ToolUse it for
starwind_initPrepare a Starwind UI v3 initialization command for Astro, React, Vue, or Svelte. With cwd, it lists package docs.
starwind_searchFind styled components, Primitives, and Pro blocks.
starwind_addPrepare validated install commands for components, Primitives, and Pro blocks. With cwd, it lists package docs.
starwind_docsRead website Markdown. With cwd, it also returns the installed page path when one exists.
starwind_migrateCheck and guide a legacy Astro migration. With cwd, it lists package docs.

Example Prompts

  • “Find a React combobox and show me its documentation.”
  • “Add button, card, and dialog to this Astro project.”
  • “Set up Starwind UI in this SvelteKit project and add a dialog.”
  • “Show me the Primitive and Runtime API for Color Picker.”
  • “Check whether this project needs the Starwind UI v3 migration.”
  • “Find free Starwind Pro hero blocks.”

Use Starwind Skills with MCP when your assistant supports both. Skills provide editing guidance. MCP supplies current Starwind data and commands.

Troubleshooting

If the tools do not appear, restart or reload the server from the client’s MCP controls. Confirm that the client can run:

Terminal window
npx -y @starwind-ui/mcp

Client Documentation