Basic information
About Fast Html Mcp Server
# Fast HTML MCP
Fast Html Mcp is a MCP server in the Other category listed in the AddMCP.net directory, published by Aimino-Tech. It exposes 19 tools, including render_page, patch_html, set_attribute, edit_html_range and more. Supported transport: stdio. License: GPL-3.0-only. Source code is hosted on github.com.
Setup
{
"mcpServers": {
"fast-html-mcp-server": {
"command": "npx",
"args": [
"-y",
"@aimino/fast-html-mcp-server"
]
}
}
}
{
"mcpServers": {
"fast-html-mcp-server": {
"command": "npx",
"args": [
"-y",
"@aimino/fast-html-mcp-server"
]
}
}
}
{
"servers": {
"fast-html-mcp-server": {
"command": "npx",
"args": [
"-y",
"@aimino/fast-html-mcp-server"
]
}
}
}
Fast Html Mcp config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"fast-html-mcp-server": {
"command": "npx",
"args": [
"-y",
"@aimino/fast-html-mcp-server"
]
}
}
}
Fast Html Mcp tools
-
render_page
— Assemble page from structured components
template:string*, sections:array*, output_path:string*, options:object, budget:object, entity_annotations:array -
patch_html
— Patch HTML element(s) by CSS selector
file_path:string*, selector:string*, html:string* -
set_attribute
— Set attribute on element(s) by CSS selector
file_path:string*, selector:string*, attribute:string*, value:string* -
edit_html_range
— Replace a range of lines in an HTML file with new content (most token-efficient edit — send only the changed lines)
file_path:string*, start_line:integer*, end_line:integer*, new_content:string* -
edit_section
— Replace a rendered section in an HTML file with a new component. Pages rendered with render_page embed section markers. Use list_sections to discover available indices. Provide component+props to re-render, or html for raw replacement.
file_path:string*, section_index:integer*, component:string, props:object, html:string -
insert_section
— Insert a new component section at a specific index, pushing existing sections forward. Uses the same section marker system as render_page. Auto-renumbers all subsequent sections.
file_path:string*, section_index:integer*, component:string*, props:object, html:string -
list_sections
— List all component sections in an HTML file that was built with render_page. Returns section indices, component types, and sizes.
file_path:string* -
read_html
— Read/analyze existing HTML file. Use mode='text' for token-efficient plain text extraction with offset/limit progressive reading.
file_path:string*, mode:string*, offset:integer, limit:integer -
write_raw_html
— Write raw HTML content directly to file
content:string, html:string, output_path:string*, template:string, options:object, budget:object -
write_html_file
— Write content as formatted HTML file
content:string, html:string, output_path:string*, template:string, options:object, budget:object -
format_html
— Format/beautify an existing HTML file
file_path:string*, options:object -
preview_html
— Preview rendered HTML string without writing
content:string, html:string, template:string, sections:array, options:object, budget:object -
list_templates
— List available template shells (optionally filter by category)
category:string -
propagate_edit
— Propagate an entity edit through the dependency graph, updating all transitively affected sections
file_path:string*, section_selector:string*, old_value:string*, new_value:string* -
check_consistency
— Audit document for stale cross-section references and dependency violations
file_path:string*, mode:string* -
list_components
— List available interactive components (optionally filter by category)
category:string -
get_template_schema
— Get template metadata including available variables with defaults
name:string* -
get_component_schema
— Get component schema with available props
name:string* -
register_template
— Register a custom template at runtime for immediate use with render_page/preview_html
name:string*, description:string*, category:string, html_template:string*, css:string
Overview
What is Fast Html Mcp?
Fast HTML MCP is a Model Context Protocol server for fast HTML generation and editing by AI agents. It uses a five-tier architecture (Assembly–Patch–Read–Raw–Consistency) and provides 15 tools, 22 components, and 25 templates purpose-built for AI-driven page creation with sub-second patch times and token-efficient reading.
How to use Fast Html Mcp?
Install and run with npx -y @aimino/fast-html-mcp-server. Configure the server in your MCP client (Claude Desktop, Cursor, VS Code via GitHub Copilot, or Claude Code) using the provided JSON snippets. Invoke tools via JSON-RPC calls—for example, list_templates, render_page, read_html—following the Ping-Pong Loop: discover, build, inspect, refine, and maintain consistency.
Key features of Fast Html Mcp
- 15 tools across five tiers: Assembly, Patch, Read, Raw, Consistency
- 22 reusable components and 25 pre-compiled templates
- Sub-second patching via #id fast-path (direct string substitution)
- Document Consistency Engine for cross-section data integrity
- Token-efficient read modes: structure, content, compressed, text
- AI-grade token compression and streaming output
- XSS prevention with DOMPurify and atomic writes
Use cases of Fast Html Mcp
- Generate equity research reports with 10+ interdependent sections
- Build and iterate on data dashboards with tables and charts
- Create and patch landing pages, newsletters, and documentation
- Produce financial summaries and invoicing templates
- Maintain consistency across large multi-section documents
Frequently asked questions
1 What runtime does Fast HTML MCP require?
Node.js 20 or higher, and the server is distributed as an ES module (ESM).
2 How does Fast HTML MCP achieve sub-second patch speeds?
It uses a #id fast-path for direct string substitution on #id selectors (~10× faster than full AST parse), pre-compiled doT.js templates, no browser runtime (unlike Playwright/Puppeteer), and atomic in-place edits without full DOM re-serialization.
3 What is the Document Consistency Engine?
It is a dependency-graph-based engine that propagates entity edits across sections, detects stale cross-section references with 100% accuracy, and auto-updates affected sections—achieving ~11 ms worst-case propagation for 100 sections.
4 How does token compression work for AI agents?
Compression modes reduce HTML size: high mode yields 40–70% reduction, and ai mode produces token-aware minification (~1600 chars for a full report). Read modes also save tokens: text mode strips HTML tags for 97% savings over raw HTML.
5 What security measures are in Fast HTML MCP?
All output is sanitized with DOMPurify to prevent XSS. File writes are atomic (tmp file + rename) to prevent partial writes.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In