MCP HTML Sync Server
@yujiosaka
关于 MCP HTML Sync Server
A real-time HTML syncing server with hot reload capabilities, built using the Model Context Protocol (MCP)
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-html-sync-server": {
"command": "docker",
"args": [
"pull",
"yujiosaka/mcp-html-sync-server"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP HTML Sync Server?
MCP HTML Sync Server is a real-time HTML syncing server with hot reload capabilities, built using the Model Context Protocol (MCP). It enables AI agents to create, update, and destroy HTML pages dynamically, with all connected clients receiving updates in real-time.
How to use MCP HTML Sync Server?
Install via Docker (docker pull yujiosaka/mcp-html-sync-server), npx (npx mcp-html-sync-server), or from source. Configure using environment variables or a .env file (SERVER_HOST, SERVER_PORT, BASE_URL, PAGE_MAX_AGE, PAGE_MAX_COUNT). Integrate with Claude Desktop or VS Code by adding an MCP server entry to their configuration JSON, and invoke the server’s tools (create_page, update_page, destroy_page) from an AI agent.
Key features of MCP HTML Sync Server
- Real-time HTML syncing with instant client updates
- WebSocket hot reload for connected browsers
- Script management via CDN URLs or inline content
- Stylesheet management via CDN URLs
- Built for AI agents using the Model Context Protocol
- Automatic page expiration after configurable time
- Configurable maximum page count with cleanup of oldest pages
- Lightweight with minimal dependencies
Use cases of MCP HTML Sync Server
- AI agents creating and previewing dynamic HTML pages in real time
- Adding JavaScript and CSS to pages for interactive demos or prototypes
- Collaborative editing where content updates are instantly reflected in all clients
- Hot-reloading web pages during development without manual refresh
FAQ from MCP HTML Sync Server
How do I install MCP HTML Sync Server?
Install via Docker (docker pull yujiosaka/mcp-html-sync-server), npx (npx mcp-html-sync-server), or by cloning the repository and using bun install then bun run start.
What configuration options are available?
Configure via environment variables or a .env file: SERVER_HOST (default localhost), SERVER_PORT (default 3000), BASE_URL (default http://localhost:3000/), PAGE_MAX_AGE (default 1h), and PAGE_MAX_COUNT (default 1000).
What MCP tools does the server provide?
Three tools: create_page (creates a new HTML page with optional scripts and stylesheets), update_page (updates an existing page’s body), and destroy_page (removes a page and disconnects all clients).
How does page expiration and limit work?
Pages have a configurable maximum age (PAGE_MAX_AGE, e.g., 1h). When the total number of pages exceeds PAGE_MAX_COUNT, the oldest pages are automatically removed.
Does the server support real-time updates?
Yes. When a page is created or updated, all connected browsers receive updates in real-time via WebSocket hot reload.
其他 分类下的更多 MCP 服务器
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
Codelf
unbugA search tool helps dev to solve the naming things problem.
ghidraMCP
LaurieWiredMCP Server for Ghidra
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
评论