Publish AI-generated HTML & Markdown to a hosted, shareable URL via MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Publish AI-generated HTML and Markdown to a hosted, shareable URL. htmlbook is
an MCP server and REST API that takes a document
your coding agent just generated β an HTML report, a data dashboard, a spec, meeting
notes, an interactive page β and turns it into a clean link you can open on your
phone or send to someone, instead of leaving it as a local .html file buried in a
project folder.
Push from Claude Code, Cursor, Codex, or claude.ai. htmlbook stores the document, re-themes it for comfortable reading on any device (paper / sepia / dark), keeps every edit as a version, and gives each document one share link with three modes β public (anyone, no login), password-protected (anyone with the password, no login), or a private secret link only you and your workspace can open.
Share the output as a link, not a file. When an agent makes HTML, the awkward part is everything after: getting it off your laptop, onto your phone, in front of someone else. htmlbook is the shelf that part lives on.
https://htmlbook.io/api/mcpPOST https://htmlbook.io/api/docsGet an API key at https://htmlbook.io β Settings, then add the MCP server.
Claude Code (browser login, no key needed):
Claude Code (with an API key):
Cursor β ~/.cursor/mcp.json:
Codex CLI β ~/.codex/config.toml:
claude.ai / Claude Desktop β add a custom connector with URL
https://htmlbook.io/api/mcp (OAuth β no key to paste).
See docs/getting-started.md for every client.
Just ask your agent. With the MCP server connected, it calls the publish tool:
Prose (a report, a plan, notes) is easiest as Markdown β htmlbook keeps the .md
as the source of truth and renders a themed reader view from it:
Documents are private by default. Make one public to get a link anyone can open:
That's the whole loop: generate β publish β share.
| Format | When | What htmlbook does |
|---|---|---|
| Markdown | Prose: reports, plans, notes, specs | Keeps the .md as the source of truth, renders a themed reader view (TOC, tables, callouts, task lists), stays downloadable + editable as Markdown |
| hb-doc HTML | Rich docs: dashboards, KPIs, inline SVG charts | A <article class="hb-doc"> fragment styled only with hb-* classes + --hb-* tokens β the reader supplies the stylesheet and re-themes it (paper / sepia / dark, width, font size) |
| Bundle | A self-contained page with its own CSS/JS | Stored verbatim and rendered in a sandboxed iframe β your scripts run, your styling is preserved. Can be multi-file (index.html + sub-pages + assets, β€10MB) for a small static site with working relative links |
The format is auto-detected at publish. You never have to declare it β push Markdown, push an hb-doc fragment, or push a full standalone HTML page and htmlbook routes it.
See docs/publishing.md and docs/hb-doc-contract.md.
.md is the source of truth and round-trips on download.The htmlbook MCP server exposes 10 tools. Full reference: docs/mcp-tools.md.
| Tool | Purpose |
|---|---|
publish | Shelve a document (HTML or Markdown) to a hosted URL; new version if it exists |
guide | Get the authoring contract (hb-doc classes, tokens, components) before composing HTML by hand |
list | Browse your library, optionally filtered by project |
get | Fetch a document's metadata + current body (for markdown, the .md source) |
search | Full-text search across everything you've shelved (recall before re-deriving) |
organize | Set title / tags / path, move between projects, rename |
set_access | Make a document public, password-protected, or private |
cite | Get a shareable deep-link to a specific section (heading) of a document |
restore | Roll a document back to an earlier version |
delete | Move a document to the trash |
| Client | Auth |
|---|---|
| Claude Code | API key over MCP, or browser login; also REST |
| Cursor | API key over MCP |
| Codex CLI | API key over MCP; also REST |
| claude.ai | OAuth (custom connector) |
| Claude Desktop | OAuth (custom connector) |
| Any MCP client | Streamable HTTP + Bearer key or OAuth 2.1 |
publish tool, examplesPOST /api/docs, token-cheap file pushesMade by Streamize. Documentation is MIT-licensed; htmlbook itself is a hosted service at htmlbook.io.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/htmlbook)<a href="https://allmcps.com/mcp/htmlbook"><img src="https://allmcps.com/api/badge/htmlbook?style=directory" alt="Htmlbook on AllMCPs" /></a>