live-preview-mcp
Live Preview MCP Server
バージョン 1.1 (レッドチーム強化後) — MCP 対応 AI アシスタントがライブアプリケーションプレビューを起動・管理し、iframe に埋め込めるようにする本番グレードの Model Context Protocol サーバー。
セキュリティ強化 (v1.1)
シェルインジェクションなし: Docker とプロセス生成は常に引数配列を使用します (
shell: false)。安全な環境: 環境変数の明示的な許可リストのみが渡されます。危険なキー (
NODE_OPTIONS,LD_PRELOAD, など) は除去されます。シンボリックリンク安全なパスチェック: 許可リスト検証の前に
realpathSyncを実行します。WebSocket レート制限 + プレビューごとの接続上限。
プロセス生存確認 (readiness): readiness プローブは子プロセスがまだ生きていることも検証します。
同時プレビュー制限 (デフォルト 10)。
Docker:
CapDrop: ALL,no-new-privileges、可能な場合は非 root ユーザー、AutoRemove + 起動時の孤児プロセスリーパー。より強力なログの秘匿化: JWT、AWS キー、GitHub/Slack/OpenAI トークンなど。
トークン長の拡大: ランダムな 32 バイトに。
Related MCP server: Somewhere MCP
機能
MCP ツール:
start_preview,stop_preview,get_preview_status,get_preview_logs,list_previews,reload_preview,update_preview_config,share_preview,get_mobile_qr,set_auth_tokenフレームワーク自動検出: Vite, Next.js, CRA, Vue, Angular, Express, static, Expo, Flutter
HTTP ダッシュボード + フレーミングヘッダーを除去したリバースプロキシ
オプション: Docker、Cloudflare/ngrok トンネル、モバイル QR、トークン認証、Cloud-IDE 対応
要件
Node.js ≥ 18
オプション: Docker、
cloudflared、ngrok
インストール & ビルド
cd live-preview-mcp
npm install
npm run build実行
node dist/index.jsMCP クライアント設定
{
"mcpServers": {
"live-preview": {
"command": "node",
"args": ["/absolute/path/to/live-preview-mcp/dist/index.js"],
"env": {
"PORT": "9000",
"ALLOWED_DIRS": "/path/to/projects"
}
}
}
}ライセンス
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Cloud sandboxes for AI agents: run code, files, previews, browsers, Linux desktops, Android.
Build and embed a live AI product demo from your code, track buyer Q&A, and sync demo leads to CRM.
Build, preview and publish small web apps for a group of people from your AI assistant.
Deploy apps from GitHub, read build/runtime logs, and manage your app's users from your AI agent.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to scaffold, edit, live-preview, and deploy full-stack apps with built-in database, email, and push notification capabilities through natural language.19MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to build, deploy, and inspect apps through a hosted backend service, including reading platform docs, deploying raw source, inspecting logs, verifying live pages in browsers, and managing project tasks.MIT

Roar AI MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to deploy and manage hosted apps from git repos, read logs, add Postgres databases and domains, manage API keys and budgets, and send requests to 200+ AI models. Connects over remote Streamable HTTP with OAuth sign-in, so users need no API keys, installs, or local server.MIT- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to rent disposable cloud dev environments with a terminal, real browser, repo checkout, git gateway, and live view, so they can build, test, run dev servers, inspect pages, and push branches while keeping keys off the VM.3Apache 2.0