Stitch-MCP
Stitch-MCP
Google Stitchの機能をリモートのStitch MCPエンドポイントにリクエストを転送することで、ローカルツールとして公開するMCP(Model Context Protocol)サーバーです。
このサーバーの機能
このサーバーは以下のことを行います:
mcp.server.fastmcp.FastMCPを使用してローカルMCPツールサーバー(stdio)を実行しますツール呼び出しを
https://stitch.googleapis.com/mcpに転送しますSTITCH_API_KEY環境変数を通じて提供されるStitch APIキーを必要とします
Related MCP server: stitch-pro-mcp
要件
Python 3.11以上
Stitch APIキー (
STITCH_API_KEY)
インストール
仮想環境を作成して有効化し、パッケージをインストールします:
python -m venv .venv
source .venv/bin/activate
pip install -e .設定
サーバーは、存在する場合、ローカルの .env ファイルから環境変数を読み込みます(python-dotenv を使用)。
.env ファイルを作成します:
STITCH_API_KEY=your_api_key_hereサーバーの実行
インストールされたスクリプト経由で実行できます:
stitch-mcpまたは直接実行します:
python server.pyMCPクライアントで、stitch-mcp(または python server.py)を実行するstdioサーバーを登録し、そのプロセス環境で STITCH_API_KEY が利用可能であることを確認してください。
利用可能なツール
プロジェクト管理:
list_projects(filter: Optional[str] = None)create_project(title: str)get_project(name: str)
画面管理:
list_screens(projectId: str)get_screen(name: str, projectId: str, screenId: str)
AI生成:
generate_screen_from_text(projectId: str, prompt: str, deviceType: str = "MOBILE", modelId: str = "GEMINI_3_FLASH")edit_screens(projectId: str, selectedScreenIds: list[str], prompt: str, deviceType: str = "DEVICE_TYPE_UNSPECIFIED", modelId: str = "GEMINI_3_FLASH")generate_variants(projectId: str, selectedScreenIds: list[str], prompt: str, variantCount: int = 3, creativeRange: str = "EXPLORE", aspects: Optional[list[str]] = None, deviceType: str = "DEVICE_TYPE_UNSPECIFIED", modelId: str = "GEMINI_3_FLASH")
デザインシステム:
list_design_systems(projectId: Optional[str] = None)create_design_system(...)update_design_system(...)apply_design_system(projectId: str, assetId: str, screen_instance_ids: list[str], screen_source_names: list[str])
注意事項とトラブルシューティング
STITCH_API_KEY environment variable not setと表示される場合は、.envファイルまたは環境変数を確認し、MCPクライアントプロセスを再起動してください。一部の生成操作には数分かかる場合があります。リクエストがタイムアウトした場合は、しばらく待ってから
get_screenを呼び出してください(この場合、サーバーはタイムアウトメッセージを返します)。
開発
agent.py は、MCPクライアントなしでツールを手動で試すための小さなヘルパースクリプトです。プレースホルダーIDを更新して実行してください:
python agent.py貢献
このプロジェクトやスクリプトに関する提案があれば、お気軽にお知らせください。気に入っていただけたなら、ご自由にお使いください。(追伸:スターもお願いします!! 😬 )
皆様からの貢献を大歓迎します!
プロジェクトをフォークする
作業をコンパイルする
プルリクエストを送る
クレジット: Samuel Jayasingh
最終編集日: 2026年4月16日
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
MCP server for generating rough-draft project plans from natural-language prompts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA universal MCP server for Google Stitch that enables AI-powered UI/UX design generation by extracting design context and metadata from existing screens. It allows users to fetch screen code and images to create consistent, styled UI components across multiple projects.435 npm121Apache 2.0
- AlicenseAqualityDmaintenanceAn intelligent MCP server for Google Stitch that generates production-ready UI from text prompts, with auto-orchestration of design systems, WCAG accessibility, responsive breakpoints, and framework conversion (React, Vue, Svelte).1718 npm9MIT
- AlicenseBqualityDmaintenanceComprehensive MCP server for Google Stitch with 36 tools covering design-to-code workflows, including screen generation, code extraction, design analysis, and project management.44103 npm5MIT
- FlicenseAqualityDmaintenanceMCP server that gives AI coding agents the ability to design UIs through Google Stitch. It generates production-ready HTML and screenshots from natural language prompts.9-