HTML Docs MCP Server

HTML Docs MCP Server

Create, edit, inspect, and publish collaborative HTML documents from AI agents through the HTML Docs MCP server.

Category
访问服务器

README

<div align="center"> <img src="./assets/readme-hero.svg" alt="HTML Docs turns one source into a document, video, or complete course" width="100%" /> </div>

<p align="center"> <a href="https://www.npmjs.com/package/@html-docs/cli"><img alt="npm" src="https://img.shields.io/npm/v/@html-docs/cli?color=d8ff45&labelColor=151713"></a> <a href="./LICENSE"><img alt="MIT license" src="https://img.shields.io/badge/license-MIT-d8ff45?labelColor=151713"></a> <a href="https://www.html-docs.com/showcase"><img alt="Showcase" src="https://img.shields.io/badge/watch-the_showcase-f7f6ef?labelColor=151713"></a> <a href="https://www.html-docs.com/agents"><img alt="Agent guide" src="https://img.shields.io/badge/agent-guide-f7f6ef?labelColor=151713"></a> </p>

<h3 align="center">Point Codex or Claude at a folder, codebase, website, paper, PDF, document, or research topic.</h3> <p align="center">Get a source-grounded HTML document, narrated explainer video, or complete learning course—with citations, captions, editable scenes, and a shareable site.</p>

Should you use this?

Use HTML Docs when the answer needs to teach, not merely exist:

Your situation Ask for Why
One difficult idea needs to click Document + video The page keeps the detail; the video builds the mental model. This is the best default.
A folder or codebase contains several lessons Complete course The agent reorganizes the source into prerequisites, lessons, practice, checks, transcripts, and a learning site.
Someone needs the short visual version Video You get a shareable Player with narration, synchronized captions, transcript, and MP4 fallback.
You need a durable visual reference Document You get responsive HTML with diagrams, examples, source evidence, and collaboration.

For a quick factual answer or a throwaway note, ask your agent normally. Use this skill when source grounding, visual explanation, narration, presentation, or a reusable learning experience matters.

This is not a separate chatbot. It is a production workflow installed into the Codex or Claude Code session you already use:

your source → your agent + $html-docs → private page, Player, and Studio

Start in sixty seconds

npx skills add raunaqbn/html-docs-skill --skill html-docs -g

Then:

  1. Start a fresh Codex task or Claude Code session.
  2. Open it in the source folder, or give it a URL, PDF, document, or topic.
  3. Mention $html-docs, the audience, and what they should understand.

For example:

Use $html-docs to turn this codebase into a private course for new engineers.

No hosted authoring model is hidden behind the command. Your current agent researches, writes, designs, and authors the project. The open local tools normalize sources, compile scenes, synchronize narration, audit frames, render media, and publish a private preview.

Ask for the outcome you need

Output Prompt
Document Use $html-docs to research this topic and make a beautiful, cited visual document.
Video Use $html-docs to turn this URL into a five-minute captioned explainer video.
Document + video Use $html-docs to explain this paper with a rich page and embedded narrated video.
Complete course Use $html-docs to turn this folder into a private adaptive course with a learner mission, lessons, videos, practice, feedback, and mastery evidence.
Auto Use $html-docs to choose the clearest format for explaining this source.

Automatic runs stay private. Public or unlisted publication is a separate, explicit action.

Built with HTML, voice, and evidence

These lightweight loops are frames from real HTML Docs renderer output—not product mockups.

<table> <tr> <td width="50%"> <img src="./assets/showcase/document-video-loop.gif" alt="A document becoming a live HTML explanation" width="100%" /> <h3>From terminal to published</h3> <p>The document preserves the launch brief and review context. The companion video teaches the workflow visually.</p> </td> <td width="50%"> <img src="./assets/showcase/math-explainer-loop.gif" alt="A signed-rate mechanism developing as an explanatory diagram" width="100%" /> <h3>How two samples become velocity</h3> <p>A formula becomes a concrete mental model with timed motion, captions, and a settled visual read.</p> </td> </tr> <tr> <td colspan="2"> <img src="./assets/showcase/code-course-loop.gif" alt="A code lesson rendered as an explanatory course video" width="100%" /> <h3>Guarding a velocity estimator</h3> <p>A defensive-programming lesson turns invalid timestamps and non-finite inputs into a visual contract learners can remember.</p> </td> </tr> </table>

Explore the live Player, course pages, source projects, and Studio artifacts in the HTML Docs showcase.

Complete course examples

Course What you will build and understand
Robot Learning, Gently · 12 lessons Move from the observation–policy–action loop through imitation and reinforcement learning, action representations, world models, and VLAs—then apply the theory in a measured ANIMA-Kiwi capstone.
Build an LLM from First Principles · 11 lessons Build the stack rather than treating it as a black box: scalar autodiff, embeddings, training diagnostics, causal attention, byte-pair tokenization, a decoder-only Transformer, and honest evaluation.
The Inference Company Founder’s Field Course · 7 lessons Choose a defensible wedge, build and benchmark a production-shaped serving MVP, model the economics, operate it under load, and apply evidence gates before pursuing custom silicon.

