HTML Pub

Publish pages from Claude, ChatGPT, or any AI tool

Sign up free to get your MCP connector URL and start publishing in seconds.

Sign up free
AI Integration

MCP Connector

To connect the HTML Pub MCP connector, add the remote MCP server at https://mcp.htmlpub.com/mcp to Claude, ChatGPT, Claude Code, or Claude Desktop, then sign in with your HTML Pub account when prompted — it is OAuth-based, so no API key is needed. Once connected, your AI assistant can create, edit, and manage pages through 37 tools (create_page, edit_page, list_pages, and more).

The MCP connector is included on every plan, including Free. Free lets you build and preview pages; publishing a live, shareable URL requires a paid plan starting at $10/mo.

What is MCP?

The Model Context Protocol lets AI assistants use tools

The htmlpub MCP connector gives AI assistants like Claude the ability to publish, update, and manage HTML pages on your behalf. Instead of copying and pasting HTML, your AI assistant can publish directly to htmlpub.com with a single tool call.

One MCP connector works everywhere — Claude.ai, ChatGPT, Claude Code, and Claude Desktop. No API keys needed. Just sign in with your htmlpub account.

Setup

Connect your AI assistant in one step

Claude.ai

  1. Open Claude.ai and go to Settings
  2. Go to Connectors and click Add custom connector
  3. Enter the server URL: https://mcp.htmlpub.com/mcp
  4. Click Add, then sign in with your htmlpub account when prompted

ChatGPT

Requires a ChatGPT paid plan (Plus, Pro, or Business).

  1. Open ChatGPT and go to Settings (click your avatar) → Apps
  2. Enable Developer Mode under Advanced settings
  3. Click Create, name it "htmlpub", and enter the URL: https://mcp.htmlpub.com/mcp
  4. In a new chat, click +More → enable htmlpub

Claude Code

Run this command in your terminal:

claude mcp add htmlpub --transport http https://mcp.htmlpub.com/mcp

You will be prompted to sign in with your htmlpub account on first use.

Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "htmlpub": {
      "url": "https://mcp.htmlpub.com/mcp"
    }
  }
}

On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

On Windows: %APPDATA%\Claude\claude_desktop_config.json

Available Tools

All tools are available on every platform. Your AI assistant can use any of these tools after connecting.

Page Tools

create_page

Publish an HTML page. Auto-generates a slug by default, or provide a custom slug (Starter/Pro plans).

Parameters

NameTypeDescription
htmlstringThe HTML content to publish
slugstring?Custom URL slug (3-100 chars).
Starter / Pro
titlestring?Page title (extracted from <title> tag if not provided)
siteIdstring?Optional site collection ID
passwordstring?Password to protect the page (requires custom slug)

update_page

Replace the full HTML content of a published page. For small changes, prefer edit_page.

Parameters

NameTypeDescription
slugstringSlug of the page to update
htmlstringThe new HTML content
titlestring?Updated page title

edit_page

Apply targeted text replacements to a page without rewriting the full HTML

Parameters

NameTypeDescription
slugstringSlug of the page to edit
editsarray<{old_text, new_text, occurrence?}>List of search/replace pairs. Each old_text must match exactly once unless occurrence is set. Use occurrence (1-indexed) to target a specific match when old_text appears multiple times.

get_page

Get the HTML source of a published page, with options for compact overview or section-based retrieval

Parameters

NameTypeDescription
slugstringSlug of the page
compactboolean?Strip large inline content with preview placeholders (default: true)
sectionstring?Extract a specific section at full fidelity (ignores compact): 'head', 'body', 'meta', 'style:N', 'script:N', 'svg:N'

Use section='meta' for a structural overview, then section='style:0' or section='body' to fetch the part you need to edit.

list_pages

List all pages in your htmlpub account

No parameters. Returns a list of all your pages with their slugs, titles, URLs, and creation dates.

delete_page

Permanently delete a page

Parameters

NameTypeDescription
slugstringSlug of the page to delete

Site Tools

create_site

Create a new site to group related pages together

Parameters

NameTypeDescription
namestringDisplay name for the site
slugstringURL slug for the site (lowercase alphanumeric and hyphens)

list_sites

List all sites with their page counts

No parameters. Returns a list of all your sites with names, slugs, page counts, and IDs.

Asset Tools

upload_asset

Upload a file (image, CSS, JS, or font) to a page

Parameters

NameTypeDescription
slugstringSlug of the page to upload to
filenamestringFilename with extension (e.g. 'logo.png')
base64ContentstringBase64-encoded file content
contentTypestringMIME type (e.g. 'image/png', 'text/css')

Authentication

The MCP connector uses OAuth to authenticate with your htmlpub account. When you connect for the first time, you will be prompted to sign in and authorize access. No API keys are needed.

Your session stays active across conversations. If your session expires, you will be prompted to re-authorize.

Example Usage

What it looks like when an AI assistant uses htmlpub

Once connected, you can ask your AI assistant to publish pages naturally:

You say:

"Create a landing page for my photography portfolio and publish it to htmlpub"

The assistant will:

  1. Generate the HTML for your portfolio page
  2. Call create_page with the HTML
  3. Return the live URL where your page is published

Frequently Asked Questions

How do I connect the HTML Pub MCP connector to Claude?

Add the remote MCP server at https://mcp.htmlpub.com/mcp, then sign in with your HTML Pub account when prompted. It uses OAuth, so no API key is required. Use the exact connect steps documented on this page for each client (Claude.ai, ChatGPT, Claude Code, Claude Desktop).

Do I need an API key to use the MCP connector?

No. The MCP connector is OAuth-based — you sign in with your HTML Pub account the first time you connect and authorize access, and no API key is needed. (A separate Bearer-key REST API is available, but only on the Pro and Business plans.)

How do I publish an HTML page from Claude?

Once the MCP connector is added, ask your AI assistant to publish a page in plain language (for example, create a landing page and publish it to HTML Pub). It generates the HTML and calls the create_page tool, then returns the live URL. Publishing a live page requires a paid plan; on the Free plan you can build and preview but not publish live.

Is the MCP connector free?

The MCP connector is included on every plan, including the free $0 plan (no credit card required), where you can build and preview up to 5 pages with the AI editor and MCP. Publishing a live, shareable URL requires a paid plan starting at $10/mo. There is no time-limited trial, and paid plans include a 14-day money-back guarantee.

How fast is publishing with the MCP connector?

Publishing returns a live, shareable URL in seconds — HTML Pub cites a roughly 60-second median to your first published page. There are no build tools or deploy pipeline; the assistant calls create_page and hands back the URL.

Can I use a custom domain with pages published via MCP?

Yes, on paid plans. Point a CNAME record to HTML Pub and SSL is handled automatically. Starter and Pro include 1 custom domain and Business includes 2; the Free plan does not include custom domains.