live-preview-mcp
Live Preview MCP Server
Version 1.1 (nach Red-Team-Härtung) — Produktionsreifer Server für das Model Context Protocol, der es jedem MCP-fähigen KI-Assistenten ermöglicht, Live-Anwendungsvorschauen zu starten, zu verwalten und in einem iframe einzubetten.
Sicherheitshärtung (v1.1)
Keine Shell-Injection: Beim Starten von Docker und Prozessen werden immer Argumentarrays verwendet (
shell: false).Sichere Umgebung: Es wird nur eine explizite Zulassungsliste von Umgebungsvariablen übergeben; gefährliche Schlüssel (
NODE_OPTIONS,LD_PRELOAD, usw.) werden entfernt.Symlink-sichere Pfadprüfungen:
realpathSyncvor der Zulassungslisten-Validierung.WebSocket-Ratenbegrenzung + Verbindungslimits pro Vorschau.
Prozess-Liveness-Readiness: Der Readiness-Probe prüft auch, ob der Kindprozess noch lebt.
Limit für gleichzeitige Vorschauen (Standard: 10).
Docker:
CapDrop: ALL,no-new-privileges, nach Möglichkeit Nicht-Root-Benutzer, AutoRemove + Reaper für verwaiste Prozesse beim Start.Stärkere Log-Redaktion (JWT, AWS-Schlüssel, GitHub-/Slack-/OpenAI-Tokens usw.).
Tokenlänge erhöht auf 32 zufällige Bytes.
Related MCP server: Somewhere MCP
Funktionen
MCP-Tools:
start_preview,stop_preview,get_preview_status,get_preview_logs,list_previews,reload_preview,update_preview_config,share_preview,get_mobile_qr,set_auth_tokenFramework-Autoerkennung: Vite, Next.js, CRA, Vue, Angular, Express, static, Expo, Flutter
HTTP-Dashboard + Reverse-Proxy mit entfernten Framing-Headern
Optional Docker, Cloudflare/ngrok-Tunnel, mobiler QR-Code, Token-Authentifizierung, Cloud-IDE-Erkennung
Anforderungen
Node.js ≥ 18
Optional: Docker,
cloudflared,ngrok
Installation und Build
cd live-preview-mcp
npm install
npm run buildAusführen
node dist/index.jsMCP-Client-Konfiguration
{
"mcpServers": {
"live-preview": {
"command": "node",
"args": ["/absolute/path/to/live-preview-mcp/dist/index.js"],
"env": {
"PORT": "9000",
"ALLOWED_DIRS": "/path/to/projects"
}
}
}
}Lizenz
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