# Stitch Native

> Stitch Native is an open-source MCP server for design and media. Converts Google Stitch screen exports into SwiftUI, Compose and HTML code. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, macOS, Linux, Windows, VS Code, Self-hosted
- **Repository:** https://github.com/rafaelcsan705/stitch-native
- **MCP Registry name:** io.github.rafaelcsan705/stitch-native
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-11-27

## About

Stitch Native takes the HTML and Tailwind config that Google Stitch produces for a screen and turns it into layout code for native mobile interfaces. It reads the theme tokens embedded in the export, such as colours, spacing, radii and font sizes, then resolves each element into a small intermediate layout description before emitting the target code.

Output can be SwiftUI views, Jetpack Compose composables or a self-contained HTML page. Colours that do not match a theme token are reported separately so they can be reviewed. A config file lets teams map Stitch tokens and Material icons to their own design system values and icon names, and a state mode generates stateless screens with a State struct and callbacks.

It is aimed at mobile developers and designers who want a starting point for iOS and Android screens built from Stitch designs. It runs as a command-line tool or as an MCP server for AI coding clients, and is currently a prototype.

## Features

- **SwiftUI and Compose output:** Generates SwiftUI views and Jetpack Compose composables from a Stitch screen export.
- **Design token extraction:** Reads the Tailwind theme in the export and writes matching theme files for each target.
- **Design system mapping:** Maps Stitch colours, fonts and icons to names used in an existing design system through a JSON config.
- **Self-contained HTML target:** Produces one HTML page with inline styles and no Tailwind or scripts.
- **State mode:** Creates stateless screens with a State struct, sample data and callbacks for use with your own view model.
- **MCP server integration:** Exposes conversion and token tools to MCP-compatible AI clients over stdio.

## Good for

- Turning a Stitch mobile screen into a SwiftUI view for an iOS app
- Generating Jetpack Compose screens from Stitch designs for an Android project
- Extracting colour and typography tokens from a Stitch export into theme files
- Letting an AI coding assistant convert Stitch screens through MCP tools

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add stitch-native -- uvx stitch-native
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "stitch-native": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add stitch-native -- uvx stitch-native
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.stitch-native]
command = "uvx"
args = ["stitch-native"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user stitch-native uvx -- stitch-native

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "stitch-native": {
      "command": "uvx",
      "args": [
        "stitch-native"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 7 names don't say. From the server's own tool labels and tool names; not verified by us.

- `stitch_to_native`: Convert a Stitch screen to the configured native targets with theme files.
- `stitch_to_swiftui`: Generate a SwiftUI view and off-token report.
- `stitch_to_compose`: Generate a Compose composable and off-token report.
- `stitch_to_html`: Generate a self-contained HTML page and report.
- `extract_tokens`: Produce a theme file for swiftui, compose or html.
- `stitch_to_ir`: Return the layout intermediate representation as JSON.
- `init_config`: Create a stitch-native.json skeleton and list unmapped tokens.

## FAQ

### How do I install Stitch Native?

It can be run with uvx stitch-native, and the MCP server is started with uvx --from stitch-native stitch-native-mcp.

### Which languages does Stitch Native output?

SwiftUI, Jetpack Compose and plain HTML, with theme files for each.

### Does Stitch Native need the Stitch MCP server?

No, but it is designed to pair with the official Stitch MCP, which can fetch the screen HTML to convert here.

### Is Stitch Native free?

Yes. Stitch Native is open source, so you can use and self-host it for free.

### How do I add Stitch Native to Claude Code?

Run this command in your terminal: claude mcp add stitch-native -- uvx stitch-native

### What are the best alternatives to Stitch Native?

The closest alternatives to Stitch Native are Stitch Wand, Design Token Bridge MCP, UI Design to Code, Shippp and JSXImage.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Stitch Wand](https://ai-powered.com/mcp/stitch-wand): Stitch Wand is a freemium MCP server for design and media.
- [Design Token Bridge MCP](https://ai-powered.com/mcp/design-token-bridge-mcp): Design Token Bridge MCP is an open-source MCP server for design and media.
- [UI Design to Code](https://ai-powered.com/mcp/ui-design-to-code): UI Design to Code is an open-source MCP server for design and media.
- [Shippp](https://ai-powered.com/mcp/shippp): Shippp is a freemium MCP server for design and media.
- [JSXImage](https://ai-powered.com/mcp/jsximage): JSXImage is a freemium MCP server for design and media.
- [SnapStudio](https://ai-powered.com/mcp/snapstudio): SnapStudio is a paid MCP server for design and media.
- [Phonebook](https://ai-powered.com/mcp/phonebook): Phonebook is an open-source MCP server for developer tools.
- [figmcp](https://ai-powered.com/mcp/figmcp): figmcp is an MCP server for design and media.

---
Source: https://ai-powered.com/mcp/stitch-native
