convert_stitch_to_react tool directly.
Prerequisites
Before configuring your IDE, build the server from source:Get your Stitch API key
Go to your Stitch project settings and copy your API key. This key is passed to the server via theSTITCH_API_KEY environment variable.
Configure your IDE
- Claude Desktop
- Cursor
- Windsurf
- Other MCP hosts
Open your Claude Desktop config file:Replace
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
holystitch entry inside mcpServers:claude_desktop_config.json
/Users/alice/holystitch with the actual path where you cloned the repo.Restart Claude Desktop after saving the file.Path format by operating system
Theargs array must contain an absolute path to the built dist/index.js file.
- macOS / Linux
- Windows
Environment variables
string
Your Google Stitch API key. Required when using
projectId to fetch screens from the Stitch API. Not required when passing screens directly via htmlScreens.Obtain this from your Stitch project settings page.Verify the setup
Once your IDE is configured and restarted, ask your AI assistant:convert_stitch_to_react in the response. To run a conversion: