Stitch Native
Converts Google Stitch screen exports into SwiftUI, Compose and HTML code
Stitch Native is an open-source MCP server for design and media. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API, macOS
- Runs
- Locally
- Version
- 0.8.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add stitch-native -- uvx stitch-nativeAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"stitch-native": {
"command": "uvx",
"args": [
"stitch-native"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"stitch-native": {
"command": "uvx",
"args": [
"stitch-native"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"stitch-native": {
"command": "uvx",
"args": [
"stitch-native"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add stitch-native -- uvx stitch-nativeOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.stitch-native]
command = "uvx"
args = ["stitch-native"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"stitch-native": {
"command": "uvx",
"args": [
"stitch-native"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "stitch-native": { "command": "uvx", "args": [ "stitch-native" ] } } }Or run: gemini mcp add -s user stitch-native uvx -- stitch-native
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "stitch-native": { "command": "uvx", "args": [ "stitch-native" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "stitch-native": { "command": "uvx", "args": [ "stitch-native" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "stitch-native": { "command": "uvx", "args": [ "stitch-native" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "stitch-native": { "command": "uvx", "args": [ "stitch-native" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "stitch-native": { "command": "uvx", "args": [ "stitch-native" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Stitch Native
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.
Tools this server provides (7)
Taken from the project documentation; the running server may differ.
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.
What it does
- 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
Pricing
Open source
MIT-licensed open source, free to use.
Stitch Native 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.