A transparent, custom Model Context Protocol (MCP) server for Google Stitch. This server communicates directly with the official Google Stitch API, providing a bridge between AI agents and UI design tools.
- 100% Transparent: No third-party proxies or hidden logic.
- Official API: Talks directly to
https://stitch.googleapis.com/mcp. - Customizable: Written in simple Python for easy inspection and modification.
- Python 3.10+
mcplibrariesrequests
pip install mcp requestsFollow the official Google Stitch MCP Setup Guide to obtain your API key.
Add the following entry to your mcp_config.json:
"stitch": {
"command": "python3",
"args": ["/path/to/stitch_mcp.py"],
"env": {
"STITCH_API_KEY": "YOUR_GOOGLE_STITCH_API_KEY"
}
}Replace /path/to/stitch_mcp.py with the absolute path to the stitch_mcp.py file in this repository.
Once configured, your AI agent (like Claude or Gemini) will have access to tools such as:
create_projectgenerate_screen_from_textlist_projectslist_screensget_projectget_screen