What is the Lightswind UI MCP server?
Lightswind UI is a copy-paste React component library with a built-in MCP server. It lets an AI coding agent list and search 160+ components, read their docs and usage examples, fetch source code and install them into your project through the Lightswind CLI, with a license key for Pro blocks.
Lightswind UI is a source-code React component library in the same copy-paste style as shadcn/ui. Components are installed into your own project with a CLI, so you own and edit the code. The README lists more than 160 animated, accessible components.
The MCP server ships inside the same package and starts with lightswind mcp. It gives an AI coding agent a way to browse the library and install components without guessing names or import paths.
What it changes in your workflow
- The agent searches components by keyword or use case and lists categories before it writes custom markup.
- It reads the installation guide and a usage example for a component, then fetches the full source.
- Components land in a local
components/lightswind/folder, and the agent imports from there, not from the package name. - With a Pro license key set, it can also browse and fetch Pro page blocks.
- The agent stops suggesting a provider component or imports from the package root, which the README says do not exist.
What is in the library
The README groups components into 3D elements, backgrounds, advanced components, buttons, text effects, cursor effects, UI core, form controls and layout and navigation. It mentions 3D and WebGL shader components and integrated Framer Motion and GSAP animation.
The CLI asks for a color theme on init, with options such as default, deep-ocean, crimson, emerald, amber, amethyst and mono. It needs React 18 or 19, Tailwind CSS v3 or v4 and Node.js 18 or newer.
Who it suits
Best for
- React and Next.js teams that want animated marketing sections and effects as owned source.
- Agents that keep inventing component names. Compare the registry approach in the shadcn MCP server or the Starwind UI MCP server.
- Landing pages that need motion components, alongside the Magic UI MCP server.
Where to be careful
- It targets React with Tailwind only. It is not a design-file reader like the Figma MCP server.
- Pro blocks need a license key. The README does not state prices here, so check the pricing page before relying on them.
- Animated 3D and shader components add weight, so test performance on real devices.
Use it with UiChemy
This server is for React apps. If your site is on WordPress, UiChemy Composer writes real HTML, CSS and JS inside Elementor or Gutenberg instead. Click Get Started on uichemy.com to try it.
Connect Lightswind UI MCP Server: React Component Library to your AI client
npx lightswind@latest mcp initCheck requirements
The README lists Node.js 18+, React 18 or 19, Tailwind CSS v3 or v4, and a Next.js, Vite, Remix or CRA project.
Initialize the library
Run the init command from your project root. It detects the framework, finds the components folder, installs shared utilities and registers the Tailwind plugin.
Auto-configure MCP
Run
npx lightswind mcp init. The README says it detects your editor and writes the right config file.Or configure by hand
Add the block above to ~/.cursor/mcp.json for Cursor or Windsurf, or to the equivalent MCP settings file for another editor.
Add a Pro key if you have one
Set the LIGHTSWIND_LICENSE_KEY environment variable in the server's env block to reach Pro blocks. Skip this for free components.
Restart and try a prompt
Reload the client, then ask the agent to find a hero background component and install it.
Client configuration
{
"mcpServers": {
"lightswind-mcp": {
"command": "npx",
"args": ["-y", "lightswind", "mcp"]
}
}
}Endpoints and ports
npx -y lightswind mcpStarts the server over stdio. Your client normally runs it.npx lightswind@latest mcp initDetects the editor and writes its MCP config file.https://lightswind.com/components/mcp-serverMaintained setup guide from the project.https://lightswind.com/componentsBrowsable component library.What you can do with it
- Source-code ownershipComponents are copied into your project, so you edit them freely and nothing ships as a runtime dependency.
- Component search
search_componentsandlist_categorieslet the agent find parts by keyword, use case or category. - Docs and usage on demandInstallation guides and usage snippets come back through the server, so the agent does not rely on remembered APIs.
- CLI-based installComponents install with
npx lightswind add, and prerequisites such as a required progress component resolve automatically. - Pro blocksPro page sections and premium components are reachable through the same server when a license key is configured.
- Editor auto-setup
npx lightswind mcp initwrites the config for the editor it detects. - Built-in themesInit offers seven color themes, including default, deep-ocean, crimson and mono.
- Agent guardrailsThe README has a section for AI agents that says to import from the local components folder and not from the package root.
Tools it exposes
list_all_components
Browses all 160+ components with metadata.
search_components
Searches components by keyword or use case.
list_categories
Returns the available component categories.
get_component
Fetches the full source code of a component.
get_installation_guide
Reads the installation steps for a component.
get_usage_example
Returns usage code snippets for a component.
list_blocks
Browses the Pro template blocks.
get_block
Fetches a full Pro page section. Requires a license key.
Frequently asked questions
What is the Lightswind UI MCP server?
It is the MCP server built into the Lightswind UI React component library. It lets an AI coding agent list, search and read components, fetch their source and installation guides, and browse Pro blocks, so it can add real components to your project instead of inventing markup.
How do I connect it?
Run npx lightswind@latest mcp init and the CLI detects your editor and writes the config. You can also add an mcpServers entry that runs npx -y lightswind mcp in your client's MCP config file. Restart the client afterwards and ask the agent to search for a component.
Is Lightswind UI free?
The library is MIT licensed and the README describes free components installed by CLI. It also sells a Pro license for premium components and page blocks, with a license key for authenticated delivery. Check the project's pricing page for current terms before depending on Pro.
Which tools does the server expose?
Eight tools are listed in the README: list_all_components, search_components, list_categories, get_component, get_installation_guide, get_usage_example, list_blocks and get_block. The last two cover Pro blocks, and get_block needs a license key, while the other six work on the free components.
What does it need in my project?
Node.js 18 or newer, React 18 or 19, Tailwind CSS v3 or v4, and a Next.js, Vite, Remix or CRA project. The init command detects the framework and installs shared utilities and the Tailwind plugin. Components are not a runtime dependency.
How does it compare to the shadcn MCP server?
Both serve source-code components that you own. The shadcn server works through its registry system, covered in the shadcn MCP server, while Lightswind has its own CLI and a larger set of animated, 3D and background components. Pick by the components you need.
Does it work with Cursor and other editors?
Yes. The README gives config for Cursor and Windsurf, Claude Desktop, and VS Code extensions such as Cline and Continue. Each uses an mcpServers entry that runs npx -y lightswind mcp, and mcp init can write it for you.



