Skip to main content
Glama
copperlang2007

live-preview-mcp

Live Preview MCP Server

Version 1.1(红队加固后)——生产级 Model Context Protocol 服务器,允许任何支持 MCP 的 AI 助手启动、管理并在 iframe 中嵌入实时应用预览。

安全加固(v1.1)

  • 无 shell 注入:Docker 和进程派生始终使用参数数组(shell: false)。

  • 安全环境:仅传递显式的环境变量允许列表;危险键(NODE_OPTIONSLD_PRELOAD 等)会被剔除。

  • 符号链接安全的路径检查:在允许列表验证之前调用 realpathSync

  • WebSocket 速率限制 + 每个预览的连接数上限。

  • 进程存活就绪检查:就绪探针还会验证子进程是否仍然存活。

  • 并发预览限制(默认 10)。

  • DockerCapDrop: ALLno-new-privileges,尽可能使用非 root 用户,AutoRemove + 启动时孤儿进程回收器。

  • 更强的日志脱敏(JWT、AWS 密钥、GitHub/Slack/OpenAI 令牌等)。

  • 令牌长度增加至 32 个随机字节。

Related MCP server: Runbox Website Builder MCP

功能

  • MCP 工具:start_previewstop_previewget_preview_statusget_preview_logslist_previewsreload_previewupdate_preview_configshare_previewget_mobile_qrset_auth_token

  • 框架自动检测:Vite、Next.js、CRA、Vue、Angular、Express、static、Expo、Flutter

  • HTTP 仪表盘 + 反向代理(已移除框架响应头)

  • 可选的 Docker、Cloudflare/ngrok 隧道、移动端二维码、令牌认证、Cloud-IDE 感知

要求

  • Node.js ≥ 18

  • 可选:Docker、cloudflaredngrok

安装与构建

cd live-preview-mcp
npm install
npm run build

运行

node dist/index.js

MCP 客户端配置

{
  "mcpServers": {
    "live-preview": {
      "command": "node",
      "args": ["/absolute/path/to/live-preview-mcp/dist/index.js"],
      "env": {
        "PORT": "9000",
        "ALLOWED_DIRS": "/path/to/projects"
      }
    }
  }
}

许可证

MIT

F
license - not found
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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