mcpField
S
Starwind UI MCP Server

Starwind UI MCP Server

Local
npmjs.comDeveloper Tools35Updated 6d ago

About Starwind UI MCP Server

Starwind UI MCP Server is a TypeScript MCP server for Starwind UI v3 and Starwind Pro, giving AI clients framework-aware guidance for Astro and React projects. It suits developers building interfaces with AI clients who need current component details and documentation.

Key features

  1. 01Generates v3 initialization commands for existing projects
  2. 02Searches styled components, primitives and Pro blocks
  3. 03Generates install commands without executing them
  4. 04Resolves component, Runtime and migration documentation
  5. 05Produces interactive-first v2-to-v3 migration guidance

Use cases

  1. 01Adding Starwind UI components to an Astro or React project
  2. 02Looking up exact component documentation and usage
  3. 03Migrating a project from Starwind UI v2 to v3

MCP support

This project is an MCP server that exposes starwind_init, starwind_add, starwind_search, starwind_docs and starwind_migrate tools to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"starwind-ui": {
"command": "npx",
"args": [
"-y",
"@starwind-ui/mcp"
]
}
}
}
Run commandnpx -y @starwind-ui/mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@starwind-ui/mcp0.5.1

Tools

5

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
cwdstringNoProject directory used for package manager and framework detection.
packageManagerenumNonpm | pnpm | yarn
frameworkenumNoOptional CLI framework override.astro | react
probooleanNoConfigure paid Starwind Pro authorization. Defaults to false.

Details

From the project README

Starwind UI MCP Server

npm GitHub stars

Official MCP Registry · io.github.starwind-ui/mcp

A TypeScript Model Context Protocol server for Starwind UI v3 and Starwind Pro. It gives AI clients current, framework-aware guidance for Astro and React projects.

Quick start

For the maintained client setup guide, see the Starwind UI MCP documentation.

Codex (~/.codex/config.toml):

[mcp_servers.starwind_ui]
command = "npx"
args = ["-y", "@starwind-ui/mcp"]
enabled = true

Claude Code (.mcp.json) or Cursor (.cursor/mcp.json):

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

Restart the client or reload its MCP servers after changing the configuration.

v3 model

Starwind UI v3 has three related surfaces. The MCP keeps them distinct:

SurfaceWhat it representsMCP behavior
Styled componentsCopy-owned UI components with Astro and/or React implementationsSearch and install with starwind_search and starwind_add
PrimitivesLower-level Astro and React adapters, backed by Starwind Runtime where applicableSearch with surface: "primitive"; install with the v3 primitives add command
RuntimeFramework-neutral behavior APIsFetch with starwind_docs using the Runtime topic or surface

The server validates these layers against the versioned ai-manifest.json, caches validated data, and falls back to a bundled v3 snapshot if the site is unavailable.

Tools

ToolPurpose
starwind_initGenerate v3 initialization commands for an existing Astro or React project. Pro is opt-in.
starwind_addValidate requests and generate installation or deferred-install commands for styled components, primitives, or Astro-only Pro blocks.
starwind_searchSearch styled components, primitives, and Pro blocks with framework metadata and filters.
starwind_docsResolve exact component, primitive, Runtime, migration, and framework documentation.
starwind_migrateInspect a project and generate safe, interactive-first v2-to-v3 migration guidance.

Tool calls return both readable JSON text and MCP structuredContent.

Requirements and behavior

  • Generated v3 CLI commands require Node.js 22.12.0 or newer.
  • starwind_init targets existing Astro 5+ or React 18+ projects and lets the CLI auto-detect the framework unless framework is supplied.
  • Free @starwind-pro/* catalog blocks work after ordinary initialization. Paid blocks require explicit authorization; pass pro: true only when it is required.
  • Starwind Pro blocks currently target Astro. React searches omit them, and React add requests reject them explicitly.
  • Migration is interactive by default. Set yes: true only when backup-and-overwrite behavior is intended.
  • Package-manager and project context are detected locally when possible, and add commands pass the resolved package manager to the CLI. No tool executes the generated command.

Upgrading from free to Pro

The MCP keeps Pro discoverable without forcing paid setup. Search results link to the Pro catalog, free Pro blocks remain directly installable, and paid results include a structured proUpgrade path with purchase and installation links.

For an existing Astro project, the MCP recommends:

pnpm dlx starwind@latest setup --yes

The setup command auto-detects the project's package manager, so it does not need a --package-manager flag. It prepares the Pro registry and .env.local; replace the STARWIND_LICENSE_KEY placeholder with the purchased key, then run the returned deferredCommand. Treat the key as sensitive: keep .env.local out of source control and never expose the key in logs or client-side code. A project initialized with pro: true receives the equivalent init --pro command instead.

Development

pnpm build
pnpm lint
pnpm test:run

Run the opt-in production manifest contract test with:

RUN_LIVE_CONTRACT_TESTS=1 pnpm test:run src/utils/starwind_live_contract.test.ts

License

MIT. See LICENSE.

Security

MseeP.ai Security Assessment Badge

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.