Starwind UI MCP Server
The Starwind UI MCP Server is a TypeScript-based server that extends AI capabilities for working with Starwind UI components and projects. It allows you to:
Initialize Projects: Set up new Starwind UI projects with specified package managers
Install Components: Generate installation commands for specific UI components with customization options
Update Components: Create commands to update existing components
Access Documentation: Retrieve links to Starwind UI documentation (overviews, guides, references)
Fetch LLM Data: Retrieve data from starwind.dev with built-in caching and rate limiting
Detect Package Manager: Identify the package manager (npm, yarn, pnpm) used in a project
Provides integration with Windsurf (a Codeium product), allowing setup of the MCP server for enhanced AI capabilities when working with Starwind UI components
Detects and uses npm package manager for component installation and updates through the get_package_manager tool
Uses pnpm as the default package manager for the project, with built-in detection and support for handling Starwind UI components
Implements the MCP server using TypeScript, providing type-safe tools for working with Starwind UI components and documentation
Supports Yarn package manager detection and usage for managing Starwind UI component installation and updates
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Starwind UI MCP Server show me how to install the Button component"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 = trueClaude 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.
Related MCP server: shadcn-ui MCP Server
v3 model
Starwind UI v3 has three related surfaces. The MCP keeps them distinct:
Surface | What it represents | MCP behavior |
Styled components | Copy-owned UI components with Astro and/or React implementations | Search and install with |
Primitives | Lower-level Astro and React adapters, backed by Starwind Runtime where applicable | Search with |
Runtime | Framework-neutral behavior APIs | Fetch with |
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
Tool | Purpose |
| Generate v3 initialization commands for an existing Astro or React project. Pro is opt-in. |
| Validate requests and generate installation or deferred-install commands for styled components, primitives, or Astro-only Pro blocks. |
| Search styled components, primitives, and Pro blocks with framework metadata and filters. |
| Resolve exact component, primitive, Runtime, migration, and framework documentation. |
| Inspect 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_inittargets existing Astro 5+ or React 18+ projects and lets the CLI auto-detect the framework unlessframeworkis supplied.Free
@starwind-pro/*catalog blocks work after ordinary initialization. Paid blocks require explicit authorization; passpro: trueonly 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: trueonly 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 --yesThe 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:runRun the opt-in production manifest contract test with:
RUN_LIVE_CONTRACT_TESTS=1 pnpm test:run src/utils/starwind_live_contract.test.tsLicense
MIT. See LICENSE.
Security
Available Tools
5 toolsstarwind_addA
Generates validated Starwind UI v3 install commands for styled components, vendored primitives, or Starwind Pro blocks, with optional Astro or React targeting.
Inputs: components (required), to, cwd, pro, +5 more. Returns: result
starwind_docsB
Fetches current Starwind UI v3 documentation across styled components, primitives, Runtime, migration, and Astro or React framework guides.
Inputs: full, topic, surface. Returns: result
starwind_initA
Generates a Starwind UI v3 initialization command for an existing Astro or React project. The CLI auto-detects the framework unless an override is provided. Paid Pro authorization is opt-in and currently targets Astro.
Inputs: cwd, pro, framework, packageManager. Returns: result
starwind_migrateB
Generates the safe Starwind UI v3 migration command for a legacy Astro project. Interactive migration is the default; non-interactive overwrite behavior must be explicitly requested.
Inputs: cwd, yes, packageManager. Returns: result
starwind_searchC
Searches Starwind UI v3 styled components, Primitive adapters, and Starwind Pro blocks with framework-aware results.
Inputs: cwd, plan, limit, query, +4 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clear, distinct purpose: initialization, adding components, searching, documentation, and migration. The only minor ambiguity is between starwind_init and starwind_add, as both generate CLI commands. However, starwind_init is specifically for project initialization, while starwind_add handles component and block installation, which is a reasonable distinction.
All tools follow a consistent starwind_ prefix followed by an imperative verb (init, add, search, docs, migrate). This is a clean, predictable pattern. The slight deduction is because the imperative verb is not strictly a verb_noun pattern (e.g., starwind_search instead of starwind_search_components), but this is a minor and common stylistic choice.
With 5 tools, the server is very well-scoped. It covers the core actions a developer would need when using the Starwind UI library within an MCP context: initializing, adding components, searching, and migrating. Each tool clearly earns its place, and the count feels appropriate for the scope of managing and interacting with a UI component library.
The tool set covers the primary development workflow: initializing, adding components, searching, accessing documentation, and managing migrations. This provides a comprehensive foundation. The only arguably missing piece might be a tool for direct configuration management or status checks. However, for an MCP interface, this set is remarkably complete and avoids common gaps in lifecycle management.
Maintenance
Related MCP Connectors
Serves your design system and coding standards to coding agents, so they stop guessing.
React + Tailwind UI components and recipes your AI coding tool can search and install.
React + Tailwind UI components and recipes your AI coding tool can search and install.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA server that helps AI models better understand Vite/Nuxt applications, providing enhanced context awareness for development support.915MIT
- AlicenseAqualityDmaintenanceHelps AI assistants access shadcn/ui component documentation and examples through a TypeScript-based MCP server that provides reference information for component details, usage examples, and search capabilities.4739 npm60MIT
- AlicenseAqualityDmaintenanceProvides reference information for shadcn/ui components through a Model Context Protocol server that helps AI assistants access component documentation and examples.4MIT
- AlicenseAqualityBmaintenanceServer that enables AI assistants to interact with Storybook design systems. Extract component HTML, analyze styles, and help with design system adoption and refactoring.9424 npm73MIT