Skip to main content
Glama

html-mcp-web

Review an AI agent's HTML slides or report from the rendered page, on a desktop, tablet, or phone, while Claude Code or Codex edits the source. Hand the finished slides over as an editable PowerPoint deck.

⭐ If this helps your reviews, please give it a star. It helps others find the project.

Slides example

A phrase highlighted on a rendered slide, the reviewer's question, and the agent's proposed rewrite of the sentence with Apply suggestion.

Report example

A sentence highlighted on a rendered report page, and the reviewer's question with the agent's answer beside it.

What keeps the agent on track

  • It reads the rules, and reads them again. In Claude Code, html-mcp's tools, and edits to an artifact's own files, stay locked until the agent has read the template's rules and the writing guideline in full, and they lock again after every compaction. A long session keeps working from the rules, not from a fading memory of them.

  • It fixes its own layout. The way a programmer works through compiler errors, the agent checks each page it changes, gets a plain list of layout faults such as text spilling out of its box or a last line left nearly empty, fixes them, and checks again before you look.

Related MCP server: Terrarium

Install

Paste this into Claude Code or Codex:

Install html-mcp-web by following https://raw.githubusercontent.com/MiiKiyoshi/html-mcp-web/main/INSTALL.md

The agent checks for Python and Chrome, or Edge on Windows, shows you what it will install, and installs once you agree. Start the agent again afterwards.

Init

Once per folder, start the agent in the folder that holds (or will hold) your artifact and say:

do html init

Choose slides (16:9) or a report (A4). Slides default to the neutral-slides template, plain slides without organization marks, and the neutral-slides guideline, writing rules the agent follows for slides. Reports default to the neutral-report template, a two-column paper, and the neutral-report guideline, writing rules for a paper. The agent shows the choices and the document file it will create or reuse. Accept the defaults or name what to change.

Listen

With the plugin installed, a recent Claude Code, one that runs plugin monitors, needs no command: a session started in the folder listens for Call agent for as long as it runs, however long the page sits idle. Open http://localhost:<port> in your browser, with the port in .html-mcp-web.yaml. In Codex, or in a Claude Code without plugin monitors, say:

do html listen

The agent gives you the review page address, such as http://localhost:8765, and gets ready to handle your comments when you press Call agent. Open that address in your browser. Say do html listen again after the agent restarts.

Presses go to one session per folder. A Claude Code session that starts while another listens leaves the presses to it, and do html listen in any session moves them there.

Calling a second agent

To have a second agent answer in the same folder, name it under agents in .html-mcp-web.yaml:

agents:
  gemini:
    clients: [gemini, antigravity]
    efforts: [low, medium, high]

A choice then appears beside the bell: Agent, the session that is listening, and each agent you named. The bell is green when the agent you chose is waiting, and a press reaches that agent alone. A client whose name contains one of clients waits as that agent when it is asked to listen. clients defaults to the agent's own name. models and efforts are optional lists. When an agent has them, you choose one of each beside the bell, and the agent is told your choice with the press, to pass on to the work it starts.

Such an agent waits with a command that ends after one press, for a client whose shell runs a command to its end, and starts it again after it has answered.

Reviewing

  • Select text on the rendered page and press the Comment button beside it. Add a note on the whole artifact… in the ⋯ menu comments on the artifact as a whole.

  • Source beside Comment selects the same words in the source editor, a formula by the TeX KaTeX keeps for it. The other way, → Preview beside + Comment in the editor's bar marks the selected source words on the page. Either turns the view to Split.

  • The box tool, beside the search button over the artifact, turns a drag on a page into a box to comment on what has no text to select, such as part of a figure. The agent reads the box in page pixels and can look at just that part.

  • Press Call agent when your comments are ready. The agent edits the source and replies in the same thread.

  • Resolve a thread whose edit satisfies you, or Reply in it when it does not. Archive sets a thread aside, and it still takes replies. A line above the list says what was done, and its Undo puts it back.

  • The number on the Comments tab counts the threads the agent answered last, and the unanswered view lists them.

  • The search box above the list finds comments in any status by their words, from:agent or from:me, a source file as file:, and a day as after:11-12 or before:11-14.

  • The comments go by keys as a notebook's cells do. j and k move through them, Space opens one and shows its place, and r, R and A reply, resolve and archive. ?, or Help (?) in the ⋯ menu, opens Help, whose Keys page lists every key. In the slide show the keys move the slides.

Suggested edits

The thread shows the source the agent would change as a −/+ pair, and the Source view marks the same text in red. Apply suggestion writes the change into the file, and Reject turns it down, which the thread records. Proposing again replaces the proposal.

Editor keys

