MCP ExplorerExplorer

Mcp Nativewind

@tokenizin-agencyon 10 months ago
5 MIT
FreeCommunity
AI Systems
MCP server for converting Tailwind components to NativeWind 4.

Overview

What is Mcp Nativewind

mcp-nativewind is an MCP server designed to transform Tailwind components into NativeWind 4 components, facilitating the integration of Tailwind CSS with NativeWind.

Use cases

Use cases include transforming existing Tailwind components for use in React Native applications, analyzing Tailwind usage for optimization, and batch processing multiple components for efficient development.

How to use

To use mcp-nativewind, install it globally via npm with the command ‘npm install -g @modelcontextprotocol/server-nativewind’. It can be used as a CLI tool by running ‘mcp-nativewind’ or integrated into Claude for Desktop by adding it to the configuration file.

Key features

Key features include the ability to transform a single component, transform all components in a directory, and analyze Tailwind usage within components.

Where to use

mcp-nativewind can be used in web development projects that utilize Tailwind CSS and require conversion to NativeWind for better compatibility with React Native applications.

Content

@modelcontextprotocol/server-nativewind

MCP server for transforming Tailwind components to NativeWind 4.

Installation

npm install -g @modelcontextprotocol/server-nativewind

Usage

As a CLI tool

mcp-nativewind

In Claude for Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "nativewind-transformer": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-nativewind"
      ]
    }
  }
}

Available Tools

  1. transform-component: Transform a single component
  2. transform-directory: Transform all components in a directory
  3. analyze-component: Analyze Tailwind usage

Development

  1. Clone the repository
  2. Install dependencies: npm install
  3. Build the project: npm run build
  4. Run tests: npm test

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers