Starwind UI MCP Server
Starwind UI v3 および Starwind Pro のためのTypeScript Model Context Protocolサーバーです。AIクライアントに対して、AstroおよびReactプロジェクト向けの現在のフレームワーク対応ガイダンスを提供します。
クイックスタート
メンテナンスされているクライアントセットアップガイドについては、Starwind UI MCP ドキュメントを参照してください。
Codex (~/.codex/config.toml):
[mcp_servers.starwind_ui]
command = "npx"
args = ["-y", "@starwind-ui/mcp"]
enabled = trueClaude Code (.mcp.json) または Cursor (.cursor/mcp.json):
{
"mcpServers": {
"starwind-ui": {
"command": "npx",
"args": ["-y", "@starwind-ui/mcp"]
}
}
}設定を変更した後は、クライアントを再起動するか、MCPサーバーをリロードしてください。
Related MCP server: shadcn-ui MCP Server
v3モデル
Starwind UI v3には3つの関連するサーフェスがあります。MCPはそれらを区別します:
サーフェス | 意味 | MCPの動作 |
Styled components | Astroおよび/またはReactの実装を持つコピー所有のUIコンポーネント |
|
Primitives | 低レベルのAstroおよびReactアダプター。該当する場合はStarwind Runtimeをバックエンドとする |
|
Runtime | フレームワークに依存しない動作API | Runtimeトピックまたはサーフェスを使用して |
サーバーはこれらのレイヤーをバージョン管理された ai-manifest.json に対して検証し、検証済みデータをキャッシュします。サイトが利用できない場合は、バンドルされたv3スナップショットにフォールバックします。
ツール
ツール | 目的 |
| 既存のAstroまたはReactプロジェクト向けにv3初期化コマンドを生成します。Proはオプトインです。 |
| リクエストを検証し、styled components、primitives、またはAstro専用Proブロックのインストールまたは遅延インストールコマンドを生成します。 |
| フレームワークメタデータとフィルターを使用して、styled components、primitives、およびProブロックを検索します。 |
| 正確なコンポーネント、primitive、Runtime、移行、およびフレームワークのドキュメントを解決します。 |
| プロジェクトを検査し、安全でインタラクティブを優先したv2からv3への移行ガイダンスを生成します。 |
ツール呼び出しは、読み取り可能なJSONテキストとMCP structuredContent の両方を返します。
要件と動作
生成されたv3 CLIコマンドにはNode.js 22.12.0以降が必要です。
starwind_initは既存のAstro 5+またはReact 18+プロジェクトを対象としており、frameworkが指定されない限りCLIがフレームワークを自動検出します。無料の
@starwind-pro/*カタログブロックは、通常の初期化後に動作します。有料ブロックには明示的な承認が必要です。pro: trueは必要な場合にのみ渡してください。Starwind Proブロックは現在Astroを対象としています。React検索ではそれらが除外され、React追加リクエストでは明示的に拒否されます。
移行はデフォルトでインタラクティブです。
yes: trueは、バックアップして上書きする動作が意図されている場合にのみ設定してください。パッケージマネージャーとプロジェクトのコンテキストは、可能な場合はローカルで検出され、addコマンドは解決されたパッケージマネージャーをCLIに渡します。どのツールも生成されたコマンドを実行しません。
無料版からProへのアップグレード
MCPは、有料セットアップを強制することなくProを発見可能に保ちます。検索結果はProカタログにリンクし、無料のProブロックは直接インストール可能なままです。有料の結果には、購入およびインストールリンクを含む構造化された proUpgrade パスが含まれます。
既存のAstroプロジェクトの場合、MCPは以下を推奨します:
pnpm dlx starwind@latest setup --yesセットアップコマンドはプロジェクトのパッケージマネージャーを自動検出するため、--package-manager フラグは必要ありません。これによりProレジストリと .env.local が準備されます。STARWIND_LICENSE_KEY プレースホルダーを購入したキーに置き換え、返された deferredCommand を実行してください。このキーは機密情報として扱ってください。.env.local をソース管理から除外し、キーをログやクライアント側コードに決して公開しないでください。pro: true で初期化されたプロジェクトは、代わりに同等の init --pro コマンドを受け取ります。
開発
pnpm build
pnpm lint
pnpm test:runオプトインのプロダクションマニフェストコントラクトテストを実行するには:
RUN_LIVE_CONTRACT_TESTS=1 pnpm test:run src/utils/starwind_live_contract.test.tsライセンス
MIT。LICENSE を参照してください。
セキュリティ
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.916MIT
- 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.41,124 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.9465 npm73MIT