The Vim button in the editor's bar turns on Vim keys, and the page remembers the choice.

  • :w saves. jj typed quickly, Escape or Ctrl+[ leaves Insert mode.

  • gc comments on the text a motion or a visual selection covers, and gs marks that text on the page.

  • K opens the comment under the cursor in the comment list, and K there comes back.

  • A yank also goes to the system clipboard.

With or without Vim keys, Ctrl+S saves, Ctrl+Alt+M comments on the selection, Ctrl+Alt+P marks it on the page, and Ctrl+Alt+K opens the comment under the cursor. Ctrl+Alt+Enter presses Call agent. On macOS, Cmd takes the place of Ctrl and Option of Alt in these. Ctrl+[ drops a comment being written, with Ctrl on macOS too.

Settings can hold the cursor's line a third or half of the way down the editor, so the text moves under it as the keys move the cursor.

A browser extension that drives pages with Vim keys takes Escape and Ctrl+[ before the editor does and moves the focus out of it, which leaves the editor in Insert mode. Turn the extension off for the review page's address.

Export to PowerPoint and PDF

Export PPTX in the ⋯ menu makes an editable PowerPoint deck of the slides, and Export PDF prints every page.

On a tablet or phone

The review page on a tablet and a phone, zoomed into a slide: the commented phrase above, its thread below.

Use the port number in the review page address, the port in .html-mcp-web.yaml. Forward that port over SSH from Termux on Android or iSH on iOS, then open the same address in the phone's browser.

ssh -L <port>:localhost:<port> <server>

Configuration

Edit .html-mcp-web.yaml in the project folder. A saved change applies at once, except port, which applies when Claude Code or Codex restarts.

artifacts:
  slides:
    layout: slides
    main: slides.html
watch:
- '*.html'
- '*.css'
- '*.js'
- '*.svg'
- '*.png'
- '*.jpg'
- '*.jpeg'
- '*.gif'
- '*.webp'
ignore: []
port: 8765

Field

Effect

artifacts.<alias>

The artifact's one name. The review page shows it on the artifact's tab, the agent's tools take it or the path of the artifact's main or content file, and the artifact's comments are kept in .html-mcp-web/comments/<alias>.json, a slash in the alias written %2F. Any name without a space at either end.

artifacts.<alias>.layout

slides (16:9) or report (A4).

artifacts.<alias>.main

The HTML file the page shows. Each artifact keeps its main and content in a folder of its own, and two artifacts with either file in one folder stop the configuration with an error naming both.

artifacts.<alias>.template, .content

A template name and the content file it builds main from.

guideline

A writing guideline the agent follows, such as the built-in neutral-slides or neutral-report. A guideline built on the neutral guideline of one layout applies to that layout's artifacts, and an artifact of the other layout follows its own neutral guideline.

watch

Files whose saves refresh the page.

ignore

Patterns excluded even when they match watch.

port

This folder's review page port. Any free port works. Init picks the first free one from 8765, so each folder can have its own.

agents

Agents the bell can call beside the session that is listening. See Calling a second agent.

update_check

true unless set to false: the page asks once a day whether GitHub has commits this install lacks, which the ⋯ menu then offers as Update.

Updating

When GitHub has commits your install lacks, the ⋯ menu at the top of the page shows Update (N new commits) above the running version. Click it to pull them and install them. The page's server runs inside your agent, which keeps running the code it started with, so a band across the page then asks you to reconnect html-mcp in your agent: in Claude Code with /mcp, and in any agent by starting it again. The page then asks you to reload it.

An install that was not made with the steps in INSTALL.md cannot update itself, and the page tells you to ask your agent to update html-mcp-web.

Your own templates and guidelines

Put a template in ~/.config/html-mcp-web/templates/<name>/. Start from a copy of templates/neutral-slides, as templates/SKINS.md explains. Put a writing guideline for the agent in ~/.config/html-mcp-web/guidelines/<name>/GUIDELINE.md. To build on a built-in guideline, neutral-slides or neutral-report, instead of copying it, open your file with this front matter, write only the rules you add or change, and say that yours win where the two differ:

---
extends: neutral-slides
---

A name you use replaces the built-in one of the same name. do html init offers both.

See also

tex-mcp-web reviews a LaTeX paper from its PDF the same way, while the agent edits the source.

Acknowledgements

MIT licensed. See LICENSE. The source editor uses Ace under the BSD license, and its license is included with the bundled files. Full-screen wheel navigation adapts the intent-detection strategy from Swiper's Mousewheel module by Vladimir Kharlampidi and the Swiper contributors, under the MIT license.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Human-to-AI code review bridge. Annotate UI elements in the browser with review comments, and AI agents read the feedback via MCP to fix code automatically — with full element context (CSS selector, styles, DOM path, accessibility info). 10 MCP tools, framework-agnostic Web Component, zero-config install via uvx.
      9
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Local-first HTML review workspace for AI coding agents, enabling direct text and formatting edits, element comments, area annotations, and slide-aware review with durable agent handoffs.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to publish HTML artifacts that users can review and comment on in a sandboxed browser viewer, with feedback loop support for iterative versions.
      14 npm
      MIT