live-preview-mcp
Live Preview MCP Server
Version 1.1(红队加固后)——生产级 Model Context Protocol 服务器,允许任何支持 MCP 的 AI 助手启动、管理并在 iframe 中嵌入实时应用预览。
安全加固(v1.1)
无 shell 注入:Docker 和进程派生始终使用参数数组(
shell: false)。安全环境:仅传递显式的环境变量允许列表;危险键(
NODE_OPTIONS、LD_PRELOAD等)会被剔除。符号链接安全的路径检查:在允许列表验证之前调用
realpathSync。WebSocket 速率限制 + 每个预览的连接数上限。
进程存活就绪检查:就绪探针还会验证子进程是否仍然存活。
并发预览限制(默认 10)。
Docker:
CapDrop: ALL、no-new-privileges,尽可能使用非 root 用户,AutoRemove + 启动时孤儿进程回收器。更强的日志脱敏(JWT、AWS 密钥、GitHub/Slack/OpenAI 令牌等)。
令牌长度增加至 32 个随机字节。
Related MCP server: Runbox Website Builder 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 隧道、移动端二维码、令牌认证、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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceDeploy, manage, and scale applications directly from your AI assistant.3
- Alicense-qualityFmaintenanceProvides a remote coding environment for AI to publish static websites as live URLs, with live code editing and sandbox execution.3117ISC
- Flicense-qualityDmaintenanceEnables AI assistants to securely execute Python and JavaScript code in sandboxed environments, with file management and package installation.46
- Alicense-qualityDmaintenanceEnables AI assistants to create isolated Kubernetes Pod sessions for real-time shell command execution, file management, and Node.js code execution, with automatic TTL-based cleanup.MIT
Related MCP Connectors
Your AI builds, deploys, and runs full-stack apps on a hosted workspace created at first sign-in.
Build, validate, and deploy multi-agent AI solutions from any AI environment.
Create account-free website previews and publish durable sites from AI agents with Revdoku.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/copperlang2007/live-preview-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server