Starwind UI MCP Server

by starwind-ui
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • 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

Starwind UI MCP Server

A TypeScript implementation of a Model Context Protocol (MCP) server for Starwind UI, providing tools to help developers work with Starwind UI components.

Quick Start

# Install dependencies pnpm install # Build the TypeScript code pnpm build # Start the server pnpm start

Setup Your IDE

Instructions to set up your IDE to use a local MCP server vary by IDE. Here is an example for Windsurf:

{ "mcpServers": { "starwind ui": { "command": "node", "args": ["c:\\path\\to\\folder\\starwind-ui-mcp\\dist\\server.js"], "env": {} } } }

Detailed instructions:

What is MCP?

The Model Context Protocol (MCP) is a protocol for extending AI capabilities through local servers. This implementation provides Starwind UI-specific tools to enhance AI assistant capabilities when working with Starwind UI. For more information about MCP itself, please visit the official documentation.

Features

  • Tool-based Architecture - Modular design for easy addition of new tools
  • Starwind UI Documentation Tool - Access documentation links for Starwind UI components
  • Package Manager Detection - Detect and use the appropriate package manager (npm, yarn, pnpm)
  • LLM Data Fetcher - Retrieve Starwind UI information for LLMs with caching and rate limiting
  • TypeScript Implementation - Built with TypeScript for better type safety and developer experience
  • Standard I/O Transport - Uses stdio for communication with AI assistants

Available Tools

Tool NameDescription
init_projectInitializes a new Starwind UI project
install_componentGenerates installation commands for Starwind UI components
update_componentGenerates update commands for Starwind UI components
get_documentationReturns documentation links for Starwind UI components and guides
fetch_llm_dataFetches LLM data from starwind.dev (rate limited, with caching)
get_package_managerDetects and returns the current package manager information

Development

This project is set up to use PNPM for package manager for development purposes. If you are not using pnpm, you will need to update the package.json file with the appropriate package manager commands you need.

Project Structure

src/ ├── config/ # Server configuration │ └── settings.ts # Configuration settings ├── tools/ # MCP tools implementations │ ├── index.ts # Tool registration │ └── *.ts # Individual tool implementations ├── utils/ # Utility functions └── server.ts # Main MCP server implementation

Adding New Tools

To add your own tools to the server:

  1. Create a new tool file in the src/tools/ directory
  2. Register the tool in src/tools/index.ts
  3. Enable the tool in src/config/settings.ts
  4. Rebuild the server with pnpm build
  5. Restart the server with pnpm start

License

MIT License - See LICENSE file for details.

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

A TypeScript server that enhances AI assistants' capabilities when working with Starwind UI components, providing tools for project initialization, component installation, documentation access, and more.

  1. Quick Start
    1. Setup Your IDE
  2. What is MCP?
    1. Features
      1. Available Tools
        1. Development
          1. Project Structure
            1. Adding New Tools
              1. License
                ID: 3931n8mhge