Reproduction briefs and portable source ledgers live in examples/: codebase → course, website → document + video, and research topic → course.

The production loop

folder · repo · URL · PDF · document · topic
                      │
                      ▼
          source snapshot + evidence graph
                      │
                      ▼
        learner contract · course specification
                      │
                      ▼
        vertical lesson slices · mastery evidence
                      │
           ┌──────────┴──────────┐
           ▼                     ▼
    rich HTML page        locked narration
                                 │
                                 ▼
                     timed words + visual cues
                                 │
                                 ▼
                  deterministic HTML scene modules
                                 │
                                 ▼
                  audit · Player · Studio · MP4

The page and video share one evidence model but serve different jobs: the page is the detailed reference; the video teaches the core mechanism visually. Courses also preserve the learner’s purpose, canonical terminology, demonstrated capabilities, misconceptions, retrieval schedule, source ledger, and the decision trail behind the curriculum. Completion is navigation state; mastery requires evidence.

Why the synchronization holds

  • Generate or record final audio before final scene timing.
  • Prefer provider-native word timestamps.
  • Forced-align the locked transcript when timestamps are unavailable.
  • Assign every spoken word to exactly one cue and scene.
  • Give every cue one or more same-scene data-html-video-id targets.
  • Derive captions, chapters, scenes, and visual timing from the same word track.
  • Seek Chromium to explicit timestamps; never depend on wall clocks or self-running animation.
  • Compare repeated same-time captures and inspect cue/scene contact sheets.

Voice profiles are provider-neutral: warm-teacher, gentle-guide, precise-engineer, and energetic-coach. ElevenLabs is supported through bring-your-own-key; Kokoro is the offline fallback. Provider keys stay local.

The open product

Package Responsibility
html-docs/ Installable agent skill, source/research workflow, document design system, video direction, and course production
@html-docs/cli Publishing, authentication, MCP server, project orchestration, and agent installation
@html-docs/html-video Portable project schemas, source snapshots, audio/caption timing, deterministic runtime, audits, Chromium capture, FFmpeg rendering, and sync
@html-docs/player Dependency-free <html-docs-video> web component with live-player and MP4 fallback
@html-docs/studio Evidence-aware educational Studio with live preview, waveform, cue/caption lanes, semantic selection, overrides, requests, and versions

Authored source, rendering, voice generation, and provider credentials stay on your machine. HTML Docs hosts private project versions, collaborative pages, the live Player, Guided Studio, course sites, and explicitly published media.

Local project commands

The skill invokes these for you, but every stage is inspectable:

# Any source, with an explicit or automatic output mode
html-docs project init ./source --mode auto --output ./explanation
html-docs project build ./explanation
html-docs project audit ./explanation
html-docs project preview ./explanation

# A video
html-docs/scripts/video.sh build ./video-project
html-docs/scripts/video.sh check ./video-project
html-docs/scripts/video.sh audit ./video-project
html-docs/scripts/video.sh render ./video-project --output ./final.mp4

# A course
html-docs/scripts/video.sh course init ./source \
  --output ./course-project --title "Course title"
html-docs/scripts/video.sh course build ./course-project
html-docs/scripts/video.sh course audit ./course-project
html-docs/scripts/video.sh course preview ./course-project
html-docs/scripts/video.sh course publish ./course-project

Renderer frame caches are content-addressed. If Chromium or FFmpeg is interrupted, rerunning the render reuses every completed deterministic frame.

The scaffold is only a normalized starting point. The active agent replaces it with the evidence graph, learner contract, course specification, dependency map, vertical lesson slices, lesson pages, narration, storyboards, semantic scenes, diagnostic practice, captions, and checks.

Publish any HTML

The document-only path stays one command:

npx @html-docs/cli publish page.html
# → https://www.html-docs.com/site/<slug>

Authenticate owned work:

npx @html-docs/cli auth

Install the MCP server in detected clients:

npx @html-docs/cli install

Available tools include document publishing, reading, updating, commenting, video synchronization, and project operations. See the agent guide and API reference.

Portable artifacts

Courses and videos are ordinary folders with JSON manifests, a learner contract, course specification, mastery records, production slices, Markdown briefs, HTML/CSS/JavaScript scene modules, audio files, timed words, captions, evidence records, quality reports, and rendered fallbacks. They can be inspected, versioned, moved, rendered locally, or hosted independently.

License and provenance

The HTML Docs skill, Producer, Player, and Studio are MIT licensed. Third-party dependencies and adapted design references are recorded in NOTICE. See PROVENANCE.md and THIRD_PARTY_NOTICES.md for release provenance.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选