mcp-html-artifacts-preview
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-html-artifacts-preview
An MCP server that lets AI assistants instantly preview generated HTML in your browser.
What is this?
An MCP server that receives HTML from your AI assistant and renders it in your browser instantly — with hot reload, a dashboard, and zero config.
No more saving files and opening them manually. Built on the Model Context Protocol (MCP), it works with any MCP-compatible AI assistant like Claude Code.
Related MCP server: frameshot
Features
Instant Preview — AI-generated HTML renders in your browser immediately
Hot Reload — Pages update in real-time when content changes
Dashboard — Browse all artifacts in one place, with auto-navigation to newly created pages
Browser Auto-Open — Automatically opens the dashboard on first page creation
History Management — Set page retention limits (
--max-pages) and expiration (--ttl), with deleted page historyDynamic Port Allocation — Multiple sessions can run simultaneously without port conflicts
CDN Script Support — Load Mermaid.js, Chart.js, or any CDN library for rich visualizations
Zero Config — Just add to your MCP settings and go
Quick Start
Add to your MCP client configuration:
{
"mcpServers": {
"html-artifacts-preview": {
"command": "npx",
"args": ["-y", "@mizunashi_mana/mcp-html-artifacts-preview"]
}
}
}MCP Tools
Tool | Description |
| Create an HTML page and get a browser-accessible URL |
| Update page content or title (triggers hot reload) |
| Remove a page (kept in deleted history) |
| List all created pages (use |
| Get the HTML content of a specific page |
| Add CDN scripts (e.g., Mermaid.js, Chart.js) |
| Add external stylesheets |
CLI Options
Option | Description |
| Disable automatic browser opening |
| Maximum number of pages to keep (oldest are auto-removed) |
| Page time-to-live in seconds (expired pages are auto-cleaned) |
Use Cases
Preview AI-generated HTML/CSS/JS instantly
Visualize discussions with charts, comparison tables, and diagrams
Render Mermaid diagrams, flowcharts, and architecture diagrams
Create interactive data visualizations during technical surveys
Development
npm install
npm run build
npm run test
npm run lintLicense
This project is dual-licensed — you can choose either of the following:
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Instant web publishing for AI agents. POST HTML, get a live URL. No account needed.
Publish HTML, docs, slides and dashboards from your AI CLI; edit them live with people.
Publish AI-generated HTML to a private, unguessable link, straight from Claude or ChatGPT.
Publish AI-generated HTML to a live page on your own domain — from Claude, ChatGPT, or Cursor.
Related MCP Servers
- AlicenseAqualityBmaintenanceConnects AI tools to local dev servers, enabling them to view pages, call APIs, read/edit files, and run commands with safety guardrails.13MIT
- AlicenseAqualityAmaintenanceEnables AI agents to render and screenshot isolated UI components instantly across multiple browsers without a dev server or Storybook.22660 npm1MIT
- AlicenseAqualityDmaintenanceEnables AI coding assistants to visually inspect local web pages by providing screenshots, console errors, and sanitized DOM snapshots.15 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to send HTML documents to a local viewer, where they are stored and displayed in a live web UI for browsing and searching.-