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

Let AI assistants publish HTML pages directly to htmlpub

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 (10-64 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