npm @starwind-ui/mcpstdioMITupdated 24d ago
Official MCP Registry ยท io.github.starwind-ui/mcp
What can you do with Starwind UI MCP Server?
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:
| Surface | What it represents | MCP behavior |
|---|---|---|
| Styled components | Copy-owned UI components with Astro and/or React implementations | Search and install with starwind_search and starwind_add |
| Primitives | Lower-level Astro and React adapters, backed by Starwind Runtime where applicable | Search with surface: "primitive"; install with the v3 primitives add command |
| Runtime | Framework-neutral behavior APIs | Fetch 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
| Tool | Purpose |
|---|---|
starwind_init |
Generate v3 initialization commands for an existing Astro or React project. Pro is opt-in. |
starwind_add |
Validate requests and generate installation or deferred-install commands for styled components, primitives, or Astro-only Pro blocks. |
starwind_search |
Search styled components, primitives, and Pro blocks with framework metadata and filters. |
starwind_docs |
Resolve exact component, primitive, Runtime, migration, and framework documentation. |
starwind_migrate |
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 --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
Install
Add Starwind UI MCP Server to your client. Pick the one you use.
claude mcp add mcp -- npx -y @starwind-ui/mcpcodex mcp add mcp -- npx -y @starwind-ui/mcpamp mcp add mcp -- npx -y @starwind-ui/mcp{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@starwind-ui/mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@starwind-ui/mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"mcp","command":"npx","args":["-y","@starwind-ui/mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@starwind-ui/mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@starwind-ui/mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@starwind-ui/mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@starwind-ui/mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@starwind-ui/mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @starwind-ui/mcpRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
5 tools
Starwind UI MCP Server exposes 5 tools to a connected agent.
- starwind_init
- Generate v3 initialization commands for an existing Astro or React project. Pro is opt-in.
- starwind_add
- Validate requests and generate installation or deferred-install commands for styled components, primitives, or Astro-only Pro blocks.
- starwind_search
- Search styled components, primitives, and Pro blocks with framework metadata and filters.
- starwind_docs
- Resolve exact component, primitive, Runtime, migration, and framework documentation.
- starwind_migrate
- Inspect a project and generate safe, interactive-first v2-to-v3 migration guidance.
Score
78 / 100
Good
- Documentation25/25
- Maintenance19/25
- Trust16/20
- Capability6/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 17 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 5 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 0.5.1Latest | Aug 15, 2026 |
